Class ImageRegistryCredential
- java.lang.Object
-
- com.azure.resourcemanager.containerinstance.models.ImageRegistryCredential
-
public final class ImageRegistryCredential extends Object
Image registry credential.
-
-
Constructor Summary
Constructors Constructor Description ImageRegistryCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringidentity()Get the identity property: The identity for the private registry.StringidentityUrl()Get the identityUrl property: The identity URL for the private registry.Stringpassword()Get the password property: The password for the private registry.Stringserver()Get the server property: The Docker image registry server without a protocol such as "http" and "https".Stringusername()Get the username property: The username for the private registry.voidvalidate()Validates the instance.ImageRegistryCredentialwithIdentity(String identity)Set the identity property: The identity for the private registry.ImageRegistryCredentialwithIdentityUrl(String identityUrl)Set the identityUrl property: The identity URL for the private registry.ImageRegistryCredentialwithPassword(String password)Set the password property: The password for the private registry.ImageRegistryCredentialwithServer(String server)Set the server property: The Docker image registry server without a protocol such as "http" and "https".ImageRegistryCredentialwithUsername(String username)Set the username property: The username for the private registry.
-
-
-
Method Detail
-
server
public String server()
Get the server property: The Docker image registry server without a protocol such as "http" and "https".- Returns:
- the server value.
-
withServer
public ImageRegistryCredential withServer(String server)
Set the server property: The Docker image registry server without a protocol such as "http" and "https".- Parameters:
server- the server value to set.- Returns:
- the ImageRegistryCredential object itself.
-
username
public String username()
Get the username property: The username for the private registry.- Returns:
- the username value.
-
withUsername
public ImageRegistryCredential withUsername(String username)
Set the username property: The username for the private registry.- Parameters:
username- the username value to set.- Returns:
- the ImageRegistryCredential object itself.
-
password
public String password()
Get the password property: The password for the private registry.- Returns:
- the password value.
-
withPassword
public ImageRegistryCredential withPassword(String password)
Set the password property: The password for the private registry.- Parameters:
password- the password value to set.- Returns:
- the ImageRegistryCredential object itself.
-
identity
public String identity()
Get the identity property: The identity for the private registry.- Returns:
- the identity value.
-
withIdentity
public ImageRegistryCredential withIdentity(String identity)
Set the identity property: The identity for the private registry.- Parameters:
identity- the identity value to set.- Returns:
- the ImageRegistryCredential object itself.
-
identityUrl
public String identityUrl()
Get the identityUrl property: The identity URL for the private registry.- Returns:
- the identityUrl value.
-
withIdentityUrl
public ImageRegistryCredential withIdentityUrl(String identityUrl)
Set the identityUrl property: The identity URL for the private registry.- Parameters:
identityUrl- the identityUrl value to set.- Returns:
- the ImageRegistryCredential object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-