GalleryImageVersionPublishingProfile Class

public final class GalleryImageVersionPublishingProfile
extends GalleryArtifactPublishingProfileBase

The publishing profile of a gallery image Version.

Constructor Summary

Constructor Description
GalleryImageVersionPublishingProfile()

Creates an instance of GalleryImageVersionPublishingProfile class.

Method Summary

Modifier and Type Method and Description
void validate()

Validates the instance.

GalleryImageVersionPublishingProfile withEndOfLifeDate(OffsetDateTime endOfLifeDate)

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

GalleryImageVersionPublishingProfile 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.

GalleryImageVersionPublishingProfile withReplicaCount(Integer replicaCount)

Set the replicaCount property: The number of replicas of the Image Version to be created per region.

GalleryImageVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode)

Set the replicationMode property: Optional parameter which specifies the mode to be used for replication.

GalleryImageVersionPublishingProfile withStorageAccountType(StorageAccountType storageAccountType)

Set the storageAccountType property: Specifies the storage account type to be used to store the image.

GalleryImageVersionPublishingProfile withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)

Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to.

GalleryImageVersionPublishingProfile withTargetRegions(List<TargetRegion> targetRegions)

Set the targetRegions property: The target regions where the Image Version is going to be replicated to.

Methods inherited from GalleryArtifactPublishingProfileBase

Methods inherited from java.lang.Object

Constructor Details

GalleryImageVersionPublishingProfile

public GalleryImageVersionPublishingProfile()

Creates an instance of GalleryImageVersionPublishingProfile class.

Method Details

validate

public void validate()

Validates the instance.

Overrides:

GalleryImageVersionPublishingProfile.validate()

withEndOfLifeDate

public GalleryImageVersionPublishingProfile withEndOfLifeDate(OffsetDateTime endOfLifeDate)

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:

GalleryImageVersionPublishingProfile.withEndOfLifeDate(OffsetDateTime endOfLifeDate)

Parameters:

endOfLifeDate

withExcludeFromLatest

public GalleryImageVersionPublishingProfile 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.

Overrides:

GalleryImageVersionPublishingProfile.withExcludeFromLatest(Boolean excludeFromLatest)

Parameters:

excludeFromLatest

withReplicaCount

public GalleryImageVersionPublishingProfile withReplicaCount(Integer replicaCount)

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:

GalleryImageVersionPublishingProfile.withReplicaCount(Integer replicaCount)

Parameters:

replicaCount

withReplicationMode

public GalleryImageVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode)

Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.

Overrides:

GalleryImageVersionPublishingProfile.withReplicationMode(ReplicationMode replicationMode)

Parameters:

replicationMode

withStorageAccountType

public GalleryImageVersionPublishingProfile 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:

GalleryImageVersionPublishingProfile.withStorageAccountType(StorageAccountType storageAccountType)

Parameters:

storageAccountType

withTargetExtendedLocations

public GalleryImageVersionPublishingProfile withTargetExtendedLocations(List targetExtendedLocations)

Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.

Overrides:

GalleryImageVersionPublishingProfile.withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)

Parameters:

targetExtendedLocations

withTargetRegions

public GalleryImageVersionPublishingProfile withTargetRegions(List targetRegions)

Set the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.

Overrides:

GalleryImageVersionPublishingProfile.withTargetRegions(List<TargetRegion> targetRegions)

Parameters:

targetRegions

Applies to