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

public final class UserSet extends Object implements com.azure.json.JsonSerializable<UserSet>
The detail of a user.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of UserSet class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the description property: The description of the user.
    static UserSet
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of UserSet from the JsonReader.
    id()
    Get the id property: The object id of the user.
    Get the isBackup property: The value indicating whether the user is a backup fallback approver.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the userType property: The type of user.
    void
    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.
    Set the isBackup property: The value indicating whether the user is a backup fallback approver.
    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, wait

    Methods 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

      public UserType userType()
      Get the userType property: The type of user.
      Returns:
      the userType value.
    • withUserType

      public UserSet withUserType(UserType userType)
      Set the userType property: The type of user.
      Parameters:
      userType - the userType value to set.
      Returns:
      the UserSet object itself.
    • isBackup

      public Boolean isBackup()
      Get the isBackup property: The value indicating whether the user is a backup fallback approver.
      Returns:
      the isBackup value.
    • withIsBackup

      public UserSet withIsBackup(Boolean isBackup)
      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

      public String id()
      Get the id property: The object id of the user.
      Returns:
      the id value.
    • withId

      public UserSet withId(String id)
      Set the id property: The object id of the user.
      Parameters:
      id - the id value to set.
      Returns:
      the UserSet object itself.
    • description

      public String description()
      Get the description property: The description of the user.
      Returns:
      the description value.
    • withDescription

      public UserSet withDescription(String description)
      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

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

      public static UserSet fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.