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

public final class ImageMetadata extends Object implements com.azure.json.JsonSerializable<ImageMetadata>
Returns metadata about the operating system image for this compute instance.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ImageMetadata class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the currentImageVersion property: Specifies the current operating system image version this compute instance is running on.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ImageMetadata from the JsonReader.
    Get the isLatestOsImageVersion property: Specifies whether this compute instance is running on the latest operating system image.
    Get the latestImageVersion property: Specifies the latest available operating system image version.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withCurrentImageVersion(String currentImageVersion)
    Set the currentImageVersion property: Specifies the current operating system image version this compute instance is running on.
    withIsLatestOsImageVersion(Boolean isLatestOsImageVersion)
    Set the isLatestOsImageVersion property: Specifies whether this compute instance is running on the latest operating system image.
    withLatestImageVersion(String latestImageVersion)
    Set the latestImageVersion property: Specifies the latest available operating system image version.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • ImageMetadata

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

    • currentImageVersion

      public String currentImageVersion()
      Get the currentImageVersion property: Specifies the current operating system image version this compute instance is running on.
      Returns:
      the currentImageVersion value.
    • withCurrentImageVersion

      public ImageMetadata withCurrentImageVersion(String currentImageVersion)
      Set the currentImageVersion property: Specifies the current operating system image version this compute instance is running on.
      Parameters:
      currentImageVersion - the currentImageVersion value to set.
      Returns:
      the ImageMetadata object itself.
    • latestImageVersion

      public String latestImageVersion()
      Get the latestImageVersion property: Specifies the latest available operating system image version.
      Returns:
      the latestImageVersion value.
    • withLatestImageVersion

      public ImageMetadata withLatestImageVersion(String latestImageVersion)
      Set the latestImageVersion property: Specifies the latest available operating system image version.
      Parameters:
      latestImageVersion - the latestImageVersion value to set.
      Returns:
      the ImageMetadata object itself.
    • isLatestOsImageVersion

      public Boolean isLatestOsImageVersion()
      Get the isLatestOsImageVersion property: Specifies whether this compute instance is running on the latest operating system image.
      Returns:
      the isLatestOsImageVersion value.
    • withIsLatestOsImageVersion

      public ImageMetadata withIsLatestOsImageVersion(Boolean isLatestOsImageVersion)
      Set the isLatestOsImageVersion property: Specifies whether this compute instance is running on the latest operating system image.
      Parameters:
      isLatestOsImageVersion - the isLatestOsImageVersion value to set.
      Returns:
      the ImageMetadata 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<ImageMetadata>
      Throws:
      IOException
    • fromJson

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