Class SparkMetastoreSpec

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

public final class SparkMetastoreSpec extends Object implements com.azure.json.JsonSerializable<SparkMetastoreSpec>
The metastore specification for Spark cluster.
  • Constructor Details

    • SparkMetastoreSpec

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

    • dbServerHost

      public String dbServerHost()
      Get the dbServerHost property: The database server host.
      Returns:
      the dbServerHost value.
    • withDbServerHost

      public SparkMetastoreSpec withDbServerHost(String dbServerHost)
      Set the dbServerHost property: The database server host.
      Parameters:
      dbServerHost - the dbServerHost value to set.
      Returns:
      the SparkMetastoreSpec object itself.
    • dbName

      public String dbName()
      Get the dbName property: The database name.
      Returns:
      the dbName value.
    • withDbName

      public SparkMetastoreSpec withDbName(String dbName)
      Set the dbName property: The database name.
      Parameters:
      dbName - the dbName value to set.
      Returns:
      the SparkMetastoreSpec object itself.
    • dbConnectionAuthenticationMode

      public DbConnectionAuthenticationMode dbConnectionAuthenticationMode()
      Get the dbConnectionAuthenticationMode 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 dbConnectionAuthenticationMode value.
    • withDbConnectionAuthenticationMode

      public SparkMetastoreSpec withDbConnectionAuthenticationMode(DbConnectionAuthenticationMode dbConnectionAuthenticationMode)
      Set the dbConnectionAuthenticationMode 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:
      dbConnectionAuthenticationMode - the dbConnectionAuthenticationMode value to set.
      Returns:
      the SparkMetastoreSpec object itself.
    • dbUsername

      public String dbUsername()
      Get the dbUsername property: The database user name.
      Returns:
      the dbUsername value.
    • withDbUsername

      public SparkMetastoreSpec withDbUsername(String dbUsername)
      Set the dbUsername property: The database user name.
      Parameters:
      dbUsername - the dbUsername value to set.
      Returns:
      the SparkMetastoreSpec object itself.
    • dbPasswordSecretName

      public String dbPasswordSecretName()
      Get the dbPasswordSecretName property: The secret name which contains the database user password.
      Returns:
      the dbPasswordSecretName value.
    • withDbPasswordSecretName

      public SparkMetastoreSpec withDbPasswordSecretName(String dbPasswordSecretName)
      Set the dbPasswordSecretName property: The secret name which contains the database user password.
      Parameters:
      dbPasswordSecretName - the dbPasswordSecretName value to set.
      Returns:
      the SparkMetastoreSpec object itself.
    • keyVaultId

      public String keyVaultId()
      Get the keyVaultId property: The key vault resource id.
      Returns:
      the keyVaultId value.
    • withKeyVaultId

      public SparkMetastoreSpec withKeyVaultId(String keyVaultId)
      Set the keyVaultId property: The key vault resource id.
      Parameters:
      keyVaultId - the keyVaultId value to set.
      Returns:
      the SparkMetastoreSpec object itself.
    • thriftUrl

      public String thriftUrl()
      Get the thriftUrl property: The thrift url.
      Returns:
      the thriftUrl value.
    • withThriftUrl

      public SparkMetastoreSpec withThriftUrl(String thriftUrl)
      Set the thriftUrl property: The thrift url.
      Parameters:
      thriftUrl - the thriftUrl value to set.
      Returns:
      the SparkMetastoreSpec 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<SparkMetastoreSpec>
      Throws:
      IOException
    • fromJson

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