CachedImages Class

  • java.lang.Object
    • com.azure.resourcemanager.containerinstance.models.CachedImages

Implements

public final class CachedImages
implements JsonSerializable<CachedImages>

The cached image and OS type.

Method Summary

Modifier and Type Method and Description
static CachedImages fromJson(JsonReader jsonReader)

Reads an instance of CachedImages from the JsonReader.

String image()

Get the image property: The cached image name.

String osType()

Get the osType property: The OS type of the cached image.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Method Details

fromJson

public static CachedImages fromJson(JsonReader jsonReader)

Reads an instance of CachedImages from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CachedImages if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

image

public String image()

Get the image property: The cached image name.

Returns:

the image value.

osType

public String osType()

Get the osType property: The OS type of the cached image.

Returns:

the osType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to