// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securitydevops.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** Branch onboarding info. */
@Fluent
public final class TargetBranchConfiguration {
    /*
     * Gets or sets branches that should have annotations.
     *
     * For Ignite, we will be supporting a single default branch configuration in the UX.
     */
    @JsonProperty(value = "names")
    private List<String> names;

    /** Creates an instance of TargetBranchConfiguration class. */
    public TargetBranchConfiguration() {
    }

    /**
     * Get the names property: Gets or sets branches that should have annotations.
     *
     * <p>For Ignite, we will be supporting a single default branch configuration in the UX.
     *
     * @return the names value.
     */
    public List<String> names() {
        return this.names;
    }

    /**
     * Set the names property: Gets or sets branches that should have annotations.
     *
     * <p>For Ignite, we will be supporting a single default branch configuration in the UX.
     *
     * @param names the names value to set.
     * @return the TargetBranchConfiguration object itself.
     */
    public TargetBranchConfiguration withNames(List<String> names) {
        this.names = names;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
