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

public final class Image extends Object implements com.azure.json.JsonSerializable<Image>
Describes the Image Specifications.
  • Constructor Details

    • Image

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

    • type

      public ImageType type()
      Get the type property: Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images.
      Returns:
      the type value.
    • withType

      public Image withType(ImageType type)
      Set the type property: Type of the image. Possible values are: docker - For docker images. azureml - For AzureML images.
      Parameters:
      type - the type value to set.
      Returns:
      the Image object itself.
    • reference

      public String reference()
      Get the reference property: Image reference.
      Returns:
      the reference value.
    • withReference

      public Image withReference(String reference)
      Set the reference property: Image reference.
      Parameters:
      reference - the reference value to set.
      Returns:
      the Image object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: Describes the Image Specifications.
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public Image withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: Describes the Image Specifications.
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the Image 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<Image>
      Throws:
      IOException
    • fromJson

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