ImageRepositoryCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. ImageRepositoryCredentials
- com.
Implements
public final class ImageRepositoryCredentials
implements JsonSerializable<ImageRepositoryCredentials>
ImageRepositoryCredentials represents the credentials used to login to the image repository.
Constructor Summary
| Constructor | Description |
|---|---|
| ImageRepositoryCredentials() |
Creates an instance of Image |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Image |
fromJson(JsonReader jsonReader)
Reads an instance of Image |
| String |
password()
Get the password property: The password or token used to access an image in the target repository. |
| String |
registryUrl()
Get the registry |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The username used to access an image in the target repository. |
|
Image |
withPassword(String password)
Set the password property: The password or token used to access an image in the target repository. |
|
Image |
withRegistryUrl(String registryUrl)
Set the registry |
|
Image |
withUsername(String username)
Set the username property: The username used to access an image in the target repository. |
Methods inherited from java.lang.Object
Constructor Details
ImageRepositoryCredentials
public ImageRepositoryCredentials()
Creates an instance of ImageRepositoryCredentials class.
Method Details
fromJson
public static ImageRepositoryCredentials fromJson(JsonReader jsonReader)
Reads an instance of ImageRepositoryCredentials from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: The password or token used to access an image in the target repository.
Returns:
registryUrl
public String registryUrl()
Get the registryUrl property: The URL of the authentication server used to validate the repository credentials.
Returns:
toJson
username
public String username()
Get the username property: The username used to access an image in the target repository.
Returns:
withPassword
public ImageRepositoryCredentials withPassword(String password)
Set the password property: The password or token used to access an image in the target repository.
Parameters:
Returns:
withRegistryUrl
public ImageRepositoryCredentials withRegistryUrl(String registryUrl)
Set the registryUrl property: The URL of the authentication server used to validate the repository credentials.
Parameters:
Returns:
withUsername
public ImageRepositoryCredentials withUsername(String username)
Set the username property: The username used to access an image in the target repository.
Parameters:
Returns: