Class GuestCredential

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

public final class GuestCredential extends Object
Username / Password Credentials to connect to guest.
  • Constructor Details

    • GuestCredential

      public GuestCredential()
  • Method Details

    • username

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

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

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

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

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