DockerCredential Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. DataReferenceCredential - com.
azure. resourcemanager. machinelearning. models. DockerCredential
- com.
- com.
public final class DockerCredential
extends DataReferenceCredential
Credential for docker with username and password.
Constructor Summary
| Constructor | Description |
|---|---|
| DockerCredential() |
Creates an instance of Docker |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Data |
credentialType()
Get the credential |
|
static
Docker |
fromJson(JsonReader jsonReader)
Reads an instance of Docker |
| String |
password()
Get the password property: Docker |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: Docker |
| void |
validate()
Validates the instance. |
|
Docker |
withPassword(String password)
Set the password property: Docker |
|
Docker |
withUsername(String username)
Set the username property: Docker |
Methods inherited from DataReferenceCredential
Methods inherited from java.lang.Object
Constructor Details
DockerCredential
public DockerCredential()
Creates an instance of DockerCredential class.
Method Details
credentialType
public DataReferenceCredentialType credentialType()
Get the credentialType property: [Required] Credential type used to authentication with storage.
Overrides:
DockerCredential.credentialType()Returns:
fromJson
public static DockerCredential fromJson(JsonReader jsonReader)
Reads an instance of DockerCredential from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: DockerCredential user password.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
DockerCredential.toJson(JsonWriter jsonWriter)Parameters:
Throws:
username
public String username()
Get the username property: DockerCredential user name.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
DockerCredential.validate()withPassword
public DockerCredential withPassword(String password)
Set the password property: DockerCredential user password.
Parameters:
Returns:
withUsername
public DockerCredential withUsername(String username)
Set the username property: DockerCredential user name.
Parameters:
Returns: