java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.containerregistry.fluent.models.CredentialSetInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class CredentialSetInner extends com.azure.core.management.ProxyResource
An object that represents a credential set resource for a container registry.
  • Constructor Details

    • CredentialSetInner

      public CredentialSetInner()
      Creates an instance of CredentialSetInner 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 CredentialSetInner 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 CredentialSetInner object itself.
    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Metadata pertaining to creation and last modification of the resource.
      Returns:
      the systemData value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • loginServer

      public String loginServer()
      Get the loginServer property: The credentials are stored for this upstream or login server.
      Returns:
      the loginServer value.
    • withLoginServer

      public CredentialSetInner withLoginServer(String loginServer)
      Set the loginServer property: The credentials are stored for this upstream or login server.
      Parameters:
      loginServer - the loginServer value to set.
      Returns:
      the CredentialSetInner 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 CredentialSetInner 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 CredentialSetInner object itself.
    • creationDate

      public OffsetDateTime creationDate()
      Get the creationDate property: The creation date of credential store resource.
      Returns:
      the creationDate value.
    • provisioningState

      public ProvisioningState provisioningState()
      Get the provisioningState property: Provisioning state of the resource.
      Returns:
      the provisioningState value.
    • 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

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