Class GalleryArtifactPublishingProfileBase
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
- Direct Known Subclasses:
GalleryApplicationVersionPublishingProfile,GalleryImageVersionPublishingProfile
Describes the basic gallery artifact publishing profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the endOfLifeDate property: The end of life date of the gallery image version.Get the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.Get the publishedDate property: The timestamp for when the gallery image version is published.Get the replicaCount property: The number of replicas of the Image Version to be created per region.Get the replicationMode property: Optional parameter which specifies the mode to be used for replication.Get the storageAccountType property: Specifies the storage account type to be used to store the image.Get the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to.Get the targetRegions property: The target regions where the Image Version is going to be replicated to.voidvalidate()Validates the instance.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.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.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.
-
Constructor Details
-
GalleryArtifactPublishingProfileBase
public GalleryArtifactPublishingProfileBase()
-
-
Method Details
-
targetRegions
Get the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.- Returns:
- the targetRegions value.
-
withTargetRegions
Set the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.- Parameters:
targetRegions- the targetRegions value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
replicaCount
Get 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.- Returns:
- the replicaCount value.
-
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.- Parameters:
replicaCount- the replicaCount value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
excludeFromLatest
Get the excludeFromLatest property: If set to true, Virtual Machines deployed from the latest version of the Image Definition won't use this Image Version.- Returns:
- the excludeFromLatest value.
-
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.- Parameters:
excludeFromLatest- the excludeFromLatest value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
publishedDate
Get the publishedDate property: The timestamp for when the gallery image version is published.- Returns:
- the publishedDate value.
-
endOfLifeDate
Get 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.- Returns:
- the endOfLifeDate value.
-
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.- Parameters:
endOfLifeDate- the endOfLifeDate value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
storageAccountType
Get the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.- Returns:
- the storageAccountType value.
-
withStorageAccountType
public GalleryArtifactPublishingProfileBase withStorageAccountType(StorageAccountType storageAccountType) Set the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.- Parameters:
storageAccountType- the storageAccountType value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
replicationMode
Get the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.- Returns:
- the replicationMode value.
-
withReplicationMode
Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.- Parameters:
replicationMode- the replicationMode value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
targetExtendedLocations
Get the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.- Returns:
- the targetExtendedLocations value.
-
withTargetExtendedLocations
public GalleryArtifactPublishingProfileBase 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.- Parameters:
targetExtendedLocations- the targetExtendedLocations value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-