Class ExternalUserInfo

java.lang.Object
com.azure.resourcemanager.elastic.models.ExternalUserInfo

public final class ExternalUserInfo extends Object
The properties of the request required for creating user on elastic side.
  • Constructor Details

    • ExternalUserInfo

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

    • username

      public String username()
      Get the username property: Username of the user to be created or updated.
      Returns:
      the username value.
    • withUsername

      public ExternalUserInfo withUsername(String username)
      Set the username property: Username of the user to be created or updated.
      Parameters:
      username - the username value to set.
      Returns:
      the ExternalUserInfo object itself.
    • fullName

      public String fullName()
      Get the fullName property: Full name of the user to be created or updated.
      Returns:
      the fullName value.
    • withFullName

      public ExternalUserInfo withFullName(String fullName)
      Set the fullName property: Full name of the user to be created or updated.
      Parameters:
      fullName - the fullName value to set.
      Returns:
      the ExternalUserInfo object itself.
    • password

      public String password()
      Get the password property: Password of the user to be created or updated.
      Returns:
      the password value.
    • withPassword

      public ExternalUserInfo withPassword(String password)
      Set the password property: Password of the user to be created or updated.
      Parameters:
      password - the password value to set.
      Returns:
      the ExternalUserInfo object itself.
    • emailId

      public String emailId()
      Get the emailId property: Email id of the user to be created or updated.
      Returns:
      the emailId value.
    • withEmailId

      public ExternalUserInfo withEmailId(String emailId)
      Set the emailId property: Email id of the user to be created or updated.
      Parameters:
      emailId - the emailId value to set.
      Returns:
      the ExternalUserInfo object itself.
    • roles

      public List<String> roles()
      Get the roles property: Roles to be assigned for created or updated user.
      Returns:
      the roles value.
    • withRoles

      public ExternalUserInfo withRoles(List<String> roles)
      Set the roles property: Roles to be assigned for created or updated user.
      Parameters:
      roles - the roles value to set.
      Returns:
      the ExternalUserInfo object itself.
    • validate

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