java.lang.Object
com.azure.resourcemanager.containerregistry.models.TokenPassword

public final class TokenPassword extends Object
The password that will be used for authenticating the token of a container registry.
  • 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:
      the creationTime value.
    • withCreationTime

      public TokenPassword withCreationTime(OffsetDateTime creationTime)
      Set the creationTime property: The creation datetime of the password.
      Parameters:
      creationTime - the creationTime value to set.
      Returns:
      the TokenPassword object itself.
    • expiry

      public OffsetDateTime expiry()
      Get the expiry property: The expiry datetime of the password.
      Returns:
      the expiry value.
    • withExpiry

      public TokenPassword withExpiry(OffsetDateTime expiry)
      Set the expiry property: The expiry datetime of the password.
      Parameters:
      expiry - the expiry value to set.
      Returns:
      the TokenPassword object itself.
    • name

      public TokenPasswordName name()
      Get the name property: The password name "password1" or "password2".
      Returns:
      the name value.
    • withName

      public TokenPassword withName(TokenPasswordName name)
      Set the name property: The password name "password1" or "password2".
      Parameters:
      name - the name value to set.
      Returns:
      the TokenPassword object itself.
    • value

      public String 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.