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 Details

    • RangerAdminSpec

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

    • admins

      public List<String> admins()
      Get 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.
      Returns:
      the admins value.
    • withAdmins

      public RangerAdminSpec withAdmins(List<String> admins)
      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

      public RangerAdminSpecDatabase database()
      Get the database property: The database property.
      Returns:
      the database value.
    • withDatabase

      public RangerAdminSpec withDatabase(RangerAdminSpecDatabase database)
      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

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

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