Class TokenPassword
java.lang.Object
com.azure.resourcemanager.containerregistry.models.TokenPassword
The password that will be used for authenticating the token of a container registry.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: The creation datetime of the password.expiry()Get the expiry property: The expiry datetime of the password.name()Get the name property: The password name "password1" or "password2".voidvalidate()Validates the instance.value()Get the value property: The password value.withCreationTime(OffsetDateTime creationTime) Set the creationTime property: The creation datetime of the password.withExpiry(OffsetDateTime expiry) Set the expiry property: The expiry datetime of the password.withName(TokenPasswordName name) Set the name property: The password name "password1" or "password2".
-
Constructor Details
-
TokenPassword
public TokenPassword()Creates an instance of TokenPassword class.
-
-
Method Details
-
creationTime
Get the creationTime property: The creation datetime of the password.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: The creation datetime of the password.- Parameters:
creationTime- the creationTime value to set.- Returns:
- the TokenPassword object itself.
-
expiry
Get the expiry property: The expiry datetime of the password.- Returns:
- the expiry value.
-
withExpiry
Set the expiry property: The expiry datetime of the password.- Parameters:
expiry- the expiry value to set.- Returns:
- the TokenPassword object itself.
-
name
Get the name property: The password name "password1" or "password2".- Returns:
- the name value.
-
withName
Set the name property: The password name "password1" or "password2".- Parameters:
name- the name value to set.- Returns:
- the TokenPassword object itself.
-
value
Get the value property: The password value.- Returns:
- the value value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-