Class CommunityGalleryImageInner
java.lang.Object
com.azure.resourcemanager.compute.models.PirCommunityGalleryResource
com.azure.resourcemanager.compute.fluent.models.CommunityGalleryImageInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<PirCommunityGalleryResource>
Specifies information about the gallery image definition that you want to create or update.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of CommunityGalleryImageInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the architecture property: CPU architecture supported by an OS disk.Get the artifactTags property: The artifact tags of a community gallery resource.Get the disallowed property: Describes the disallowed disk types.Get the disclaimer property: The disclaimer for a community gallery resource.Get the endOfLifeDate property: The end of life date of the gallery image definition.eula()Get the eula property: The end-user license agreement for the current community gallery image.features()Get the features property: A list of gallery image features.static CommunityGalleryImageInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CommunityGalleryImageInner from the JsonReader.Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine.Get the identifier property: This is the community gallery image definition identifier.location()Get the location property: Resource location.name()Get the name property: Resource name.osState()Get the osState property: This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.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.Get the privacyStatementUri property: Privacy statement URI for the current community gallery image.Get the purchasePlan property: Describes the gallery image definition purchase plan.Get the recommended property: The properties describe the recommended machine configuration for this Image Definition.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type.uniqueId()Get the uniqueId property: The unique id of this community gallery.voidvalidate()Validates the instance.withArchitecture(Architecture architecture) Set the architecture property: CPU architecture supported by an OS disk.withArtifactTags(Map<String, String> artifactTags) Set the artifactTags property: The artifact tags of a community gallery resource.withDisallowed(Disallowed disallowed) Set the disallowed property: Describes the disallowed disk types.withDisclaimer(String disclaimer) Set the disclaimer property: The disclaimer for a community gallery resource.withEndOfLifeDate(OffsetDateTime endOfLifeDate) Set the endOfLifeDate property: The end of life date of the gallery image definition.Set the eula property: The end-user license agreement for the current community gallery image.withFeatures(List<GalleryImageFeature> features) Set the features property: A list of gallery image features.withHyperVGeneration(HyperVGeneration hyperVGeneration) Set the hyperVGeneration property: The hypervisor generation of the Virtual Machine.withIdentifier(CommunityGalleryImageIdentifier identifier) Set the identifier property: This is the community gallery image definition identifier.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'.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.withPrivacyStatementUri(String privacyStatementUri) Set the privacyStatementUri property: Privacy statement URI for the current community gallery image.withPurchasePlan(ImagePurchasePlan purchasePlan) Set the purchasePlan property: Describes the gallery image definition purchase plan.withRecommended(RecommendedMachineConfiguration recommended) Set the recommended property: The properties describe the recommended machine configuration for this Image Definition.withUniqueId(String uniqueId) Set the uniqueId property: The unique id of this community gallery.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CommunityGalleryImageInner
public CommunityGalleryImageInner()Creates an instance of CommunityGalleryImageInner class.
-
-
Method Details
-
type
Get the type property: Resource type.- Overrides:
typein classPirCommunityGalleryResource- Returns:
- the type value.
-
location
Get the location property: Resource location.- Overrides:
locationin classPirCommunityGalleryResource- Returns:
- the location value.
-
name
Get the name property: Resource name.- Overrides:
namein classPirCommunityGalleryResource- Returns:
- the name value.
-
uniqueId
Get the uniqueId property: The unique id of this community gallery.- Overrides:
uniqueIdin classPirCommunityGalleryResource- Returns:
- the uniqueId value.
-
withUniqueId
Set the uniqueId property: The unique id of this community gallery.- Overrides:
withUniqueIdin classPirCommunityGalleryResource- Parameters:
uniqueId- the uniqueId value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
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.
-
withOsType
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 CommunityGalleryImageInner object itself.
-
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.
-
withOsState
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 CommunityGalleryImageInner object itself.
-
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.
-
withEndOfLifeDate
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 CommunityGalleryImageInner object itself.
-
identifier
Get the identifier property: This is the community gallery image definition identifier.- Returns:
- the identifier value.
-
withIdentifier
Set the identifier property: This is the community gallery image definition identifier.- Parameters:
identifier- the identifier value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
recommended
Get the recommended property: The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.- Returns:
- the recommended value.
-
withRecommended
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 CommunityGalleryImageInner object itself.
-
disallowed
Get the disallowed property: Describes the disallowed disk types.- Returns:
- the disallowed value.
-
withDisallowed
Set the disallowed property: Describes the disallowed disk types.- Parameters:
disallowed- the disallowed value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
hyperVGeneration
Get the hyperVGeneration property: The hypervisor generation of the Virtual Machine. Applicable to OS disks only.- Returns:
- the hyperVGeneration value.
-
withHyperVGeneration
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 CommunityGalleryImageInner object itself.
-
features
Get the features property: A list of gallery image features.- Returns:
- the features value.
-
withFeatures
Set the features property: A list of gallery image features.- Parameters:
features- the features value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
purchasePlan
Get the purchasePlan property: Describes the gallery image definition purchase plan. This is used by marketplace images.- Returns:
- the purchasePlan value.
-
withPurchasePlan
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 CommunityGalleryImageInner object itself.
-
architecture
Get the architecture property: CPU architecture supported by an OS disk.- Returns:
- the architecture value.
-
withArchitecture
Set the architecture property: CPU architecture supported by an OS disk.- Parameters:
architecture- the architecture value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
privacyStatementUri
Get the privacyStatementUri property: Privacy statement URI for the current community gallery image.- Returns:
- the privacyStatementUri value.
-
withPrivacyStatementUri
Set the privacyStatementUri property: Privacy statement URI for the current community gallery image.- Parameters:
privacyStatementUri- the privacyStatementUri value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
eula
Get the eula property: The end-user license agreement for the current community gallery image.- Returns:
- the eula value.
-
withEula
Set the eula property: The end-user license agreement for the current community gallery image.- Parameters:
eula- the eula value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
disclaimer
Get the disclaimer property: The disclaimer for a community gallery resource.- Returns:
- the disclaimer value.
-
withDisclaimer
Set the disclaimer property: The disclaimer for a community gallery resource.- Parameters:
disclaimer- the disclaimer value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
artifactTags
Get the artifactTags property: The artifact tags of a community gallery resource.- Returns:
- the artifactTags value.
-
withArtifactTags
Set the artifactTags property: The artifact tags of a community gallery resource.- Parameters:
artifactTags- the artifactTags value to set.- Returns:
- the CommunityGalleryImageInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classPirCommunityGalleryResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<PirCommunityGalleryResource>- Overrides:
toJsonin classPirCommunityGalleryResource- Throws:
IOException
-
fromJson
public static CommunityGalleryImageInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of CommunityGalleryImageInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of CommunityGalleryImageInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the CommunityGalleryImageInner.
-