Class PSCredentialExecutionParameter
java.lang.Object
com.azure.resourcemanager.avs.models.ScriptExecutionParameter
com.azure.resourcemanager.avs.models.PSCredentialExecutionParameter
a powershell credential object.
-
Constructor Summary
ConstructorDescriptionCreates an instance of PSCredentialExecutionParameter class. -
Method Summary
Modifier and TypeMethodDescriptionpassword()
Get the password property: password for login.username()
Get the username property: username for login.void
validate()
Validates the instance.Set the name property: The parameter name.withPassword
(String password) Set the password property: password for login.withUsername
(String username) Set the username property: username for login.Methods inherited from class com.azure.resourcemanager.avs.models.ScriptExecutionParameter
name
-
Constructor Details
-
PSCredentialExecutionParameter
public PSCredentialExecutionParameter()Creates an instance of PSCredentialExecutionParameter class.
-
-
Method Details
-
username
Get the username property: username for login.- Returns:
- the username value.
-
withUsername
Set the username property: username for login.- Parameters:
username
- the username value to set.- Returns:
- the PSCredentialExecutionParameter object itself.
-
password
Get the password property: password for login.- Returns:
- the password value.
-
withPassword
Set the password property: password for login.- Parameters:
password
- the password value to set.- Returns:
- the PSCredentialExecutionParameter object itself.
-
withName
Set the name property: The parameter name.- Overrides:
withName
in classScriptExecutionParameter
- Parameters:
name
- the name value to set.- Returns:
- the ScriptExecutionParameter object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classScriptExecutionParameter
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-