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 Details

    • RangerProfile

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

    • rangerAdmin

      public RangerAdminSpec rangerAdmin()
      Get the rangerAdmin property: Specification for the Ranger Admin service.
      Returns:
      the rangerAdmin value.
    • withRangerAdmin

      public RangerProfile withRangerAdmin(RangerAdminSpec rangerAdmin)
      Set the rangerAdmin property: Specification for the Ranger Admin service.
      Parameters:
      rangerAdmin - the rangerAdmin value to set.
      Returns:
      the RangerProfile object itself.
    • rangerAudit

      public RangerAuditSpec rangerAudit()
      Get the rangerAudit property: Properties required to describe audit log storage.
      Returns:
      the rangerAudit value.
    • withRangerAudit

      public RangerProfile withRangerAudit(RangerAuditSpec rangerAudit)
      Set the rangerAudit property: Properties required to describe audit log storage.
      Parameters:
      rangerAudit - the rangerAudit value to set.
      Returns:
      the RangerProfile object itself.
    • rangerUsersync

      public RangerUsersyncSpec rangerUsersync()
      Get the rangerUsersync property: Specification for the Ranger Usersync service.
      Returns:
      the rangerUsersync value.
    • withRangerUsersync

      public RangerProfile withRangerUsersync(RangerUsersyncSpec rangerUsersync)
      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

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

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