Class CredentialCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.CredentialCreateOrUpdateProperties
The properties of the create credential operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the description property: Gets or sets the description of the credential.password()
Get the password property: Gets or sets the password of the credential.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.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.
-
Constructor Details
-
CredentialCreateOrUpdateProperties
public CredentialCreateOrUpdateProperties()
-
-
Method Details
-
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 CredentialCreateOrUpdateProperties 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 CredentialCreateOrUpdateProperties 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 CredentialCreateOrUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-