Share via


ImageInner Class

public final class ImageInner
extends ProxyResource

Lab services virtual machine image.

Constructor Summary

Constructor Description
ImageInner()

Creates an instance of ImageInner class.

Method Summary

Modifier and Type Method and Description
String author()

Get the author property: The image author.

List<String> availableRegions()

Get the availableRegions property: The available regions of the image in the shared gallery.

String description()

Get the description property: A description of the image.

String displayName()

Get the displayName property: The image display name.

EnableState enabledState()

Get the enabledState property: Is the image enabled.

static ImageInner fromJson(JsonReader jsonReader)

Reads an instance of ImageInner from the JsonReader.

String iconUrl()

Get the iconUrl property: URL of the image icon.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

String offer()

Get the offer property: The ID of an offer associated with the image.

OsState osState()

Get the osState property: The OS State of the image.

OsType osType()

Get the osType property: The OS Type of the image.

String plan()

Get the plan property: The ID of marketplace plan associated with the image (optional).

ProvisioningState provisioningState()

Get the provisioningState property: Current provisioning state of the image.

String publisher()

Get the publisher property: The ID of the publisher of the image.

String sharedGalleryId()

Get the sharedGalleryId property: The ID for the image in the shared gallery.

String sku()

Get the sku property: The image SKU.

SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the image.

EnableState termsStatus()

Get the termsStatus property: The status of image terms of use (enabled = accepted, disabled = not accepted).

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

String version()

Get the version property: The image version.

ImageInner withAvailableRegions(List<String> availableRegions)

Set the availableRegions property: The available regions of the image in the shared gallery.

ImageInner withEnabledState(EnableState enabledState)

Set the enabledState property: Is the image enabled.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

ImageInner

public ImageInner()

Creates an instance of ImageInner class.

Method Details

author

public String author()

Get the author property: The image author.

Returns:

the author value.

availableRegions

public List<String> availableRegions()

Get the availableRegions property: The available regions of the image in the shared gallery.

Returns:

the availableRegions value.

description

public String description()

Get the description property: A description of the image.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: The image display name.

Returns:

the displayName value.

enabledState

public EnableState enabledState()

Get the enabledState property: Is the image enabled.

Returns:

the enabledState value.

fromJson

public static ImageInner fromJson(JsonReader jsonReader)

Reads an instance of ImageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ImageInner 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.

iconUrl

public String iconUrl()

Get the iconUrl property: URL of the image icon.

Returns:

the iconUrl value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ImageInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ImageInner.name()

Returns:

the name value.

offer

public String offer()

Get the offer property: The ID of an offer associated with the image.

Returns:

the offer value.

osState

public OsState osState()

Get the osState property: The OS State of the image.

Returns:

the osState value.

osType

public OsType osType()

Get the osType property: The OS Type of the image.

Returns:

the osType value.

plan

public String plan()

Get the plan property: The ID of marketplace plan associated with the image (optional).

Returns:

the plan value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Current provisioning state of the image.

Returns:

the provisioningState value.

publisher

public String publisher()

Get the publisher property: The ID of the publisher of the image.

Returns:

the publisher value.

sharedGalleryId

public String sharedGalleryId()

Get the sharedGalleryId property: The ID for the image in the shared gallery.

Returns:

the sharedGalleryId value.

sku

public String sku()

Get the sku property: The image SKU.

Returns:

the sku value.

systemData

public SystemData systemData()

Get the systemData property: Metadata pertaining to creation and last modification of the image.

Returns:

the systemData value.

termsStatus

public EnableState termsStatus()

Get the termsStatus property: The status of image terms of use (enabled = accepted, disabled = not accepted).

Returns:

the termsStatus value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ImageInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public String version()

Get the version property: The image version.

Returns:

the version value.

withAvailableRegions

public ImageInner withAvailableRegions(List<String> availableRegions)

Set the availableRegions property: The available regions of the image in the shared gallery.

Parameters:

availableRegions - the availableRegions value to set.

Returns:

the ImageInner object itself.

withEnabledState

public ImageInner withEnabledState(EnableState enabledState)

Set the enabledState property: Is the image enabled.

Parameters:

enabledState - the enabledState value to set.

Returns:

the ImageInner object itself.

Applies to