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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Denotes whether usersync service should be enabled.static RangerUsersyncSpecfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RangerUsersyncSpec from the JsonReader.groups()Get the groups property: List of groups that should be synced.mode()Get the mode property: User & groups can be synced automatically or via a static list that's refreshed.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userMappingLocation property: Azure storage location of a mapping file that lists user & group associations.users()Get the users property: List of user names that should be synced.voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Denotes whether usersync service should be enabled.withGroups(List<String> groups) Set the groups property: List of groups that should be synced.withMode(RangerUsersyncMode mode) Set the mode property: User & groups can be synced automatically or via a static list that's refreshed.withUserMappingLocation(String userMappingLocation) Set the userMappingLocation property: Azure storage location of a mapping file that lists user & group associations.Set the users property: List of user names that should be synced.Methods inherited from class 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
-
RangerUsersyncSpec
public RangerUsersyncSpec()Creates an instance of RangerUsersyncSpec class.
-
-
Method Details
-
enabled
Get the enabled property: Denotes whether usersync service should be enabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Denotes whether usersync service should be enabled.- Parameters:
enabled- the enabled value to set.- Returns:
- the RangerUsersyncSpec object itself.
-
groups
-
withGroups
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
Get the mode property: User & groups can be synced automatically or via a static list that's refreshed.- Returns:
- the mode value.
-
withMode
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
Get the userMappingLocation property: Azure storage location of a mapping file that lists user & group associations.- Returns:
- the userMappingLocation value.
-
withUserMappingLocation
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
-
withUsers
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<RangerUsersyncSpec>- Throws:
IOException
-
fromJson
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.
-