Class PSCredentialExecutionParameter
- java.lang.Object
-
- com.azure.resourcemanager.avs.models.ScriptExecutionParameter
-
- com.azure.resourcemanager.avs.models.PSCredentialExecutionParameter
-
public final class PSCredentialExecutionParameter extends ScriptExecutionParameter
a powershell credential object.
-
-
Constructor Summary
Constructors Constructor Description PSCredentialExecutionParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
Get the password property: password for login.String
username()
Get the username property: username for login.void
validate()
Validates the instance.PSCredentialExecutionParameter
withName(String name)
Set the name property: The parameter name.PSCredentialExecutionParameter
withPassword(String password)
Set the password property: password for login.PSCredentialExecutionParameter
withUsername(String username)
Set the username property: username for login.-
Methods inherited from class com.azure.resourcemanager.avs.models.ScriptExecutionParameter
name
-
-
-
-
Method Detail
-
username
public String username()
Get the username property: username for login.- Returns:
- the username value.
-
withUsername
public PSCredentialExecutionParameter withUsername(String username)
Set the username property: username for login.- Parameters:
username
- the username value to set.- Returns:
- the PSCredentialExecutionParameter object itself.
-
password
public String password()
Get the password property: password for login.- Returns:
- the password value.
-
withPassword
public PSCredentialExecutionParameter withPassword(String password)
Set the password property: password for login.- Parameters:
password
- the password value to set.- Returns:
- the PSCredentialExecutionParameter object itself.
-
withName
public PSCredentialExecutionParameter withName(String name)
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.
-
-