ImageRegistryCredential Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. ImageRegistryCredential
- com.
public final class ImageRegistryCredential
Image registry credential.
Constructor Summary
Constructor | Description |
---|---|
ImageRegistryCredential() |
Creates an instance of Image |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
identity()
Get the identity property: The identity for the private registry. |
String |
identityUrl()
Get the identity |
String |
password()
Get the password property: The password for the private registry. |
String |
server()
Get the server property: The Docker image registry server without a protocol such as "http" and "https". |
String |
username()
Get the username property: The username for the private registry. |
void |
validate()
Validates the instance. |
Image |
withIdentity(String identity)
Set the identity property: The identity for the private registry. |
Image |
withIdentityUrl(String identityUrl)
Set the identity |
Image |
withPassword(String password)
Set the password property: The password for the private registry. |
Image |
withServer(String server)
Set the server property: The Docker image registry server without a protocol such as "http" and "https". |
Image |
withUsername(String username)
Set the username property: The username for the private registry. |
Methods inherited from java.lang.Object
Constructor Details
ImageRegistryCredential
public ImageRegistryCredential()
Creates an instance of ImageRegistryCredential class.
Method Details
identity
public String identity()
Get the identity property: The identity for the private registry.
Returns:
identityUrl
public String identityUrl()
Get the identityUrl property: The identity URL for the private registry.
Returns:
password
public String password()
Get the password property: The password for the private registry.
Returns:
server
public String server()
Get the server property: The Docker image registry server without a protocol such as "http" and "https".
Returns:
username
public String username()
Get the username property: The username for the private registry.
Returns:
validate
public void validate()
Validates the instance.
withIdentity
public ImageRegistryCredential withIdentity(String identity)
Set the identity property: The identity for the private registry.
Parameters:
Returns:
withIdentityUrl
public ImageRegistryCredential withIdentityUrl(String identityUrl)
Set the identityUrl property: The identity URL for the private registry.
Parameters:
Returns:
withPassword
public ImageRegistryCredential withPassword(String password)
Set the password property: The password for the private registry.
Parameters:
Returns:
withServer
public ImageRegistryCredential withServer(String server)
Set the server property: The Docker image registry server without a protocol such as "http" and "https".
Parameters:
Returns:
withUsername
public ImageRegistryCredential withUsername(String username)
Set the username property: The username for the private registry.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for