Class CredentialCreateOrUpdateParameters

java.lang.Object
com.azure.resourcemanager.automation.models.CredentialCreateOrUpdateParameters

public final class CredentialCreateOrUpdateParameters extends Object
The parameters supplied to the create or update credential operation.
  • Constructor Details

    • CredentialCreateOrUpdateParameters

      public CredentialCreateOrUpdateParameters()
  • Method Details

    • name

      public String 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 CredentialCreateOrUpdateParameters object itself.
    • username

      public String username()
      Get the username property: Gets or sets the user name of the credential.
      Returns:
      the username value.
    • withUsername

      public CredentialCreateOrUpdateParameters withUsername(String username)
      Set the username property: Gets or sets the user name of the credential.
      Parameters:
      username - the username value to set.
      Returns:
      the CredentialCreateOrUpdateParameters object itself.
    • password

      public String password()
      Get the password property: Gets or sets the password of the credential.
      Returns:
      the password value.
    • withPassword

      public CredentialCreateOrUpdateParameters withPassword(String password)
      Set the password property: Gets or sets the password of the credential.
      Parameters:
      password - the password value to set.
      Returns:
      the CredentialCreateOrUpdateParameters object itself.
    • description

      public String description()
      Get the description property: Gets or sets the description of the credential.
      Returns:
      the description value.
    • withDescription

      public CredentialCreateOrUpdateParameters withDescription(String description)
      Set the description property: Gets or sets the description of the credential.
      Parameters:
      description - the description value to set.
      Returns:
      the CredentialCreateOrUpdateParameters object itself.
    • validate

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