Class FlinkHiveCatalogOption
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.FlinkHiveCatalogOption
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FlinkHiveCatalogOption>
public final class FlinkHiveCatalogOption
extends Object
implements com.azure.json.JsonSerializable<FlinkHiveCatalogOption>
Hive Catalog Option for Flink cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FlinkHiveCatalogOption class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlinkHiveCatalogOptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FlinkHiveCatalogOption from the JsonReader.Get the metastoreDbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database.Get the metastoreDbConnectionPasswordSecret property: Secret reference name from secretsProfile.secrets containing password for database connection.Get the metastoreDbConnectionUrl property: Connection string for hive metastore database.Get the metastoreDbConnectionUsername property: User name for database connection.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withMetastoreDbConnectionAuthenticationMode(MetastoreDbConnectionAuthenticationMode metastoreDbConnectionAuthenticationMode) Set the metastoreDbConnectionAuthenticationMode property: The authentication mode to connect to your Hive metastore database.withMetastoreDbConnectionPasswordSecret(String metastoreDbConnectionPasswordSecret) Set the metastoreDbConnectionPasswordSecret property: Secret reference name from secretsProfile.secrets containing password for database connection.withMetastoreDbConnectionUrl(String metastoreDbConnectionUrl) Set the metastoreDbConnectionUrl property: Connection string for hive metastore database.withMetastoreDbConnectionUsername(String metastoreDbConnectionUsername) Set the metastoreDbConnectionUsername property: User name for database connection.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
-
FlinkHiveCatalogOption
public FlinkHiveCatalogOption()Creates an instance of FlinkHiveCatalogOption class.
-
-
Method Details
-
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 FlinkHiveCatalogOption 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 FlinkHiveCatalogOption object itself.
-
metastoreDbConnectionPasswordSecret
Get the metastoreDbConnectionPasswordSecret property: Secret reference name from secretsProfile.secrets containing password for database connection.- Returns:
- the metastoreDbConnectionPasswordSecret value.
-
withMetastoreDbConnectionPasswordSecret
public FlinkHiveCatalogOption 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 FlinkHiveCatalogOption object itself.
-
metastoreDbConnectionUrl
Get the metastoreDbConnectionUrl property: Connection string for hive metastore database.- Returns:
- the metastoreDbConnectionUrl value.
-
withMetastoreDbConnectionUrl
Set the metastoreDbConnectionUrl property: Connection string for hive metastore database.- Parameters:
metastoreDbConnectionUrl- the metastoreDbConnectionUrl value to set.- Returns:
- the FlinkHiveCatalogOption object itself.
-
metastoreDbConnectionUsername
Get the metastoreDbConnectionUsername property: User name for database connection.- Returns:
- the metastoreDbConnectionUsername value.
-
withMetastoreDbConnectionUsername
public FlinkHiveCatalogOption withMetastoreDbConnectionUsername(String metastoreDbConnectionUsername) Set the metastoreDbConnectionUsername property: User name for database connection.- Parameters:
metastoreDbConnectionUsername- the metastoreDbConnectionUsername value to set.- Returns:
- the FlinkHiveCatalogOption 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<FlinkHiveCatalogOption>- Throws:
IOException
-
fromJson
public static FlinkHiveCatalogOption fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FlinkHiveCatalogOption from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FlinkHiveCatalogOption 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 FlinkHiveCatalogOption.
-