GalleryArtifactPublishingProfileBase Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryArtifactPublishingProfileBase
- com.
Implements
public class GalleryArtifactPublishingProfileBase
implements JsonSerializable<GalleryArtifactPublishingProfileBase>
Describes the basic gallery artifact publishing profile.
Constructor Summary
Constructor | Description |
---|---|
GalleryArtifactPublishingProfileBase() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
Offset |
endOfLifeDate()
Get the end |
Boolean |
excludeFromLatest()
Get the exclude |
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
Offset |
publishedDate()
Get the published |
Integer |
replicaCount()
Get the replica |
Replication |
replicationMode()
Get the replication |
Storage |
storageAccountType()
Get the storage |
List<Gallery |
targetExtendedLocations()
Get the target |
List<Target |
targetRegions()
Get the target |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Gallery |
withEndOfLifeDate(OffsetDateTime endOfLifeDate)
Set the end |
Gallery |
withExcludeFromLatest(Boolean excludeFromLatest)
Set the exclude |
Gallery |
withReplicaCount(Integer replicaCount)
Set the replica |
Gallery |
withReplicationMode(ReplicationMode replicationMode)
Set the replication |
Gallery |
withStorageAccountType(StorageAccountType storageAccountType)
Set the storage |
Gallery |
withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)
Set the target |
Gallery |
withTargetRegions(List<TargetRegion> targetRegions)
Set the target |
Methods inherited from java.lang.Object
Constructor Details
GalleryArtifactPublishingProfileBase
public GalleryArtifactPublishingProfileBase()
Creates an instance of GalleryArtifactPublishingProfileBase class.
Method Details
endOfLifeDate
public OffsetDateTime 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:
excludeFromLatest
public Boolean 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:
fromJson
public static GalleryArtifactPublishingProfileBase fromJson(JsonReader jsonReader)
Reads an instance of GalleryArtifactPublishingProfileBase from the JsonReader.
Parameters:
Returns:
Throws:
publishedDate
public OffsetDateTime publishedDate()
Get the publishedDate property: The timestamp for when the gallery image version is published.
Returns:
replicaCount
public Integer 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:
replicationMode
public ReplicationMode replicationMode()
Get the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.
Returns:
storageAccountType
public StorageAccountType storageAccountType()
Get the storageAccountType property: Specifies the storage account type to be used to store the image. This property is not updatable.
Returns:
targetExtendedLocations
public List
Get the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.
Returns:
targetRegions
public List
Get the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEndOfLifeDate
public GalleryArtifactPublishingProfileBase 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.
Parameters:
Returns:
withExcludeFromLatest
public GalleryArtifactPublishingProfileBase 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.
Parameters:
Returns:
withReplicaCount
public GalleryArtifactPublishingProfileBase 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.
Parameters:
Returns:
withReplicationMode
public GalleryArtifactPublishingProfileBase withReplicationMode(ReplicationMode replicationMode)
Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.
Parameters:
Returns:
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:
Returns:
withTargetExtendedLocations
public GalleryArtifactPublishingProfileBase withTargetExtendedLocations(List
Set the targetExtendedLocations property: The target extended locations where the Image Version is going to be replicated to. This property is updatable.
Parameters:
Returns:
withTargetRegions
public GalleryArtifactPublishingProfileBase withTargetRegions(List
Set the targetRegions property: The target regions where the Image Version is going to be replicated to. This property is updatable.
Parameters:
Returns:
Applies to
Azure SDK for Java