Class UserSet
java.lang.Object
com.azure.resourcemanager.authorization.models.UserSet
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UserSet>
The detail of a user.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: The description of the user.static UserSetfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UserSet from the JsonReader.id()Get the id property: The object id of the user.isBackup()Get the isBackup property: The value indicating whether the user is a backup fallback approver.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) userType()Get the userType property: The type of user.voidvalidate()Validates the instance.withDescription(String description) Set the description property: The description of the user.Set the id property: The object id of the user.withIsBackup(Boolean isBackup) Set the isBackup property: The value indicating whether the user is a backup fallback approver.withUserType(UserType userType) Set the userType property: The type of user.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
-
UserSet
public UserSet()Creates an instance of UserSet class.
-
-
Method Details
-
userType
Get the userType property: The type of user.- Returns:
- the userType value.
-
withUserType
Set the userType property: The type of user.- Parameters:
userType- the userType value to set.- Returns:
- the UserSet object itself.
-
isBackup
Get the isBackup property: The value indicating whether the user is a backup fallback approver.- Returns:
- the isBackup value.
-
withIsBackup
Set the isBackup property: The value indicating whether the user is a backup fallback approver.- Parameters:
isBackup- the isBackup value to set.- Returns:
- the UserSet object itself.
-
id
Get the id property: The object id of the user.- Returns:
- the id value.
-
withId
Set the id property: The object id of the user.- Parameters:
id- the id value to set.- Returns:
- the UserSet object itself.
-
description
Get the description property: The description of the user.- Returns:
- the description value.
-
withDescription
Set the description property: The description of the user.- Parameters:
description- the description value to set.- Returns:
- the UserSet 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<UserSet>- Throws:
IOException
-
fromJson
Reads an instance of UserSet from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UserSet 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 UserSet.
-