Class UserTokenParameters
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.UserTokenParameters
-
public final class UserTokenParameters extends Object
Get User Token parameters.
-
-
Constructor Summary
Constructors Constructor Description UserTokenParameters()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
expiry()
Get the expiry property: The Expiry time of the Token.KeyType
keyType()
Get the keyType property: The Key to be used to generate token for user.void
validate()
Validates the instance.UserTokenParameters
withExpiry(OffsetDateTime expiry)
Set the expiry property: The Expiry time of the Token.UserTokenParameters
withKeyType(KeyType keyType)
Set the keyType property: The Key to be used to generate token for user.
-
-
-
Method Detail
-
keyType
public KeyType keyType()
Get the keyType property: The Key to be used to generate token for user.- Returns:
- the keyType value.
-
withKeyType
public UserTokenParameters withKeyType(KeyType keyType)
Set the keyType property: The Key to be used to generate token for user.- Parameters:
keyType
- the keyType value to set.- Returns:
- the UserTokenParameters object itself.
-
expiry
public OffsetDateTime expiry()
Get the expiry property: The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Returns:
- the expiry value.
-
withExpiry
public UserTokenParameters withExpiry(OffsetDateTime expiry)
Set the expiry property: The Expiry time of the Token. Maximum token expiry time is set to 30 days. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard.- Parameters:
expiry
- the expiry value to set.- Returns:
- the UserTokenParameters object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-