Class UserUpdateParametersProperties

java.lang.Object
com.azure.resourcemanager.apimanagement.models.UserEntityBaseParameters
com.azure.resourcemanager.apimanagement.fluent.models.UserUpdateParametersProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<UserEntityBaseParameters>

public final class UserUpdateParametersProperties extends UserEntityBaseParameters
Parameters supplied to the Update User operation.
  • Constructor Details

    • UserUpdateParametersProperties

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

    • email

      public String email()
      Get the email property: Email address. Must not be empty and must be unique within the service instance.
      Returns:
      the email value.
    • withEmail

      public UserUpdateParametersProperties withEmail(String email)
      Set the email property: Email address. Must not be empty and must be unique within the service instance.
      Parameters:
      email - the email value to set.
      Returns:
      the UserUpdateParametersProperties object itself.
    • password

      public String password()
      Get the password property: User Password.
      Returns:
      the password value.
    • withPassword

      public UserUpdateParametersProperties withPassword(String password)
      Set the password property: User Password.
      Parameters:
      password - the password value to set.
      Returns:
      the UserUpdateParametersProperties object itself.
    • firstName

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

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

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

      public UserUpdateParametersProperties withLastName(String lastName)
      Set the lastName property: Last name.
      Parameters:
      lastName - the lastName value to set.
      Returns:
      the UserUpdateParametersProperties object itself.
    • withState

      public UserUpdateParametersProperties withState(UserState state)
      Set the state property: Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.
      Overrides:
      withState in class UserEntityBaseParameters
      Parameters:
      state - the state value to set.
      Returns:
      the UserEntityBaseParameters object itself.
    • withNote

      public UserUpdateParametersProperties withNote(String note)
      Set the note property: Optional note about a user set by the administrator.
      Overrides:
      withNote in class UserEntityBaseParameters
      Parameters:
      note - the note value to set.
      Returns:
      the UserEntityBaseParameters object itself.
    • withIdentities

      public UserUpdateParametersProperties withIdentities(List<UserIdentityContractInner> identities)
      Set the identities property: Collection of user identities.
      Overrides:
      withIdentities in class UserEntityBaseParameters
      Parameters:
      identities - the identities value to set.
      Returns:
      the UserEntityBaseParameters object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class UserEntityBaseParameters
      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<UserEntityBaseParameters>
      Overrides:
      toJson in class UserEntityBaseParameters
      Throws:
      IOException
    • fromJson

      public static UserUpdateParametersProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of UserUpdateParametersProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of UserUpdateParametersProperties 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 UserUpdateParametersProperties.