// 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;

/** AzureDevOps Repo properties. */
@Fluent
public final class AzureDevOpsRepoProperties {
    /*
     * The provisioningState property.
     */
    @JsonProperty(value = "provisioningState")
    private ProvisioningState provisioningState;

    /*
     * Gets or sets Azure DevOps repo id.
     */
    @JsonProperty(value = "repoId")
    private String repoId;

    /*
     * Gets or sets AzureDevOps repo url.
     */
    @JsonProperty(value = "repoUrl")
    private String repoUrl;

    /*
     * Gets or sets AzureDevOps Org Name.
     */
    @JsonProperty(value = "orgName")
    private String orgName;

    /*
     * Gets or sets AzureDevOps Project Name.
     */
    @JsonProperty(value = "projectName")
    private String projectName;

    /*
     * Gets or sets AzureDevOps repo visibility, whether it is public or private etc.
     */
    @JsonProperty(value = "visibility")
    private String visibility;

    /*
     * The actionableRemediation property.
     */
    @JsonProperty(value = "actionableRemediation")
    private ActionableRemediation actionableRemediation;

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

    /**
     * Get the provisioningState property: The provisioningState property.
     *
     * @return the provisioningState value.
     */
    public ProvisioningState provisioningState() {
        return this.provisioningState;
    }

    /**
     * Set the provisioningState property: The provisioningState property.
     *
     * @param provisioningState the provisioningState value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withProvisioningState(ProvisioningState provisioningState) {
        this.provisioningState = provisioningState;
        return this;
    }

    /**
     * Get the repoId property: Gets or sets Azure DevOps repo id.
     *
     * @return the repoId value.
     */
    public String repoId() {
        return this.repoId;
    }

    /**
     * Set the repoId property: Gets or sets Azure DevOps repo id.
     *
     * @param repoId the repoId value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withRepoId(String repoId) {
        this.repoId = repoId;
        return this;
    }

    /**
     * Get the repoUrl property: Gets or sets AzureDevOps repo url.
     *
     * @return the repoUrl value.
     */
    public String repoUrl() {
        return this.repoUrl;
    }

    /**
     * Set the repoUrl property: Gets or sets AzureDevOps repo url.
     *
     * @param repoUrl the repoUrl value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withRepoUrl(String repoUrl) {
        this.repoUrl = repoUrl;
        return this;
    }

    /**
     * Get the orgName property: Gets or sets AzureDevOps Org Name.
     *
     * @return the orgName value.
     */
    public String orgName() {
        return this.orgName;
    }

    /**
     * Set the orgName property: Gets or sets AzureDevOps Org Name.
     *
     * @param orgName the orgName value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withOrgName(String orgName) {
        this.orgName = orgName;
        return this;
    }

    /**
     * Get the projectName property: Gets or sets AzureDevOps Project Name.
     *
     * @return the projectName value.
     */
    public String projectName() {
        return this.projectName;
    }

    /**
     * Set the projectName property: Gets or sets AzureDevOps Project Name.
     *
     * @param projectName the projectName value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withProjectName(String projectName) {
        this.projectName = projectName;
        return this;
    }

    /**
     * Get the visibility property: Gets or sets AzureDevOps repo visibility, whether it is public or private etc.
     *
     * @return the visibility value.
     */
    public String visibility() {
        return this.visibility;
    }

    /**
     * Set the visibility property: Gets or sets AzureDevOps repo visibility, whether it is public or private etc.
     *
     * @param visibility the visibility value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withVisibility(String visibility) {
        this.visibility = visibility;
        return this;
    }

    /**
     * Get the actionableRemediation property: The actionableRemediation property.
     *
     * @return the actionableRemediation value.
     */
    public ActionableRemediation actionableRemediation() {
        return this.actionableRemediation;
    }

    /**
     * Set the actionableRemediation property: The actionableRemediation property.
     *
     * @param actionableRemediation the actionableRemediation value to set.
     * @return the AzureDevOpsRepoProperties object itself.
     */
    public AzureDevOpsRepoProperties withActionableRemediation(ActionableRemediation actionableRemediation) {
        this.actionableRemediation = actionableRemediation;
        return this;
    }

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