Class EndpointAuthTokenInner
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.fluent.models.EndpointAuthTokenInner
-
public final class EndpointAuthTokenInner extends Object
Service Token.
-
-
Constructor Summary
Constructors Constructor Description EndpointAuthTokenInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accessToken()
Get the accessToken property: Access token for endpoint authentication.Long
expiryTimeUtc()
Get the expiryTimeUtc property: Access token expiry time (UTC).Long
refreshAfterTimeUtc()
Get the refreshAfterTimeUtc property: Refresh access token after time (UTC).String
tokenType()
Get the tokenType property: Access token type.void
validate()
Validates the instance.EndpointAuthTokenInner
withAccessToken(String accessToken)
Set the accessToken property: Access token for endpoint authentication.EndpointAuthTokenInner
withExpiryTimeUtc(Long expiryTimeUtc)
Set the expiryTimeUtc property: Access token expiry time (UTC).EndpointAuthTokenInner
withRefreshAfterTimeUtc(Long refreshAfterTimeUtc)
Set the refreshAfterTimeUtc property: Refresh access token after time (UTC).EndpointAuthTokenInner
withTokenType(String tokenType)
Set the tokenType property: Access token type.
-
-
-
Method Detail
-
accessToken
public String accessToken()
Get the accessToken property: Access token for endpoint authentication.- Returns:
- the accessToken value.
-
withAccessToken
public EndpointAuthTokenInner withAccessToken(String accessToken)
Set the accessToken property: Access token for endpoint authentication.- Parameters:
accessToken
- the accessToken value to set.- Returns:
- the EndpointAuthTokenInner object itself.
-
expiryTimeUtc
public Long expiryTimeUtc()
Get the expiryTimeUtc property: Access token expiry time (UTC).- Returns:
- the expiryTimeUtc value.
-
withExpiryTimeUtc
public EndpointAuthTokenInner withExpiryTimeUtc(Long expiryTimeUtc)
Set the expiryTimeUtc property: Access token expiry time (UTC).- Parameters:
expiryTimeUtc
- the expiryTimeUtc value to set.- Returns:
- the EndpointAuthTokenInner object itself.
-
refreshAfterTimeUtc
public Long refreshAfterTimeUtc()
Get the refreshAfterTimeUtc property: Refresh access token after time (UTC).- Returns:
- the refreshAfterTimeUtc value.
-
withRefreshAfterTimeUtc
public EndpointAuthTokenInner withRefreshAfterTimeUtc(Long refreshAfterTimeUtc)
Set the refreshAfterTimeUtc property: Refresh access token after time (UTC).- Parameters:
refreshAfterTimeUtc
- the refreshAfterTimeUtc value to set.- Returns:
- the EndpointAuthTokenInner object itself.
-
tokenType
public String tokenType()
Get the tokenType property: Access token type.- Returns:
- the tokenType value.
-
withTokenType
public EndpointAuthTokenInner withTokenType(String tokenType)
Set the tokenType property: Access token type.- Parameters:
tokenType
- the tokenType value to set.- Returns:
- the EndpointAuthTokenInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-