Class GitHubOAuthInfoResponseInner

java.lang.Object
com.azure.resourcemanager.devhub.fluent.models.GitHubOAuthInfoResponseInner

public final class GitHubOAuthInfoResponseInner extends Object
URL used to authorize the Developer Hub GitHub App.
  • Constructor Details

    • GitHubOAuthInfoResponseInner

      public GitHubOAuthInfoResponseInner()
  • Method Details

    • authUrl

      public String authUrl()
      Get the authUrl property: URL for authorizing the Developer Hub GitHub App.
      Returns:
      the authUrl value.
    • withAuthUrl

      public GitHubOAuthInfoResponseInner withAuthUrl(String authUrl)
      Set the authUrl property: URL for authorizing the Developer Hub GitHub App.
      Parameters:
      authUrl - the authUrl value to set.
      Returns:
      the GitHubOAuthInfoResponseInner object itself.
    • token

      public String token()
      Get the token property: OAuth token used to make calls to GitHub.
      Returns:
      the token value.
    • withToken

      public GitHubOAuthInfoResponseInner withToken(String token)
      Set the token property: OAuth token used to make calls to GitHub.
      Parameters:
      token - the token value to set.
      Returns:
      the GitHubOAuthInfoResponseInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.