Class GitHubConnectorProperties

java.lang.Object
com.azure.resourcemanager.securitydevops.models.GitHubConnectorProperties

public final class GitHubConnectorProperties extends Object
Properties of the ARM resource for /subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.SecurityDevOps/gitHubConnectors.
  • Constructor Details

    • GitHubConnectorProperties

      public GitHubConnectorProperties()
      Creates an instance of GitHubConnectorProperties class.
  • Method Details

    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioningState property.
      Returns:
      the provisioningState value.
    • withProvisioningState

      public GitHubConnectorProperties withProvisioningState(ProvisioningState provisioningState)
      Set the provisioningState property: The provisioningState property.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the GitHubConnectorProperties object itself.
    • code

      public String code()
      Get the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens.
      Returns:
      the code value.
    • withCode

      public GitHubConnectorProperties withCode(String code)
      Set the code property: Gets or sets one-time OAuth code to exchange for refresh and access tokens.
      Parameters:
      code - the code value to set.
      Returns:
      the GitHubConnectorProperties object itself.
    • validate

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