CommunityGalleryImageProperties Class
- java.
lang. Object - com.
azure. resourcemanager. compute. fluent. models. CommunityGalleryImageProperties
- com.
Implements
public final class CommunityGalleryImageProperties
implements JsonSerializable<CommunityGalleryImageProperties>
Describes the properties of a gallery image definition.
Constructor Summary
| Constructor | Description |
|---|---|
| CommunityGalleryImageProperties() |
Creates an instance of Community |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Architecture |
architecture()
Get the architecture property: The architecture of the image. |
| Map<String,String> |
artifactTags()
Get the artifact |
| Disallowed |
disallowed()
Get the disallowed property: Describes the disallowed disk types. |
| String |
disclaimer()
Get the disclaimer property: The disclaimer for a community gallery resource. |
|
Offset |
endOfLifeDate()
Get the end |
| String |
eula()
Get the eula property: The end-user license agreement for the current community gallery image. |
|
List<Gallery |
features()
Get the features property: A list of gallery image features. |
|
static
Community |
fromJson(JsonReader jsonReader)
Reads an instance of Community |
|
Hyper |
hyperVGeneration()
Get the hyper |
|
Community |
identifier()
Get the identifier property: This is the community gallery image definition identifier. |
|
Operating |
osState()
Get the os |
|
Operating |
osType()
Get the os |
| String |
privacyStatementUri()
Get the privacy |
|
Image |
purchasePlan()
Get the purchase |
|
Recommended |
recommended()
Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Community |
withArchitecture(Architecture architecture)
Set the architecture property: The architecture of the image. |
|
Community |
withArtifactTags(Map<String,String> artifactTags)
Set the artifact |
|
Community |
withDisallowed(Disallowed disallowed)
Set the disallowed property: Describes the disallowed disk types. |
|
Community |
withDisclaimer(String disclaimer)
Set the disclaimer property: The disclaimer for a community gallery resource. |
|
Community |
withEndOfLifeDate(OffsetDateTime endOfLifeDate)
Set the end |
|
Community |
withEula(String eula)
Set the eula property: The end-user license agreement for the current community gallery image. |
|
Community |
withFeatures(List<GalleryImageFeature> features)
Set the features property: A list of gallery image features. |
|
Community |
withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyper |
|
Community |
withIdentifier(CommunityGalleryImageIdentifier identifier)
Set the identifier property: This is the community gallery image definition identifier. |
|
Community |
withOsState(OperatingSystemStateTypes osState)
Set the os |
|
Community |
withOsType(OperatingSystemTypes osType)
Set the os |
|
Community |
withPrivacyStatementUri(String privacyStatementUri)
Set the privacy |
|
Community |
withPurchasePlan(ImagePurchasePlan purchasePlan)
Set the purchase |
|
Community |
withRecommended(RecommendedMachineConfiguration recommended)
Set the recommended property: The properties describe the recommended machine configuration for this Image Definition. |
Methods inherited from java.lang.Object
Constructor Details
CommunityGalleryImageProperties
public CommunityGalleryImageProperties()
Creates an instance of CommunityGalleryImageProperties class.
Method Details
architecture
public Architecture architecture()
Get the architecture property: The architecture of the image. Applicable to OS disks only.
Returns:
artifactTags
public Map<String,String> artifactTags()
Get the artifactTags property: The artifact tags of a community gallery resource.
Returns:
disallowed
public Disallowed disallowed()
Get the disallowed property: Describes the disallowed disk types.
Returns:
disclaimer
public String disclaimer()
Get the disclaimer property: The disclaimer for a community gallery resource.
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 end-user license agreement for the current community gallery image.
Returns:
features
public List<GalleryImageFeature> features()
Get the features property: A list of gallery image features.
Returns:
fromJson
public static CommunityGalleryImageProperties fromJson(JsonReader jsonReader)
Reads an instance of CommunityGalleryImageProperties 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:
identifier
public CommunityGalleryImageIdentifier identifier()
Get the identifier property: This is the community gallery image definition identifier.
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: Privacy statement URI for the current community gallery image.
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:
toJson
validate
public void validate()
Validates the instance.
withArchitecture
public CommunityGalleryImageProperties withArchitecture(Architecture architecture)
Set the architecture property: The architecture of the image. Applicable to OS disks only.
Parameters:
Returns:
withArtifactTags
public CommunityGalleryImageProperties withArtifactTags(Map<String,String> artifactTags)
Set the artifactTags property: The artifact tags of a community gallery resource.
Parameters:
Returns:
withDisallowed
public CommunityGalleryImageProperties withDisallowed(Disallowed disallowed)
Set the disallowed property: Describes the disallowed disk types.
Parameters:
Returns:
withDisclaimer
public CommunityGalleryImageProperties withDisclaimer(String disclaimer)
Set the disclaimer property: The disclaimer for a community gallery resource.
Parameters:
Returns:
withEndOfLifeDate
public CommunityGalleryImageProperties 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 CommunityGalleryImageProperties withEula(String eula)
Set the eula property: The end-user license agreement for the current community gallery image.
Parameters:
Returns:
withFeatures
public CommunityGalleryImageProperties withFeatures(List<GalleryImageFeature> features)
Set the features property: A list of gallery image features.
Parameters:
Returns:
withHyperVGeneration
public CommunityGalleryImageProperties withHyperVGeneration(HyperVGeneration hyperVGeneration)
Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
Parameters:
Returns:
withIdentifier
public CommunityGalleryImageProperties withIdentifier(CommunityGalleryImageIdentifier identifier)
Set the identifier property: This is the community gallery image definition identifier.
Parameters:
Returns:
withOsState
public CommunityGalleryImageProperties 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 CommunityGalleryImageProperties 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 CommunityGalleryImageProperties withPrivacyStatementUri(String privacyStatementUri)
Set the privacyStatementUri property: Privacy statement URI for the current community gallery image.
Parameters:
Returns:
withPurchasePlan
public CommunityGalleryImageProperties withPurchasePlan(ImagePurchasePlan purchasePlan)
Set the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.
Parameters:
Returns:
withRecommended
public CommunityGalleryImageProperties withRecommended(RecommendedMachineConfiguration recommended)
Set the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
Parameters:
Returns: