Class ImageMetadata
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the currentImageVersion property: Specifies the current operating system image version this compute instance is running on.static ImageMetadatafromJson(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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()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, waitMethods 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
Get the currentImageVersion property: Specifies the current operating system image version this compute instance is running on.- Returns:
- the currentImageVersion value.
-
withCurrentImageVersion
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
Get the latestImageVersion property: Specifies the latest available operating system image version.- Returns:
- the latestImageVersion value.
-
withLatestImageVersion
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
Get the isLatestOsImageVersion property: Specifies whether this compute instance is running on the latest operating system image.- Returns:
- the isLatestOsImageVersion value.
-
withIsLatestOsImageVersion
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ImageMetadata>- Throws:
IOException
-
fromJson
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.
-