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

package com.azure.resourcemanager.devhub.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** URL used to authorize the Developer Hub GitHub App. */
@Fluent
public final class GitHubOAuthInfoResponseInner {
    /*
     * URL for authorizing the Developer Hub GitHub App
     */
    @JsonProperty(value = "authURL")
    private String authUrl;

    /*
     * OAuth token used to make calls to GitHub
     */
    @JsonProperty(value = "token")
    private String token;

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

    /**
     * Get the authUrl property: URL for authorizing the Developer Hub GitHub App.
     *
     * @return the authUrl value.
     */
    public String authUrl() {
        return this.authUrl;
    }

    /**
     * Set the authUrl property: URL for authorizing the Developer Hub GitHub App.
     *
     * @param authUrl the authUrl value to set.
     * @return the GitHubOAuthInfoResponseInner object itself.
     */
    public GitHubOAuthInfoResponseInner withAuthUrl(String authUrl) {
        this.authUrl = authUrl;
        return this;
    }

    /**
     * Get the token property: OAuth token used to make calls to GitHub.
     *
     * @return the token value.
     */
    public String token() {
        return this.token;
    }

    /**
     * Set the token property: OAuth token used to make calls to GitHub.
     *
     * @param token the token value to set.
     * @return the GitHubOAuthInfoResponseInner object itself.
     */
    public GitHubOAuthInfoResponseInner withToken(String token) {
        this.token = token;
        return this;
    }

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