Class SourceControlSecurityTokenProperties

java.lang.Object
com.azure.resourcemanager.automation.models.SourceControlSecurityTokenProperties

public final class SourceControlSecurityTokenProperties extends Object
The SourceControlSecurityTokenProperties model.
  • Constructor Details

    • SourceControlSecurityTokenProperties

      public SourceControlSecurityTokenProperties()
  • Method Details

    • accessToken

      public String accessToken()
      Get the accessToken property: The access token.
      Returns:
      the accessToken value.
    • withAccessToken

      public SourceControlSecurityTokenProperties withAccessToken(String accessToken)
      Set the accessToken property: The access token.
      Parameters:
      accessToken - the accessToken value to set.
      Returns:
      the SourceControlSecurityTokenProperties object itself.
    • refreshToken

      public String refreshToken()
      Get the refreshToken property: The refresh token.
      Returns:
      the refreshToken value.
    • withRefreshToken

      public SourceControlSecurityTokenProperties withRefreshToken(String refreshToken)
      Set the refreshToken property: The refresh token.
      Parameters:
      refreshToken - the refreshToken value to set.
      Returns:
      the SourceControlSecurityTokenProperties object itself.
    • tokenType

      public TokenType tokenType()
      Get the tokenType property: The token type. Must be either PersonalAccessToken or Oauth.
      Returns:
      the tokenType value.
    • withTokenType

      public SourceControlSecurityTokenProperties withTokenType(TokenType tokenType)
      Set the tokenType property: The token type. Must be either PersonalAccessToken or Oauth.
      Parameters:
      tokenType - the tokenType value to set.
      Returns:
      the SourceControlSecurityTokenProperties object itself.
    • validate

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