GalleryImageInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. compute. fluent. models. GalleryImageInner
- com.
- com.
- com.
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 Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
allowUpdateImage()
Get the allow |
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. |
Offset |
endOfLifeDate()
Get the end |
String |
eula()
Get the eula property: The Eula agreement for the gallery image definition. |
List<Gallery |
features()
Get the features property: A list of gallery image features. |
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
Hyper |
hyperVGeneration()
Get the hyper |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
Gallery |
identifier()
Get the identifier property: This is the gallery image definition identifier. |
String |
name()
Get the name property: The name of the resource. |
Operating |
osState()
Get the os |
Operating |
osType()
Get the os |
String |
privacyStatementUri()
Get the privacy |
Gallery |
provisioningState()
Get the provisioning |
Image |
purchasePlan()
Get the purchase |
Recommended |
recommended()
Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. |
String |
releaseNoteUri()
Get the release |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Gallery |
withAllowUpdateImage(Boolean allowUpdateImage)
Set the allow |
Gallery |
withArchitecture(Architecture architecture)
Set the architecture property: CPU architecture supported by an OS disk. |
Gallery |
withDescription(String description)
Set the description property: The description of this gallery image definition resource. |
Gallery |
withDisallowed(Disallowed disallowed)
Set the disallowed property: Describes the disallowed disk types. |
Gallery |
withEndOfLifeDate(OffsetDateTime endOfLifeDate)
Set the end |
Gallery |
withEula(String eula)
Set the eula property: The Eula agreement for the gallery image definition. |
Gallery |
withFeatures(List<GalleryImageFeature> features)
Set the features property: A list of gallery image features. |
Gallery |
withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyper |
Gallery |
withIdentifier(GalleryImageIdentifier identifier)
Set the identifier property: This is the gallery image definition identifier. |
Gallery |
withLocation(String location) |
Gallery |
withOsState(OperatingSystemStateTypes osState)
Set the os |
Gallery |
withOsType(OperatingSystemTypes osType)
Set the os |
Gallery |
withPrivacyStatementUri(String privacyStatementUri)
Set the privacy |
Gallery |
withPurchasePlan(ImagePurchasePlan purchasePlan)
Set the purchase |
Gallery |
withRecommended(RecommendedMachineConfiguration recommended)
Set the recommended property: The properties describe the recommended machine configuration for this Image Definition. |
Gallery |
withReleaseNoteUri(String releaseNoteUri)
Set the release |
Gallery |
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:
architecture
public Architecture architecture()
Get the architecture property: CPU architecture supported by an OS disk.
Returns:
description
public String description()
Get the description property: The description of this gallery image definition resource. This property is updatable.
Returns:
disallowed
public Disallowed disallowed()
Get the disallowed property: Describes the disallowed disk types.
Returns:
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:
eula
public String eula()
Get the eula property: The Eula agreement for the gallery image definition.
Returns:
features
public List
Get the features property: A list of gallery image features.
Returns:
fromJson
public static GalleryImageInner fromJson(JsonReader jsonReader)
Reads an instance of GalleryImageInner from the JsonReader.
Parameters:
Returns:
Throws:
hyperVGeneration
public HyperVGeneration hyperVGeneration()
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
Returns:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
GalleryImageInner.id()Returns:
identifier
public GalleryImageIdentifier identifier()
Get the identifier property: This is the gallery image definition identifier.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
GalleryImageInner.name()Returns:
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:
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:
privacyStatementUri
public String privacyStatementUri()
Get the privacyStatementUri property: The privacy statement uri.
Returns:
provisioningState
public GalleryProvisioningState provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.
Returns:
purchasePlan
public ImagePurchasePlan purchasePlan()
Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.
Returns:
recommended
public RecommendedMachineConfiguration recommended()
Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
Returns:
releaseNoteUri
public String releaseNoteUri()
Get the releaseNoteUri property: The release note uri.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryImageInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
GalleryImageInner.type()Returns:
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:
Returns:
withArchitecture
public GalleryImageInner withArchitecture(Architecture architecture)
Set the architecture property: CPU architecture supported by an OS disk.
Parameters:
Returns:
withDescription
public GalleryImageInner withDescription(String description)
Set the description property: The description of this gallery image definition resource. This property is updatable.
Parameters:
Returns:
withDisallowed
public GalleryImageInner withDisallowed(Disallowed disallowed)
Set the disallowed property: Describes the disallowed disk types.
Parameters:
Returns:
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:
Returns:
withEula
public GalleryImageInner withEula(String eula)
Set the eula property: The Eula agreement for the gallery image definition.
Parameters:
Returns:
withFeatures
public GalleryImageInner withFeatures(List
Set the features property: A list of gallery image features.
Parameters:
Returns:
withHyperVGeneration
public GalleryImageInner withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
Parameters:
Returns:
withIdentifier
public GalleryImageInner withIdentifier(GalleryImageIdentifier identifier)
Set the identifier property: This is the gallery image definition identifier.
Parameters:
Returns:
withLocation
public GalleryImageInner withLocation(String location)
Overrides:
GalleryImageInner.withLocation(String location)Parameters:
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:
Returns:
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:
Returns:
withPrivacyStatementUri
public GalleryImageInner withPrivacyStatementUri(String privacyStatementUri)
Set the privacyStatementUri property: The privacy statement uri.
Parameters:
Returns:
withPurchasePlan
public GalleryImageInner withPurchasePlan(ImagePurchasePlan purchasePlan)
Set the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.
Parameters:
Returns:
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:
Returns:
withReleaseNoteUri
public GalleryImageInner withReleaseNoteUri(String releaseNoteUri)
Set the releaseNoteUri property: The release note uri.
Parameters:
Returns:
withTags
public GalleryImageInner withTags(Map
Overrides:
GalleryImageInner.withTags(Map<String,String> tags)Parameters:
Applies to
Azure SDK for Java