Class RangerUsersyncSpec

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.RangerUsersyncSpec
All Implemented Interfaces:
com.azure.json.JsonSerializable<RangerUsersyncSpec>

public final class RangerUsersyncSpec extends Object implements com.azure.json.JsonSerializable<RangerUsersyncSpec>
Specification for the Ranger Usersync service.
  • Constructor Details

    • RangerUsersyncSpec

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Denotes whether usersync service should be enabled.
      Returns:
      the enabled value.
    • withEnabled

      public RangerUsersyncSpec withEnabled(Boolean enabled)
      Set the enabled property: Denotes whether usersync service should be enabled.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the RangerUsersyncSpec object itself.
    • groups

      public List<String> groups()
      Get the groups property: List of groups that should be synced. These group names should match the object id of the respective AAD groups.
      Returns:
      the groups value.
    • withGroups

      public RangerUsersyncSpec withGroups(List<String> groups)
      Set the groups property: List of groups that should be synced. These group names should match the object id of the respective AAD groups.
      Parameters:
      groups - the groups value to set.
      Returns:
      the RangerUsersyncSpec object itself.
    • mode

      public RangerUsersyncMode mode()
      Get the mode property: User & groups can be synced automatically or via a static list that's refreshed.
      Returns:
      the mode value.
    • withMode

      public RangerUsersyncSpec withMode(RangerUsersyncMode mode)
      Set the mode property: User & groups can be synced automatically or via a static list that's refreshed.
      Parameters:
      mode - the mode value to set.
      Returns:
      the RangerUsersyncSpec object itself.
    • userMappingLocation

      public String userMappingLocation()
      Get the userMappingLocation property: Azure storage location of a mapping file that lists user & group associations.
      Returns:
      the userMappingLocation value.
    • withUserMappingLocation

      public RangerUsersyncSpec withUserMappingLocation(String userMappingLocation)
      Set the userMappingLocation property: Azure storage location of a mapping file that lists user & group associations.
      Parameters:
      userMappingLocation - the userMappingLocation value to set.
      Returns:
      the RangerUsersyncSpec object itself.
    • users

      public List<String> users()
      Get the users property: List of user names that should be synced. These usernames should match the User principal name of the respective AAD users.
      Returns:
      the users value.
    • withUsers

      public RangerUsersyncSpec withUsers(List<String> users)
      Set the users property: List of user names that should be synced. These usernames should match the User principal name of the respective AAD users.
      Parameters:
      users - the users value to set.
      Returns:
      the RangerUsersyncSpec 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<RangerUsersyncSpec>
      Throws:
      IOException
    • fromJson

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