Class ContainerRegistryBasicCredentials

java.lang.Object
com.azure.resourcemanager.appplatform.models.ContainerRegistryCredentials
com.azure.resourcemanager.appplatform.models.ContainerRegistryBasicCredentials

public final class ContainerRegistryBasicCredentials extends ContainerRegistryCredentials
The basic authentication properties for the container registry resource.
  • Constructor Details

    • ContainerRegistryBasicCredentials

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

    • server

      public String server()
      Get the server property: The login server of the Container Registry.
      Returns:
      the server value.
    • withServer

      public ContainerRegistryBasicCredentials withServer(String server)
      Set the server property: The login server of the Container Registry.
      Parameters:
      server - the server value to set.
      Returns:
      the ContainerRegistryBasicCredentials object itself.
    • username

      public String username()
      Get the username property: The username of the Container Registry.
      Returns:
      the username value.
    • withUsername

      public ContainerRegistryBasicCredentials withUsername(String username)
      Set the username property: The username of the Container Registry.
      Parameters:
      username - the username value to set.
      Returns:
      the ContainerRegistryBasicCredentials object itself.
    • password

      public String password()
      Get the password property: The password of the Container Registry.
      Returns:
      the password value.
    • withPassword

      public ContainerRegistryBasicCredentials withPassword(String password)
      Set the password property: The password of the Container Registry.
      Parameters:
      password - the password value to set.
      Returns:
      the ContainerRegistryBasicCredentials object itself.
    • validate

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