GenerateCredentialsResultInner Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. fluent. models. GenerateCredentialsResultInner
- com.
Implements
public final class GenerateCredentialsResultInner
implements JsonSerializable<GenerateCredentialsResultInner>
The response from the GenerateCredentials operation.
Constructor Summary
Constructor | Description |
---|---|
GenerateCredentialsResultInner() |
Creates an instance of Generate |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Generate |
fromJson(JsonReader jsonReader)
Reads an instance of Generate |
List<Token |
passwords()
Get the passwords property: The list of passwords for a container registry. |
Json |
toJson(JsonWriter jsonWriter) |
String |
username()
Get the username property: The username for a container registry. |
void |
validate()
Validates the instance. |
Generate |
withPasswords(List<TokenPassword> passwords)
Set the passwords property: The list of passwords for a container registry. |
Generate |
withUsername(String username)
Set the username property: The username for a container registry. |
Methods inherited from java.lang.Object
Constructor Details
GenerateCredentialsResultInner
public GenerateCredentialsResultInner()
Creates an instance of GenerateCredentialsResultInner class.
Method Details
fromJson
public static GenerateCredentialsResultInner fromJson(JsonReader jsonReader)
Reads an instance of GenerateCredentialsResultInner from the JsonReader.
Parameters:
Returns:
Throws:
passwords
public List
Get the passwords property: The list of passwords for a container registry.
Returns:
toJson
username
public String username()
Get the username property: The username for a container registry.
Returns:
validate
public void validate()
Validates the instance.
withPasswords
public GenerateCredentialsResultInner withPasswords(List
Set the passwords property: The list of passwords for a container registry.
Parameters:
Returns:
withUsername
public GenerateCredentialsResultInner withUsername(String username)
Set the username property: The username for a container registry.
Parameters:
Returns:
Applies to
Azure SDK for Java