Class SparkUserPlugins
java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.SparkUserPlugins
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SparkUserPlugins>
public final class SparkUserPlugins
extends Object
implements com.azure.json.JsonSerializable<SparkUserPlugins>
Spark user plugins spec.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SparkUserPluginsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SparkUserPlugins from the JsonReader.plugins()Get the plugins property: Spark user plugins.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withPlugins(List<SparkUserPlugin> plugins) Set the plugins property: Spark user plugins.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
-
SparkUserPlugins
public SparkUserPlugins()Creates an instance of SparkUserPlugins class.
-
-
Method Details
-
plugins
Get the plugins property: Spark user plugins.- Returns:
- the plugins value.
-
withPlugins
Set the plugins property: Spark user plugins.- Parameters:
plugins- the plugins value to set.- Returns:
- the SparkUserPlugins 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<SparkUserPlugins>- Throws:
IOException
-
fromJson
Reads an instance of SparkUserPlugins from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SparkUserPlugins 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 SparkUserPlugins.
-