ImportSourceCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ImportSourceCredentials
- com.
Implements
public final class ImportSourceCredentials
implements JsonSerializable<ImportSourceCredentials>
The ImportSourceCredentials model.
Constructor Summary
| Constructor | Description |
|---|---|
| ImportSourceCredentials() |
Creates an instance of Import |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Import |
fromJson(JsonReader jsonReader)
Reads an instance of Import |
| String |
password()
Get the password property: The password used to authenticate with the source registry. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The username to authenticate with the source registry. |
| void |
validate()
Validates the instance. |
|
Import |
withPassword(String password)
Set the password property: The password used to authenticate with the source registry. |
|
Import |
withUsername(String username)
Set the username property: The username to authenticate with the source registry. |
Methods inherited from java.lang.Object
Constructor Details
ImportSourceCredentials
public ImportSourceCredentials()
Creates an instance of ImportSourceCredentials class.
Method Details
fromJson
public static ImportSourceCredentials fromJson(JsonReader jsonReader)
Reads an instance of ImportSourceCredentials from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: The password used to authenticate with the source registry.
Returns:
toJson
username
public String username()
Get the username property: The username to authenticate with the source registry.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public ImportSourceCredentials withPassword(String password)
Set the password property: The password used to authenticate with the source registry.
Parameters:
Returns:
withUsername
public ImportSourceCredentials withUsername(String username)
Set the username property: The username to authenticate with the source registry.
Parameters:
Returns: