Class SourceControlSecurityTokenProperties
java.lang.Object
com.azure.resourcemanager.automation.models.SourceControlSecurityTokenProperties
The SourceControlSecurityTokenProperties model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accessToken property: The access token.Get the refreshToken property: The refresh token.Get the tokenType property: The token type.void
validate()
Validates the instance.withAccessToken
(String accessToken) Set the accessToken property: The access token.withRefreshToken
(String refreshToken) Set the refreshToken property: The refresh token.withTokenType
(TokenType tokenType) Set the tokenType property: The token type.
-
Constructor Details
-
SourceControlSecurityTokenProperties
public SourceControlSecurityTokenProperties()
-
-
Method Details
-
accessToken
Get the accessToken property: The access token.- Returns:
- the accessToken value.
-
withAccessToken
Set the accessToken property: The access token.- Parameters:
accessToken
- the accessToken value to set.- Returns:
- the SourceControlSecurityTokenProperties object itself.
-
refreshToken
Get the refreshToken property: The refresh token.- Returns:
- the refreshToken value.
-
withRefreshToken
Set the refreshToken property: The refresh token.- Parameters:
refreshToken
- the refreshToken value to set.- Returns:
- the SourceControlSecurityTokenProperties object itself.
-
tokenType
Get the tokenType property: The token type. Must be either PersonalAccessToken or Oauth.- Returns:
- the tokenType value.
-
withTokenType
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.
-