Class CredentialUpdateParameters
java.lang.Object
com.azure.resourcemanager.automation.models.CredentialUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<CredentialUpdateParameters>
public final class CredentialUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<CredentialUpdateParameters>
The parameters supplied to the Update credential operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CredentialUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the credential.static CredentialUpdateParameters
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of CredentialUpdateParameters from the JsonReader.name()
Get the name property: Gets or sets the name of the credential.password()
Get the password property: Gets or sets the password of the credential.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) username()
Get the username property: Gets or sets the user name of the credential.void
validate()
Validates the instance.withDescription
(String description) Set the description property: Gets or sets the description of the credential.Set the name property: Gets or sets the name of the credential.withPassword
(String password) Set the password property: Gets or sets the password of the credential.withUsername
(String username) Set the username property: Gets or sets the user name of the credential.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CredentialUpdateParameters
public CredentialUpdateParameters()Creates an instance of CredentialUpdateParameters class.
-
-
Method Details
-
name
Get the name property: Gets or sets the name of the credential.- Returns:
- the name value.
-
withName
Set the name property: Gets or sets the name of the credential.- Parameters:
name
- the name value to set.- Returns:
- the CredentialUpdateParameters object itself.
-
username
Get the username property: Gets or sets the user name of the credential.- Returns:
- the username value.
-
withUsername
Set the username property: Gets or sets the user name of the credential.- Parameters:
username
- the username value to set.- Returns:
- the CredentialUpdateParameters object itself.
-
password
Get the password property: Gets or sets the password of the credential.- Returns:
- the password value.
-
withPassword
Set the password property: Gets or sets the password of the credential.- Parameters:
password
- the password value to set.- Returns:
- the CredentialUpdateParameters object itself.
-
description
Get the description property: Gets or sets the description of the credential.- Returns:
- the description value.
-
withDescription
Set the description property: Gets or sets the description of the credential.- Parameters:
description
- the description value to set.- Returns:
- the CredentialUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<CredentialUpdateParameters>
- Throws:
IOException
-
fromJson
public static CredentialUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CredentialUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of CredentialUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the CredentialUpdateParameters.
-