Class GalleryApplicationVersionPublishingProfile
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
com.azure.resourcemanager.compute.models.GalleryApplicationVersionPublishingProfile
public final class GalleryApplicationVersionPublishingProfile
extends GalleryArtifactPublishingProfileBase
The publishing profile of a gallery image version.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the advancedSettings property: Optional.Get the enableHealthCheck property: Optional.Get the manageActions property: The manageActions property.settings()Get the settings property: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.source()Get the source property: The source image from which the Image Version is going to be created.voidvalidate()Validates the instance.withAdvancedSettings(Map<String, String> advancedSettings) Set the advancedSettings property: Optional.withEnableHealthCheck(Boolean enableHealthCheck) Set the enableHealthCheck property: Optional.withEndOfLifeDate(OffsetDateTime endOfLifeDate) Set the endOfLifeDate property: The end of life date of the gallery image version.withExcludeFromLatest(Boolean excludeFromLatest) Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.withManageActions(UserArtifactManage manageActions) Set the manageActions property: The manageActions property.withReplicaCount(Integer replicaCount) Set the replicaCount property: The number of replicas of the Image Version to be created per region.withReplicationMode(ReplicationMode replicationMode) Set the replicationMode property: Optional parameter which specifies the mode to be used for replication.withSettings(UserArtifactSettings settings) Set the settings property: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.withSource(UserArtifactSource source) Set the source property: The source image from which the Image Version is going to be created.withStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: Specifies the storage account type to be used to store the image.withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations) Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to.withTargetRegions(List<TargetRegion> targetRegions) Set the targetRegions property: The target regions where the Image Version is going to be replicated to.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
endOfLifeDate, excludeFromLatest, publishedDate, replicaCount, replicationMode, storageAccountType, targetExtendedLocations, targetRegions
-
Constructor Details
-
GalleryApplicationVersionPublishingProfile
public GalleryApplicationVersionPublishingProfile()
-
-
Method Details
-
source
Get the source property: The source image from which the Image Version is going to be created.- Returns:
- the source value.
-
withSource
Set the source property: The source image from which the Image Version is going to be created.- Parameters:
source- the source value to set.- Returns:
- the GalleryApplicationVersionPublishingProfile object itself.
-
manageActions
Get the manageActions property: The manageActions property.- Returns:
- the manageActions value.
-
withManageActions
public GalleryApplicationVersionPublishingProfile withManageActions(UserArtifactManage manageActions) Set the manageActions property: The manageActions property.- Parameters:
manageActions- the manageActions value to set.- Returns:
- the GalleryApplicationVersionPublishingProfile object itself.
-
settings
Get the settings property: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.- Returns:
- the settings value.
-
withSettings
Set the settings property: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.- Parameters:
settings- the settings value to set.- Returns:
- the GalleryApplicationVersionPublishingProfile object itself.
-
advancedSettings
Get the advancedSettings property: Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only.- Returns:
- the advancedSettings value.
-
withAdvancedSettings
public GalleryApplicationVersionPublishingProfile withAdvancedSettings(Map<String, String> advancedSettings) Set the advancedSettings property: Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only.- Parameters:
advancedSettings- the advancedSettings value to set.- Returns:
- the GalleryApplicationVersionPublishingProfile object itself.
-
enableHealthCheck
Get the enableHealthCheck property: Optional. Whether or not this application reports health.- Returns:
- the enableHealthCheck value.
-
withEnableHealthCheck
Set the enableHealthCheck property: Optional. Whether or not this application reports health.- Parameters:
enableHealthCheck- the enableHealthCheck value to set.- Returns:
- the GalleryApplicationVersionPublishingProfile object itself.
-
withTargetRegions
public GalleryApplicationVersionPublishingProfile withTargetRegions(List<TargetRegion> targetRegions) Set the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.- Overrides:
withTargetRegionsin classGalleryArtifactPublishingProfileBase- Parameters:
targetRegions- the targetRegions value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withReplicaCount
Set the replicaCount property: The number of replicas of the Image Version to be created per region. This property would take effect for a region when regionalReplicaCount is not specified. This property is updatable.- Overrides:
withReplicaCountin classGalleryArtifactPublishingProfileBase- Parameters:
replicaCount- the replicaCount value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withExcludeFromLatest
Set the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.- Overrides:
withExcludeFromLatestin classGalleryArtifactPublishingProfileBase- Parameters:
excludeFromLatest- the excludeFromLatest value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withEndOfLifeDate
Set the endOfLifeDate property: The end of life date of the gallery image version. This property can be used for decommissioning purposes. This property is updatable.- Overrides:
withEndOfLifeDatein classGalleryArtifactPublishingProfileBase- Parameters:
endOfLifeDate- the endOfLifeDate value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withStorageAccountType
public GalleryApplicationVersionPublishingProfile withStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.- Overrides:
withStorageAccountTypein classGalleryArtifactPublishingProfileBase- Parameters:
storageAccountType- the storageAccountType value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withReplicationMode
public GalleryApplicationVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode) Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.- Overrides:
withReplicationModein classGalleryArtifactPublishingProfileBase- Parameters:
replicationMode- the replicationMode value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withTargetExtendedLocations
public GalleryApplicationVersionPublishingProfile withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations) Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.- Overrides:
withTargetExtendedLocationsin classGalleryArtifactPublishingProfileBase- Parameters:
targetExtendedLocations- the targetExtendedLocations value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGalleryArtifactPublishingProfileBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-