public final class ImageRegistryCredential extends Object
| Constructor and Description |
|---|
ImageRegistryCredential() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
ImageRegistryCredential |
withPassword(String password)
Set the password property: The password for the private registry.
|
ImageRegistryCredential |
withServer(String server)
Set the server property: The Docker image registry server without a protocol such as "http" and "https".
|
ImageRegistryCredential |
withUsername(String username)
Set the username property: The username for the private registry.
|
public String server()
public ImageRegistryCredential withServer(String server)
server - the server value to set.public String username()
public ImageRegistryCredential withUsername(String username)
username - the username value to set.public String password()
public ImageRegistryCredential withPassword(String password)
password - the password value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.