Class HiveCatalogOption

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.HiveCatalogOption
All Implemented Interfaces:
com.azure.json.JsonSerializable<HiveCatalogOption>

public final class HiveCatalogOption extends Object implements com.azure.json.JsonSerializable<HiveCatalogOption>
Hive Catalog Option.
  • Constructor Details

    • HiveCatalogOption

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

    • catalogName

      public String catalogName()
      Get the catalogName property: Name of trino catalog which should use specified hive metastore.
      Returns:
      the catalogName value.
    • withCatalogName

      public HiveCatalogOption withCatalogName(String catalogName)
      Set the catalogName property: Name of trino catalog which should use specified hive metastore.
      Parameters:
      catalogName - the catalogName value to set.
      Returns:
      the HiveCatalogOption object itself.
    • metastoreDbConnectionAuthenticationMode

      public MetastoreDbConnectionAuthenticationMode metastoreDbConnectionAuthenticationMode()
      Get the metastoreDbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database. More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization.
      Returns:
      the metastoreDbConnectionAuthenticationMode value.
    • withMetastoreDbConnectionAuthenticationMode

      public HiveCatalogOption withMetastoreDbConnectionAuthenticationMode(MetastoreDbConnectionAuthenticationMode metastoreDbConnectionAuthenticationMode)
      Set the metastoreDbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database. More details: https://learn.microsoft.com/en-us/azure/azure-sql/database/logins-create-manage?view=azuresql#authentication-and-authorization.
      Parameters:
      metastoreDbConnectionAuthenticationMode - the metastoreDbConnectionAuthenticationMode value to set.
      Returns:
      the HiveCatalogOption object itself.
    • metastoreDbConnectionPasswordSecret

      public String metastoreDbConnectionPasswordSecret()
      Get the metastoreDbConnectionPasswordSecret property: Secret reference name from secretsProfile.secrets containing password for database connection.
      Returns:
      the metastoreDbConnectionPasswordSecret value.
    • withMetastoreDbConnectionPasswordSecret

      public HiveCatalogOption withMetastoreDbConnectionPasswordSecret(String metastoreDbConnectionPasswordSecret)
      Set the metastoreDbConnectionPasswordSecret property: Secret reference name from secretsProfile.secrets containing password for database connection.
      Parameters:
      metastoreDbConnectionPasswordSecret - the metastoreDbConnectionPasswordSecret value to set.
      Returns:
      the HiveCatalogOption object itself.
    • metastoreDbConnectionUrl

      public String metastoreDbConnectionUrl()
      Get the metastoreDbConnectionUrl property: Connection string for hive metastore database.
      Returns:
      the metastoreDbConnectionUrl value.
    • withMetastoreDbConnectionUrl

      public HiveCatalogOption withMetastoreDbConnectionUrl(String metastoreDbConnectionUrl)
      Set the metastoreDbConnectionUrl property: Connection string for hive metastore database.
      Parameters:
      metastoreDbConnectionUrl - the metastoreDbConnectionUrl value to set.
      Returns:
      the HiveCatalogOption object itself.
    • metastoreDbConnectionUsername

      public String metastoreDbConnectionUsername()
      Get the metastoreDbConnectionUsername property: User name for database connection.
      Returns:
      the metastoreDbConnectionUsername value.
    • withMetastoreDbConnectionUsername

      public HiveCatalogOption withMetastoreDbConnectionUsername(String metastoreDbConnectionUsername)
      Set the metastoreDbConnectionUsername property: User name for database connection.
      Parameters:
      metastoreDbConnectionUsername - the metastoreDbConnectionUsername value to set.
      Returns:
      the HiveCatalogOption object itself.
    • metastoreWarehouseDir

      public String metastoreWarehouseDir()
      Get the metastoreWarehouseDir property: Metastore root directory URI, format: abfs[s]://<container>@<account_name>.dfs.core.windows.net/<path>. More details: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri.
      Returns:
      the metastoreWarehouseDir value.
    • withMetastoreWarehouseDir

      public HiveCatalogOption withMetastoreWarehouseDir(String metastoreWarehouseDir)
      Set the metastoreWarehouseDir property: Metastore root directory URI, format: abfs[s]://<container>@<account_name>.dfs.core.windows.net/<path>. More details: https://docs.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction-abfs-uri.
      Parameters:
      metastoreWarehouseDir - the metastoreWarehouseDir value to set.
      Returns:
      the HiveCatalogOption 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<HiveCatalogOption>
      Throws:
      IOException
    • fromJson

      public static HiveCatalogOption fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of HiveCatalogOption from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of HiveCatalogOption 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 HiveCatalogOption.