Class SparkProfile

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

public final class SparkProfile extends Object implements com.azure.json.JsonSerializable<SparkProfile>
The spark cluster profile.
  • Constructor Details

    • SparkProfile

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

    • defaultStorageUrl

      public String defaultStorageUrl()
      Get the defaultStorageUrl property: The default storage URL.
      Returns:
      the defaultStorageUrl value.
    • withDefaultStorageUrl

      public SparkProfile withDefaultStorageUrl(String defaultStorageUrl)
      Set the defaultStorageUrl property: The default storage URL.
      Parameters:
      defaultStorageUrl - the defaultStorageUrl value to set.
      Returns:
      the SparkProfile object itself.
    • metastoreSpec

      public SparkMetastoreSpec metastoreSpec()
      Get the metastoreSpec property: The metastore specification for Spark cluster.
      Returns:
      the metastoreSpec value.
    • withMetastoreSpec

      public SparkProfile withMetastoreSpec(SparkMetastoreSpec metastoreSpec)
      Set the metastoreSpec property: The metastore specification for Spark cluster.
      Parameters:
      metastoreSpec - the metastoreSpec value to set.
      Returns:
      the SparkProfile object itself.
    • userPluginsSpec

      public SparkUserPlugins userPluginsSpec()
      Get the userPluginsSpec property: Spark user plugins spec.
      Returns:
      the userPluginsSpec value.
    • withUserPluginsSpec

      public SparkProfile withUserPluginsSpec(SparkUserPlugins userPluginsSpec)
      Set the userPluginsSpec property: Spark user plugins spec.
      Parameters:
      userPluginsSpec - the userPluginsSpec value to set.
      Returns:
      the SparkProfile 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<SparkProfile>
      Throws:
      IOException
    • fromJson

      public static SparkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SparkProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SparkProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the SparkProfile.