Class MaterializationComputeResource

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

public final class MaterializationComputeResource extends Object implements com.azure.json.JsonSerializable<MaterializationComputeResource>
DTO object representing compute resource.
  • Constructor Details

    • MaterializationComputeResource

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

    • instanceType

      public String instanceType()
      Get the instanceType property: Specifies the instance type.
      Returns:
      the instanceType value.
    • withInstanceType

      public MaterializationComputeResource withInstanceType(String instanceType)
      Set the instanceType property: Specifies the instance type.
      Parameters:
      instanceType - the instanceType value to set.
      Returns:
      the MaterializationComputeResource 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<MaterializationComputeResource>
      Throws:
      IOException
    • fromJson

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