Class VirtualMachineSchema

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

public class VirtualMachineSchema extends Object implements com.azure.json.JsonSerializable<VirtualMachineSchema>
The VirtualMachineSchema model.
  • Constructor Details

    • VirtualMachineSchema

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

    • properties

      public VirtualMachineSchemaProperties properties()
      Get the properties property: The properties property.
      Returns:
      the properties value.
    • withProperties

      public VirtualMachineSchema withProperties(VirtualMachineSchemaProperties properties)
      Set the properties property: The properties property.
      Parameters:
      properties - the properties value to set.
      Returns:
      the VirtualMachineSchema 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<VirtualMachineSchema>
      Throws:
      IOException
    • fromJson

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