Class RangerAdminSpec
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.RangerAdminSpec
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RangerAdminSpec>
public final class RangerAdminSpec
extends Object
implements com.azure.json.JsonSerializable<RangerAdminSpec>
Specification for the Ranger Admin service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadmins()Get the admins property: List of usernames that should be marked as ranger admins.database()Get the database property: The database property.static RangerAdminSpecfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RangerAdminSpec from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAdmins(List<String> admins) Set the admins property: List of usernames that should be marked as ranger admins.withDatabase(RangerAdminSpecDatabase database) Set the database property: The database property.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
-
RangerAdminSpec
public RangerAdminSpec()Creates an instance of RangerAdminSpec class.
-
-
Method Details
-
admins
-
withAdmins
Set the admins property: List of usernames that should be marked as ranger admins. These usernames should match the user principal name (UPN) of the respective AAD users.- Parameters:
admins- the admins value to set.- Returns:
- the RangerAdminSpec object itself.
-
database
Get the database property: The database property.- Returns:
- the database value.
-
withDatabase
Set the database property: The database property.- Parameters:
database- the database value to set.- Returns:
- the RangerAdminSpec 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<RangerAdminSpec>- Throws:
IOException
-
fromJson
Reads an instance of RangerAdminSpec from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RangerAdminSpec if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the RangerAdminSpec.
-