Class CredentialSetUpdateParameters

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

public final class CredentialSetUpdateParameters extends Object implements com.azure.json.JsonSerializable<CredentialSetUpdateParameters>
The parameters for updating a credential set.
  • Constructor Details

    • CredentialSetUpdateParameters

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

    • identity

      public IdentityProperties identity()
      Get the identity property: Identities associated with the resource. This is used to access the KeyVault secrets.
      Returns:
      the identity value.
    • withIdentity

      public CredentialSetUpdateParameters withIdentity(IdentityProperties identity)
      Set the identity property: Identities associated with the resource. This is used to access the KeyVault secrets.
      Parameters:
      identity - the identity value to set.
      Returns:
      the CredentialSetUpdateParameters object itself.
    • authCredentials

      public List<AuthCredential> authCredentials()
      Get the authCredentials property: List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential.
      Returns:
      the authCredentials value.
    • withAuthCredentials

      public CredentialSetUpdateParameters withAuthCredentials(List<AuthCredential> authCredentials)
      Set the authCredentials property: List of authentication credentials stored for an upstream. Usually consists of a primary and an optional secondary credential.
      Parameters:
      authCredentials - the authCredentials value to set.
      Returns:
      the CredentialSetUpdateParameters 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<CredentialSetUpdateParameters>
      Throws:
      IOException
    • fromJson

      public static CredentialSetUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of CredentialSetUpdateParameters from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of CredentialSetUpdateParameters 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 CredentialSetUpdateParameters.