Class RegistryListCredentialsResultInner

java.lang.Object
com.azure.resourcemanager.containerregistry.fluent.models.RegistryListCredentialsResultInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryListCredentialsResultInner>

public final class RegistryListCredentialsResultInner extends Object implements com.azure.json.JsonSerializable<RegistryListCredentialsResultInner>
The response from the ListCredentials operation.
  • Constructor Details

    • RegistryListCredentialsResultInner

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

    • username

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

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

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

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

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<RegistryListCredentialsResultInner>
      Throws:
      IOException
    • fromJson

      public static RegistryListCredentialsResultInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RegistryListCredentialsResultInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RegistryListCredentialsResultInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the RegistryListCredentialsResultInner.