Class ComputeRuntimeDto

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

public final class ComputeRuntimeDto extends Object implements com.azure.json.JsonSerializable<ComputeRuntimeDto>
Compute runtime config for feature store type workspace.
  • Constructor Details

    • ComputeRuntimeDto

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

    • sparkRuntimeVersion

      public String sparkRuntimeVersion()
      Get the sparkRuntimeVersion property: The sparkRuntimeVersion property.
      Returns:
      the sparkRuntimeVersion value.
    • withSparkRuntimeVersion

      public ComputeRuntimeDto withSparkRuntimeVersion(String sparkRuntimeVersion)
      Set the sparkRuntimeVersion property: The sparkRuntimeVersion property.
      Parameters:
      sparkRuntimeVersion - the sparkRuntimeVersion value to set.
      Returns:
      the ComputeRuntimeDto 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<ComputeRuntimeDto>
      Throws:
      IOException
    • fromJson

      public static ComputeRuntimeDto fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ComputeRuntimeDto from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ComputeRuntimeDto 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 ComputeRuntimeDto.