Class LiftrBaseUserDetailsUpdate

java.lang.Object
com.azure.resourcemanager.astro.models.LiftrBaseUserDetailsUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<LiftrBaseUserDetailsUpdate>

public final class LiftrBaseUserDetailsUpdate extends Object implements com.azure.json.JsonSerializable<LiftrBaseUserDetailsUpdate>
User details for an organization.
  • Constructor Details

    • LiftrBaseUserDetailsUpdate

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

    • firstName

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

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

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

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

      public String emailAddress()
      Get the emailAddress property: Email address of the user.
      Returns:
      the emailAddress value.
    • withEmailAddress

      public LiftrBaseUserDetailsUpdate withEmailAddress(String emailAddress)
      Set the emailAddress property: Email address of the user.
      Parameters:
      emailAddress - the emailAddress value to set.
      Returns:
      the LiftrBaseUserDetailsUpdate object itself.
    • upn

      public String upn()
      Get the upn property: User's principal name.
      Returns:
      the upn value.
    • withUpn

      public LiftrBaseUserDetailsUpdate withUpn(String upn)
      Set the upn property: User's principal name.
      Parameters:
      upn - the upn value to set.
      Returns:
      the LiftrBaseUserDetailsUpdate object itself.
    • phoneNumber

      public String phoneNumber()
      Get the phoneNumber property: User's phone number.
      Returns:
      the phoneNumber value.
    • withPhoneNumber

      public LiftrBaseUserDetailsUpdate withPhoneNumber(String phoneNumber)
      Set the phoneNumber property: User's phone number.
      Parameters:
      phoneNumber - the phoneNumber value to set.
      Returns:
      the LiftrBaseUserDetailsUpdate object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<LiftrBaseUserDetailsUpdate>
      Throws:
      IOException
    • fromJson

      public static LiftrBaseUserDetailsUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LiftrBaseUserDetailsUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LiftrBaseUserDetailsUpdate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the LiftrBaseUserDetailsUpdate.