ImportSourceCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. ImportSourceCredentials
- com.
public final class ImportSourceCredentials
The ImportSourceCredentials model.
Constructor Summary
Constructor | Description |
---|---|
ImportSourceCredentials() |
Creates an instance of Import |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
password()
Get the password property: The password used to authenticate with the source registry. |
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
password
public String password()
Get the password property: The password used to authenticate with the source registry.
Returns:
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:
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