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 Details

    • SparkResourceConfiguration

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

    • instanceType

      public String instanceType()
      Get the instanceType property: Optional type of VM used as supported by the compute target.
      Returns:
      the instanceType value.
    • withInstanceType

      public SparkResourceConfiguration withInstanceType(String instanceType)
      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

      public String runtimeVersion()
      Get the runtimeVersion property: Version of spark runtime used for the job.
      Returns:
      the runtimeVersion value.
    • withRuntimeVersion

      public SparkResourceConfiguration withRuntimeVersion(String runtimeVersion)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.