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

public final class UserInfo extends Object
User Information to be passed to partners.
  • Constructor Details

    • UserInfo

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

    • firstName

      public String firstName()
      Get the firstName property: First name of the user.
      Returns:
      the firstName value.
    • withFirstName

      public UserInfo withFirstName(String firstName)
      Set the firstName property: First name of the user.
      Parameters:
      firstName - the firstName value to set.
      Returns:
      the UserInfo object itself.
    • lastName

      public String lastName()
      Get the lastName property: Last name of the user.
      Returns:
      the lastName value.
    • withLastName

      public UserInfo withLastName(String lastName)
      Set the lastName property: Last name of the user.
      Parameters:
      lastName - the lastName value to set.
      Returns:
      the UserInfo object itself.
    • companyName

      public String companyName()
      Get the companyName property: Company name of the user.
      Returns:
      the companyName value.
    • withCompanyName

      public UserInfo withCompanyName(String companyName)
      Set the companyName property: Company name of the user.
      Parameters:
      companyName - the companyName value to set.
      Returns:
      the UserInfo object itself.
    • emailAddress

      public String emailAddress()
      Get the emailAddress property: Email of the user used by Elastic for contacting them if needed.
      Returns:
      the emailAddress value.
    • withEmailAddress

      public UserInfo withEmailAddress(String emailAddress)
      Set the emailAddress property: Email of the user used by Elastic for contacting them if needed.
      Parameters:
      emailAddress - the emailAddress value to set.
      Returns:
      the UserInfo object itself.
    • companyInfo

      public CompanyInfo companyInfo()
      Get the companyInfo property: Company information of the user to be passed to partners.
      Returns:
      the companyInfo value.
    • withCompanyInfo

      public UserInfo withCompanyInfo(CompanyInfo companyInfo)
      Set the companyInfo property: Company information of the user to be passed to partners.
      Parameters:
      companyInfo - the companyInfo value to set.
      Returns:
      the UserInfo object itself.
    • validate

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