Class UserEntityBaseParameters
java.lang.Object
com.azure.resourcemanager.apimanagement.models.UserEntityBaseParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserEntityBaseParameters>
- Direct Known Subclasses:
UserContractProperties,UserCreateParameterProperties,UserUpdateParametersProperties
public class UserEntityBaseParameters
extends Object
implements com.azure.json.JsonSerializable<UserEntityBaseParameters>
User Entity Base Parameters set.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of UserEntityBaseParameters class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UserEntityBaseParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserEntityBaseParameters from the JsonReader.Get the identities property: Collection of user identities.note()Get the note property: Optional note about a user set by the administrator.state()Get the state property: Account state.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIdentities(List<UserIdentityContractInner> identities) Set the identities property: Collection of user identities.Set the note property: Optional note about a user set by the administrator.Set the state property: Account state.Methods 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
-
UserEntityBaseParameters
public UserEntityBaseParameters()Creates an instance of UserEntityBaseParameters class.
-
-
Method Details
-
state
Get 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.- Returns:
- the state value.
-
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.- Parameters:
state- the state value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
note
Get the note property: Optional note about a user set by the administrator.- Returns:
- the note value.
-
withNote
Set the note property: Optional note about a user set by the administrator.- Parameters:
note- the note value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
identities
Get the identities property: Collection of user identities.- Returns:
- the identities value.
-
withIdentities
Set the identities property: Collection of user identities.- Parameters:
identities- the identities value to set.- Returns:
- the UserEntityBaseParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UserEntityBaseParameters>- Throws:
IOException
-
fromJson
public static UserEntityBaseParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of UserEntityBaseParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserEntityBaseParameters 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 UserEntityBaseParameters.
-