Class RangerProfile
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.RangerProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<RangerProfile>
public final class RangerProfile
extends Object
implements com.azure.json.JsonSerializable<RangerProfile>
The ranger cluster profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RangerProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of RangerProfile from the JsonReader.Get the rangerAdmin property: Specification for the Ranger Admin service.Get the rangerAudit property: Properties required to describe audit log storage.Get the rangerUsersync property: Specification for the Ranger Usersync service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withRangerAdmin(RangerAdminSpec rangerAdmin) Set the rangerAdmin property: Specification for the Ranger Admin service.withRangerAudit(RangerAuditSpec rangerAudit) Set the rangerAudit property: Properties required to describe audit log storage.withRangerUsersync(RangerUsersyncSpec rangerUsersync) Set the rangerUsersync property: Specification for the Ranger Usersync service.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
-
RangerProfile
public RangerProfile()Creates an instance of RangerProfile class.
-
-
Method Details
-
rangerAdmin
Get the rangerAdmin property: Specification for the Ranger Admin service.- Returns:
- the rangerAdmin value.
-
withRangerAdmin
Set the rangerAdmin property: Specification for the Ranger Admin service.- Parameters:
rangerAdmin- the rangerAdmin value to set.- Returns:
- the RangerProfile object itself.
-
rangerAudit
Get the rangerAudit property: Properties required to describe audit log storage.- Returns:
- the rangerAudit value.
-
withRangerAudit
Set the rangerAudit property: Properties required to describe audit log storage.- Parameters:
rangerAudit- the rangerAudit value to set.- Returns:
- the RangerProfile object itself.
-
rangerUsersync
Get the rangerUsersync property: Specification for the Ranger Usersync service.- Returns:
- the rangerUsersync value.
-
withRangerUsersync
Set the rangerUsersync property: Specification for the Ranger Usersync service.- Parameters:
rangerUsersync- the rangerUsersync value to set.- Returns:
- the RangerProfile 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<RangerProfile>- Throws:
IOException
-
fromJson
Reads an instance of RangerProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of RangerProfile 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 RangerProfile.
-