Class SparkResourceConfiguration
java.lang.Object
com.azure.resourcemanager.machinelearning.models.SparkResourceConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SparkResourceConfiguration>
public final class SparkResourceConfiguration
extends Object
implements com.azure.json.JsonSerializable<SparkResourceConfiguration>
The SparkResourceConfiguration model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SparkResourceConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionstatic SparkResourceConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SparkResourceConfiguration from the JsonReader.Get the instanceType property: Optional type of VM used as supported by the compute target.Get the runtimeVersion property: Version of spark runtime used for the job.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withInstanceType(String instanceType) Set the instanceType property: Optional type of VM used as supported by the compute target.withRuntimeVersion(String runtimeVersion) Set the runtimeVersion property: Version of spark runtime used for the job.Methods inherited from class java.lang.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
-
SparkResourceConfiguration
public SparkResourceConfiguration()Creates an instance of SparkResourceConfiguration class.
-
-
Method Details
-
instanceType
Get the instanceType property: Optional type of VM used as supported by the compute target.- Returns:
- the instanceType value.
-
withInstanceType
Set the instanceType property: Optional type of VM used as supported by the compute target.- Parameters:
instanceType- the instanceType value to set.- Returns:
- the SparkResourceConfiguration object itself.
-
runtimeVersion
Get the runtimeVersion property: Version of spark runtime used for the job.- Returns:
- the runtimeVersion value.
-
withRuntimeVersion
Set the runtimeVersion property: Version of spark runtime used for the job.- Parameters:
runtimeVersion- the runtimeVersion value to set.- Returns:
- the SparkResourceConfiguration 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<SparkResourceConfiguration>- Throws:
IOException
-
fromJson
public static SparkResourceConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SparkResourceConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SparkResourceConfiguration 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 SparkResourceConfiguration.
-