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

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

    /*
     * Gets or sets gitHub repo account id.
     */
    @JsonProperty(value = "accountId")
    private Long accountId;

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

    /*
     * Gets or sets GitHub Owner Name.
     */
    @JsonProperty(value = "ownerName")
    private String ownerName;

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

    /**
     * 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 GitHubRepoProperties object itself.
     */
    public GitHubRepoProperties withProvisioningState(ProvisioningState provisioningState) {
        this.provisioningState = provisioningState;
        return this;
    }

    /**
     * Get the accountId property: Gets or sets gitHub repo account id.
     *
     * @return the accountId value.
     */
    public Long accountId() {
        return this.accountId;
    }

    /**
     * Set the accountId property: Gets or sets gitHub repo account id.
     *
     * @param accountId the accountId value to set.
     * @return the GitHubRepoProperties object itself.
     */
    public GitHubRepoProperties withAccountId(Long accountId) {
        this.accountId = accountId;
        return this;
    }

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

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

    /**
     * Get the ownerName property: Gets or sets GitHub Owner Name.
     *
     * @return the ownerName value.
     */
    public String ownerName() {
        return this.ownerName;
    }

    /**
     * Set the ownerName property: Gets or sets GitHub Owner Name.
     *
     * @param ownerName the ownerName value to set.
     * @return the GitHubRepoProperties object itself.
     */
    public GitHubRepoProperties withOwnerName(String ownerName) {
        this.ownerName = ownerName;
        return this;
    }

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