java.lang.Object
com.azure.resourcemanager.connectedvmware.models.VICredential

public final class VICredential extends Object
Username / Password Credentials to connect to vcenter.
  • Constructor Details

    • VICredential

      public VICredential()
  • Method Details

    • username

      public String username()
      Get the username property: Gets or sets username to connect with the vCenter.
      Returns:
      the username value.
    • withUsername

      public VICredential withUsername(String username)
      Set the username property: Gets or sets username to connect with the vCenter.
      Parameters:
      username - the username value to set.
      Returns:
      the VICredential object itself.
    • password

      public String password()
      Get the password property: Gets or sets the password to connect with the vCenter.
      Returns:
      the password value.
    • withPassword

      public VICredential withPassword(String password)
      Set the password property: Gets or sets the password to connect with the vCenter.
      Parameters:
      password - the password value to set.
      Returns:
      the VICredential object itself.
    • validate

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