Freigeben über


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.

Constructor Summary

Constructor Description
CachedImages()

Creates an instance of CachedImages class.

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.

CachedImages withImage(String image)

Set the image property: The cached image name.

CachedImages withOsType(String osType)

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

Methods inherited from java.lang.Object

Constructor Details

CachedImages

public CachedImages()

Creates an instance of CachedImages class.

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.

withImage

public CachedImages withImage(String image)

Set the image property: The cached image name.

Parameters:

image - the image value to set.

Returns:

the CachedImages object itself.

withOsType

public CachedImages withOsType(String osType)

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

Parameters:

osType - the osType value to set.

Returns:

the CachedImages object itself.

Applies to