TokenPassword Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. TokenPassword
- com.
Implements
public final class TokenPassword
implements JsonSerializable<TokenPassword>
The password that will be used for authenticating the token of a container registry.
Constructor Summary
Constructor | Description |
---|---|
TokenPassword() |
Creates an instance of Token |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
creationTime()
Get the creation |
Offset |
expiry()
Get the expiry property: The expiry datetime of the password. |
static
Token |
fromJson(JsonReader jsonReader)
Reads an instance of Token |
Token |
name()
Get the name property: The password name "password1" or "password2". |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
String |
value()
Get the value property: The password value. |
Token |
withCreationTime(OffsetDateTime creationTime)
Set the creation |
Token |
withExpiry(OffsetDateTime expiry)
Set the expiry property: The expiry datetime of the password. |
Token |
withName(TokenPasswordName name)
Set the name property: The password name "password1" or "password2". |
Methods inherited from java.lang.Object
Constructor Details
TokenPassword
public TokenPassword()
Creates an instance of TokenPassword class.
Method Details
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: The creation datetime of the password.
Returns:
expiry
public OffsetDateTime expiry()
Get the expiry property: The expiry datetime of the password.
Returns:
fromJson
public static TokenPassword fromJson(JsonReader jsonReader)
Reads an instance of TokenPassword from the JsonReader.
Parameters:
Returns:
Throws:
name
public TokenPasswordName name()
Get the name property: The password name "password1" or "password2".
Returns:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: The password value.
Returns:
withCreationTime
public TokenPassword withCreationTime(OffsetDateTime creationTime)
Set the creationTime property: The creation datetime of the password.
Parameters:
Returns:
withExpiry
public TokenPassword withExpiry(OffsetDateTime expiry)
Set the expiry property: The expiry datetime of the password.
Parameters:
Returns:
withName
public TokenPassword withName(TokenPasswordName name)
Set the name property: The password name "password1" or "password2".
Parameters:
Returns:
Applies to
Azure SDK for Java