Class GenerateCredentialsResultInner

java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.GenerateCredentialsResultInner

public final class GenerateCredentialsResultInner extends Object
The response from the GenerateCredentials operation.
  • Constructor Details

    • GenerateCredentialsResultInner

      public GenerateCredentialsResultInner()
      Creates an instance of GenerateCredentialsResultInner class.
  • Method Details

    • username

      public String username()
      Get the username property: The username for a container registry.
      Returns:
      the username value.
    • withUsername

      public GenerateCredentialsResultInner withUsername(String username)
      Set the username property: The username for a container registry.
      Parameters:
      username - the username value to set.
      Returns:
      the GenerateCredentialsResultInner object itself.
    • passwords

      public List<TokenPassword> passwords()
      Get the passwords property: The list of passwords for a container registry.
      Returns:
      the passwords value.
    • withPasswords

      public GenerateCredentialsResultInner withPasswords(List<TokenPassword> passwords)
      Set the passwords property: The list of passwords for a container registry.
      Parameters:
      passwords - the passwords value to set.
      Returns:
      the GenerateCredentialsResultInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.