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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the defaultStorageUrl property: The default storage URL.static SparkProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SparkProfile from the JsonReader.Get the metastoreSpec property: The metastore specification for Spark cluster.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the userPluginsSpec property: Spark user plugins spec.voidvalidate()Validates the instance.withDefaultStorageUrl(String defaultStorageUrl) Set the defaultStorageUrl property: The default storage URL.withMetastoreSpec(SparkMetastoreSpec metastoreSpec) Set the metastoreSpec property: The metastore specification for Spark cluster.withUserPluginsSpec(SparkUserPlugins userPluginsSpec) Set the userPluginsSpec property: Spark user plugins spec.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
-
SparkProfile
public SparkProfile()Creates an instance of SparkProfile class.
-
-
Method Details
-
defaultStorageUrl
Get the defaultStorageUrl property: The default storage URL.- Returns:
- the defaultStorageUrl value.
-
withDefaultStorageUrl
Set the defaultStorageUrl property: The default storage URL.- Parameters:
defaultStorageUrl- the defaultStorageUrl value to set.- Returns:
- the SparkProfile object itself.
-
metastoreSpec
Get the metastoreSpec property: The metastore specification for Spark cluster.- Returns:
- the metastoreSpec value.
-
withMetastoreSpec
Set the metastoreSpec property: The metastore specification for Spark cluster.- Parameters:
metastoreSpec- the metastoreSpec value to set.- Returns:
- the SparkProfile object itself.
-
userPluginsSpec
Get the userPluginsSpec property: Spark user plugins spec.- Returns:
- the userPluginsSpec value.
-
withUserPluginsSpec
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SparkProfile>- Throws:
IOException
-
fromJson
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.
-