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 Details

    • PSCredentialExecutionParameter

      public PSCredentialExecutionParameter()
      Creates an instance of PSCredentialExecutionParameter class.
  • Method Details

    • 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 class ScriptExecutionParameter
      Parameters:
      name - the name value to set.
      Returns:
      the ScriptExecutionParameter object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ScriptExecutionParameter
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.