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>
Monitor serverless spark compute definition.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MonitorServerlessSparkCompute class. -
Method Summary
Modifier and TypeMethodDescriptionGet the computeIdentity property: [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark.Get the computeType property: [Required] Specifies the type of signal to monitor.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MonitorServerlessSparkCompute from the JsonReader.Get the instanceType property: [Required] The instance type running the Spark job.Get the runtimeVersion property: [Required] The Spark runtime version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withComputeIdentity(MonitorComputeIdentityBase computeIdentity) Set the computeIdentity property: [Required] The identity scheme leveraged to by the spark jobs running on serverless Spark.withInstanceType(String instanceType) Set the instanceType property: [Required] The instance type running the Spark job.withRuntimeVersion(String runtimeVersion) Set the runtimeVersion property: [Required] The Spark runtime version.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
-
MonitorServerlessSparkCompute
public MonitorServerlessSparkCompute()Creates an instance of MonitorServerlessSparkCompute class.
-
-
Method Details
-
computeType
Get the computeType property: [Required] Specifies the type of signal to monitor.- Overrides:
computeTypein classMonitorComputeConfigurationBase- Returns:
- the computeType value.
-
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
Get the instanceType property: [Required] The instance type running the Spark job.- Returns:
- the instanceType value.
-
withInstanceType
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
Get the runtimeVersion property: [Required] The Spark runtime version.- Returns:
- the runtimeVersion value.
-
withRuntimeVersion
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:
validatein classMonitorComputeConfigurationBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MonitorComputeConfigurationBase>- Overrides:
toJsonin classMonitorComputeConfigurationBase- 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.
-