CachedImages Class
- java.
lang. Object - com.
azure. resourcemanager. containerinstance. models. CachedImages
- com.
Implements
public final class CachedImages
implements JsonSerializable<CachedImages>
The cached image and OS type.
Constructor Summary
Constructor | Description |
---|---|
CachedImages() |
Creates an instance of Cached |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Cached |
fromJson(JsonReader jsonReader)
Reads an instance of Cached |
String |
image()
Get the image property: The cached image name. |
String |
osType()
Get the os |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Cached |
withImage(String image)
Set the image property: The cached image name. |
Cached |
withOsType(String osType)
Set the os |
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:
Returns:
Throws:
image
public String image()
Get the image property: The cached image name.
Returns:
osType
public String osType()
Get the osType property: The OS type of the cached image.
Returns:
toJson
validate
public void validate()
Validates the instance.
withImage
public CachedImages withImage(String image)
Set the image property: The cached image name.
Parameters:
Returns:
withOsType
public CachedImages withOsType(String osType)
Set the osType property: The OS type of the cached image.
Parameters:
Returns:
Applies to
Azure SDK for Java