Class GalleryImageVersionPublishingProfile
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
com.azure.resourcemanager.compute.models.GalleryImageVersionPublishingProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryArtifactPublishingProfileBase>
public final class GalleryImageVersionPublishingProfile
extends GalleryArtifactPublishingProfileBase
The publishing profile of a gallery image Version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryImageVersionPublishingProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryImageVersionPublishingProfile from the JsonReader.Get the publishedDate property: The timestamp for when the gallery image version is published.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
endOfLifeDate, excludeFromLatest, replicaCount, replicationMode, storageAccountType, targetExtendedLocations, targetRegionsMethods 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
-
GalleryImageVersionPublishingProfile
public GalleryImageVersionPublishingProfile()Creates an instance of GalleryImageVersionPublishingProfile class.
-
-
Method Details
-
publishedDate
Get the publishedDate property: The timestamp for when the gallery image version is published.- Overrides:
publishedDatein classGalleryArtifactPublishingProfileBase- Returns:
- the publishedDate value.
-
withTargetRegions
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 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:
withStorageAccountTypein classGalleryArtifactPublishingProfileBase- Parameters:
storageAccountType- the storageAccountType value to set.- Returns:
- the GalleryArtifactPublishingProfileBase object itself.
-
withReplicationMode
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 GalleryImageVersionPublishingProfile 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryArtifactPublishingProfileBase>- Overrides:
toJsonin classGalleryArtifactPublishingProfileBase- Throws:
IOException
-
fromJson
public static GalleryImageVersionPublishingProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryImageVersionPublishingProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryImageVersionPublishingProfile 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 GalleryImageVersionPublishingProfile.
-