Class MonitorServerlessSparkCompute

java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitorComputeConfigurationBase
com.azure.resourcemanager.machinelearning.models.MonitorServerlessSparkCompute
All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitorComputeConfigurationBase>

public final class MonitorServerlessSparkCompute extends MonitorComputeConfigurationBase
Monitor serverless spark compute definition.
  • Constructor Details

    • MonitorServerlessSparkCompute

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

    • computeType

      public MonitorComputeType computeType()
      Get the computeType property: [Required] Specifies the type of signal to monitor.
      Overrides:
      computeType in class MonitorComputeConfigurationBase
      Returns:
      the computeType value.
    • computeIdentity

      public MonitorComputeIdentityBase computeIdentity()
      Get the computeIdentity property: [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark.
      Returns:
      the computeIdentity value.
    • withComputeIdentity

      public MonitorServerlessSparkCompute withComputeIdentity(MonitorComputeIdentityBase computeIdentity)
      Set the computeIdentity property: [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark.
      Parameters:
      computeIdentity - the computeIdentity value to set.
      Returns:
      the MonitorServerlessSparkCompute object itself.
    • instanceType

      public String instanceType()
      Get the instanceType property: [Required] The instance type running the Spark job.
      Returns:
      the instanceType value.
    • withInstanceType

      public MonitorServerlessSparkCompute withInstanceType(String instanceType)
      Set the instanceType property: [Required] The instance type running the Spark job.
      Parameters:
      instanceType - the instanceType value to set.
      Returns:
      the MonitorServerlessSparkCompute object itself.
    • runtimeVersion

      public String runtimeVersion()
      Get the runtimeVersion property: [Required] The Spark runtime version.
      Returns:
      the runtimeVersion value.
    • withRuntimeVersion

      public MonitorServerlessSparkCompute withRuntimeVersion(String runtimeVersion)
      Set the runtimeVersion property: [Required] The Spark runtime version.
      Parameters:
      runtimeVersion - the runtimeVersion value to set.
      Returns:
      the MonitorServerlessSparkCompute object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MonitorComputeConfigurationBase
      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<MonitorComputeConfigurationBase>
      Overrides:
      toJson in class MonitorComputeConfigurationBase
      Throws:
      IOException
    • fromJson

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