Class UserCreateParameterProperties
java.lang.Object
com.azure.resourcemanager.apimanagement.models.UserEntityBaseParameters
com.azure.resourcemanager.apimanagement.fluent.models.UserCreateParameterProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserEntityBaseParameters>
Parameters supplied to the Create User operation.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserCreateParameterProperties class. -
Method Summary
Modifier and TypeMethodDescriptionappType()Get the appType property: Determines the type of application which send the create user request.Get the confirmation property: Determines the type of confirmation e-mail that will be sent to the newly created user.email()Get the email property: Email address.Get the firstName property: First name.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserCreateParameterProperties from the JsonReader.lastName()Get the lastName property: Last name.password()Get the password property: User Password.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAppType(AppType appType) Set the appType property: Determines the type of application which send the create user request.withConfirmation(Confirmation confirmation) Set the confirmation property: Determines the type of confirmation e-mail that will be sent to the newly created user.Set the email property: Email address.withFirstName(String firstName) Set the firstName property: First name.withIdentities(List<UserIdentityContractInner> identities) Set the identities property: Collection of user identities.withLastName(String lastName) Set the lastName property: Last name.Set the note property: Optional note about a user set by the administrator.withPassword(String password) Set the password property: User Password.Set the state property: Account state.Methods inherited from class com.azure.resourcemanager.apimanagement.models.UserEntityBaseParameters
identities, note, stateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
UserCreateParameterProperties
public UserCreateParameterProperties()Creates an instance of UserCreateParameterProperties class.
-
-
Method Details
-
email
Get the email property: Email address. Must not be empty and must be unique within the service instance.- Returns:
- the email value.
-
withEmail
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 UserCreateParameterProperties object itself.
-
firstName
Get the firstName property: First name.- Returns:
- the firstName value.
-
withFirstName
Set the firstName property: First name.- Parameters:
firstName- the firstName value to set.- Returns:
- the UserCreateParameterProperties object itself.
-
lastName
Get the lastName property: Last name.- Returns:
- the lastName value.
-
withLastName
Set the lastName property: Last name.- Parameters:
lastName- the lastName value to set.- Returns:
- the UserCreateParameterProperties object itself.
-
password
Get the password property: User Password. If no value is provided, a default password is generated.- Returns:
- the password value.
-
withPassword
Set the password property: User Password. If no value is provided, a default password is generated.- Parameters:
password- the password value to set.- Returns:
- the UserCreateParameterProperties object itself.
-
appType
Get the appType property: Determines the type of application which send the create user request. Default is legacy portal.- Returns:
- the appType value.
-
withAppType
Set the appType property: Determines the type of application which send the create user request. Default is legacy portal.- Parameters:
appType- the appType value to set.- Returns:
- the UserCreateParameterProperties object itself.
-
confirmation
Get the confirmation property: Determines the type of confirmation e-mail that will be sent to the newly created user.- Returns:
- the confirmation value.
-
withConfirmation
Set the confirmation property: Determines the type of confirmation e-mail that will be sent to the newly created user.- Parameters:
confirmation- the confirmation value to set.- Returns:
- the UserCreateParameterProperties object itself.
-
withState
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:
withStatein classUserEntityBaseParameters- Parameters:
state- the state value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
withNote
Set the note property: Optional note about a user set by the administrator.- Overrides:
withNotein classUserEntityBaseParameters- Parameters:
note- the note value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
withIdentities
Set the identities property: Collection of user identities.- Overrides:
withIdentitiesin classUserEntityBaseParameters- Parameters:
identities- the identities value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classUserEntityBaseParameters- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserEntityBaseParameters>- Overrides:
toJsonin classUserEntityBaseParameters- Throws:
IOException
-
fromJson
public static UserCreateParameterProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserCreateParameterProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserCreateParameterProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the UserCreateParameterProperties.
-