Partager via


GalleryImageInner Class

public final class GalleryImageInner
extends Resource

Specifies information about the gallery image definition that you want to create or update.

Constructor Summary

Constructor Description
GalleryImageInner()

Creates an instance of GalleryImageInner class.

Method Summary

Modifier and Type Method and Description
Boolean allowUpdateImage()

Get the allowUpdateImage property: Optional.

Architecture architecture()

Get the architecture property: CPU architecture supported by an OS disk.

String description()

Get the description property: The description of this gallery image definition resource.

Disallowed disallowed()

Get the disallowed property: Describes the disallowed disk types.

OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery image definition.

String eula()

Get the eula property: The Eula agreement for the gallery image definition.

List<GalleryImageFeature> features()

Get the features property: A list of gallery image features.

static GalleryImageInner fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageInner from the JsonReader.

HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

String id()

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

GalleryImageIdentifier identifier()

Get the identifier property: This is the gallery image definition identifier.

String name()

Get the name property: The name of the resource.

OperatingSystemStateTypes osState()

Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

OperatingSystemTypes osType()

Get the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

String privacyStatementUri()

Get the privacyStatementUri property: The privacy statement uri.

GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

ImagePurchasePlan purchasePlan()

Get the purchasePlan property: Describes the gallery image definition purchase plan.

RecommendedMachineConfiguration recommended()

Get the recommended property: The properties describe the recommended machine configuration for this Image Definition.

String releaseNoteUri()

Get the releaseNoteUri property: The release note uri.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

GalleryImageInner withAllowUpdateImage(Boolean allowUpdateImage)

Set the allowUpdateImage property: Optional.

GalleryImageInner withArchitecture(Architecture architecture)

Set the architecture property: CPU architecture supported by an OS disk.

GalleryImageInner withDescription(String description)

Set the description property: The description of this gallery image definition resource.

GalleryImageInner withDisallowed(Disallowed disallowed)

Set the disallowed property: Describes the disallowed disk types.

GalleryImageInner withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery image definition.

GalleryImageInner withEula(String eula)

Set the eula property: The Eula agreement for the gallery image definition.

GalleryImageInner withFeatures(List<GalleryImageFeature> features)

Set the features property: A list of gallery image features.

GalleryImageInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.

GalleryImageInner withIdentifier(GalleryImageIdentifier identifier)

Set the identifier property: This is the gallery image definition identifier.

GalleryImageInner withLocation(String location)
GalleryImageInner withOsState(OperatingSystemStateTypes osState)

Set the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

GalleryImageInner withOsType(OperatingSystemTypes osType)

Set the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image.

GalleryImageInner withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: The privacy statement uri.

GalleryImageInner withPurchasePlan(ImagePurchasePlan purchasePlan)

Set the purchasePlan property: Describes the gallery image definition purchase plan.

GalleryImageInner withRecommended(RecommendedMachineConfiguration recommended)

Set the recommended property: The properties describe the recommended machine configuration for this Image Definition.

GalleryImageInner withReleaseNoteUri(String releaseNoteUri)

Set the releaseNoteUri property: The release note uri.

GalleryImageInner withTags(Map<String,String> tags)

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

GalleryImageInner

public GalleryImageInner()

Creates an instance of GalleryImageInner class.

Method Details

allowUpdateImage

public Boolean allowUpdateImage()

Get the allowUpdateImage property: Optional. Must be set to true if the gallery image features are being updated.

Returns:

the allowUpdateImage value.

architecture

public Architecture architecture()

Get the architecture property: CPU architecture supported by an OS disk.

Returns:

the architecture value.

description

public String description()

Get the description property: The description of this gallery image definition resource. This property is updatable.

Returns:

the description value.

disallowed

public Disallowed disallowed()

Get the disallowed property: Describes the disallowed disk types.

Returns:

the disallowed value.

endOfLifeDate

public OffsetDateTime endOfLifeDate()

Get the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

Returns:

the endOfLifeDate value.

eula

public String eula()

Get the eula property: The Eula agreement for the gallery image definition.

Returns:

the eula value.

features

public List features()

Get the features property: A list of gallery image features.

Returns:

the features value.

fromJson

public static GalleryImageInner fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

hyperVGeneration

public HyperVGeneration hyperVGeneration()

Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Returns:

the hyperVGeneration value.

id

public String id()

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

Overrides:

GalleryImageInner.id()

Returns:

the id value.

identifier

public GalleryImageIdentifier identifier()

Get the identifier property: This is the gallery image definition identifier.

Returns:

the identifier value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

GalleryImageInner.name()

Returns:

the name value.

osState

public OperatingSystemStateTypes osState()

Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

Returns:

the osState value.

osType

public OperatingSystemTypes osType()

Get the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**.

Returns:

the osType value.

privacyStatementUri

public String privacyStatementUri()

Get the privacyStatementUri property: The privacy statement uri.

Returns:

the privacyStatementUri value.

provisioningState

public GalleryProvisioningState provisioningState()

Get the provisioningState property: The provisioning state, which only appears in the response.

Returns:

the provisioningState value.

purchasePlan

public ImagePurchasePlan purchasePlan()

Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.

Returns:

the purchasePlan value.

recommended

public RecommendedMachineConfiguration recommended()

Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

Returns:

the recommended value.

releaseNoteUri

public String releaseNoteUri()

Get the releaseNoteUri property: The release note uri.

Returns:

the releaseNoteUri value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryImageInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

GalleryImageInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAllowUpdateImage

public GalleryImageInner withAllowUpdateImage(Boolean allowUpdateImage)

Set the allowUpdateImage property: Optional. Must be set to true if the gallery image features are being updated.

Parameters:

allowUpdateImage - the allowUpdateImage value to set.

Returns:

the GalleryImageInner object itself.

withArchitecture

public GalleryImageInner withArchitecture(Architecture architecture)

Set the architecture property: CPU architecture supported by an OS disk.

Parameters:

architecture - the architecture value to set.

Returns:

the GalleryImageInner object itself.

withDescription

public GalleryImageInner withDescription(String description)

Set the description property: The description of this gallery image definition resource. This property is updatable.

Parameters:

description - the description value to set.

Returns:

the GalleryImageInner object itself.

withDisallowed

public GalleryImageInner withDisallowed(Disallowed disallowed)

Set the disallowed property: Describes the disallowed disk types.

Parameters:

disallowed - the disallowed value to set.

Returns:

the GalleryImageInner object itself.

withEndOfLifeDate

public GalleryImageInner withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Set the endOfLifeDate property: The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.

Parameters:

endOfLifeDate - the endOfLifeDate value to set.

Returns:

the GalleryImageInner object itself.

withEula

public GalleryImageInner withEula(String eula)

Set the eula property: The Eula agreement for the gallery image definition.

Parameters:

eula - the eula value to set.

Returns:

the GalleryImageInner object itself.

withFeatures

public GalleryImageInner withFeatures(List features)

Set the features property: A list of gallery image features.

Parameters:

features - the features value to set.

Returns:

the GalleryImageInner object itself.

withHyperVGeneration

public GalleryImageInner withHyperVGeneration(HyperVGeneration hyperVGeneration)

Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.

Parameters:

hyperVGeneration - the hyperVGeneration value to set.

Returns:

the GalleryImageInner object itself.

withIdentifier

public GalleryImageInner withIdentifier(GalleryImageIdentifier identifier)

Set the identifier property: This is the gallery image definition identifier.

Parameters:

identifier - the identifier value to set.

Returns:

the GalleryImageInner object itself.

withLocation

public GalleryImageInner withLocation(String location)

Overrides:

GalleryImageInner.withLocation(String location)

Parameters:

location

withOsState

public GalleryImageInner withOsState(OperatingSystemStateTypes osState)

Set the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.

Parameters:

osState - the osState value to set.

Returns:

the GalleryImageInner object itself.

withOsType

public GalleryImageInner withOsType(OperatingSystemTypes osType)

Set the osType property: This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**.

Parameters:

osType - the osType value to set.

Returns:

the GalleryImageInner object itself.

withPrivacyStatementUri

public GalleryImageInner withPrivacyStatementUri(String privacyStatementUri)

Set the privacyStatementUri property: The privacy statement uri.

Parameters:

privacyStatementUri - the privacyStatementUri value to set.

Returns:

the GalleryImageInner object itself.

withPurchasePlan

public GalleryImageInner withPurchasePlan(ImagePurchasePlan purchasePlan)

Set the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.

Parameters:

purchasePlan - the purchasePlan value to set.

Returns:

the GalleryImageInner object itself.

withRecommended

public GalleryImageInner withRecommended(RecommendedMachineConfiguration recommended)

Set the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.

Parameters:

recommended - the recommended value to set.

Returns:

the GalleryImageInner object itself.

withReleaseNoteUri

public GalleryImageInner withReleaseNoteUri(String releaseNoteUri)

Set the releaseNoteUri property: The release note uri.

Parameters:

releaseNoteUri - the releaseNoteUri value to set.

Returns:

the GalleryImageInner object itself.

withTags

public GalleryImageInner withTags(Map tags)

Overrides:

GalleryImageInner.withTags(Map<String,String> tags)

Parameters:

tags

Applies to