Class DevBoxImageReference
java.lang.Object
com.azure.developer.devcenter.models.DevBoxImageReference
- All Implemented Interfaces:
com.azure.json.JsonSerializable<DevBoxImageReference>
public final class DevBoxImageReference
extends Object
implements com.azure.json.JsonSerializable<DevBoxImageReference>
Specifies information about the image used.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DevBoxImageReferencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of DevBoxImageReference from the JsonReader.getName()Get the name property: The name of the image used.Get the operatingSystem property: The operating system of the image.Get the osBuildNumber property: The operating system build number of the image.Get the publishedDate property: The datetime that the backing image version was published, in RFC3339 format.Get the version property: The version of the image.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
-
Method Details
-
getName
Get the name property: The name of the image used.- Returns:
- the name value.
-
getVersion
Get the version property: The version of the image.- Returns:
- the version value.
-
getOperatingSystem
Get the operatingSystem property: The operating system of the image.- Returns:
- the operatingSystem value.
-
getOsBuildNumber
Get the osBuildNumber property: The operating system build number of the image.- Returns:
- the osBuildNumber value.
-
getPublishedDate
Get the publishedDate property: The datetime that the backing image version was published, in RFC3339 format.- Returns:
- the publishedDate value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<DevBoxImageReference>- Throws:
IOException
-
fromJson
public static DevBoxImageReference fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of DevBoxImageReference from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of DevBoxImageReference 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 DevBoxImageReference.
-