SourceControlSecurityTokenProperties Class

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

public final class SourceControlSecurityTokenProperties

The SourceControlSecurityTokenProperties model.

Constructor Summary

Constructor Description
SourceControlSecurityTokenProperties()

Method Summary

Modifier and Type Method and Description
String accessToken()

Get the accessToken property: The access token.

String refreshToken()

Get the refreshToken property: The refresh token.

TokenType tokenType()

Get the tokenType property: The token type.

void validate()

Validates the instance.

SourceControlSecurityTokenProperties withAccessToken(String accessToken)

Set the accessToken property: The access token.

SourceControlSecurityTokenProperties withRefreshToken(String refreshToken)

Set the refreshToken property: The refresh token.

SourceControlSecurityTokenProperties withTokenType(TokenType tokenType)

Set the tokenType property: The token type.

Methods inherited from java.lang.Object

Constructor Details

SourceControlSecurityTokenProperties

public SourceControlSecurityTokenProperties()

Method Details

accessToken

public String accessToken()

Get the accessToken property: The access token.

Returns:

the accessToken value.

refreshToken

public String refreshToken()

Get the refreshToken property: The refresh token.

Returns:

the refreshToken value.

tokenType

public TokenType tokenType()

Get the tokenType property: The token type. Must be either PersonalAccessToken or Oauth.

Returns:

the tokenType value.

validate

public void validate()

Validates the instance.

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.

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.

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.

Applies to