GalleryArtifactPublishingProfileBase Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase

Implements

public class GalleryArtifactPublishingProfileBase
implements JsonSerializable<GalleryArtifactPublishingProfileBase>

Describes the basic gallery artifact publishing profile.

Constructor Summary

Constructor Description
GalleryArtifactPublishingProfileBase()

Creates an instance of GalleryArtifactPublishingProfileBase class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime endOfLifeDate()

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

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.

static GalleryArtifactPublishingProfileBase fromJson(JsonReader jsonReader)

Reads an instance of GalleryArtifactPublishingProfileBase from the JsonReader.

OffsetDateTime publishedDate()

Get the publishedDate property: The timestamp for when the gallery image version is published.

Integer replicaCount()

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

ReplicationMode replicationMode()

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

StorageAccountType storageAccountType()

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

List<GalleryTargetExtendedLocation> targetExtendedLocations()

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

List<TargetRegion> targetRegions()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryArtifactPublishingProfileBase withEndOfLifeDate(OffsetDateTime endOfLifeDate)

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

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.

GalleryArtifactPublishingProfileBase withReplicaCount(Integer replicaCount)

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

GalleryArtifactPublishingProfileBase withReplicationMode(ReplicationMode replicationMode)

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

GalleryArtifactPublishingProfileBase withStorageAccountType(StorageAccountType storageAccountType)

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

GalleryArtifactPublishingProfileBase withTargetExtendedLocations(List<GalleryTargetExtendedLocation> targetExtendedLocations)

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

GalleryArtifactPublishingProfileBase withTargetRegions(List<TargetRegion> targetRegions)

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

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:

the endOfLifeDate value.

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:

the excludeFromLatest value.

fromJson

public static GalleryArtifactPublishingProfileBase fromJson(JsonReader jsonReader)

Reads an instance of GalleryArtifactPublishingProfileBase from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryArtifactPublishingProfileBase 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 GalleryArtifactPublishingProfileBase.

publishedDate

public OffsetDateTime publishedDate()

Get the publishedDate property: The timestamp for when the gallery image version is published.

Returns:

the publishedDate value.

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:

the replicaCount value.

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:

the replicationMode value.

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:

the storageAccountType value.

targetExtendedLocations

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

targetRegions

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

endOfLifeDate - the endOfLifeDate value to set.

Returns:

the GalleryArtifactPublishingProfileBase object itself.

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:

excludeFromLatest - the excludeFromLatest value to set.

Returns:

the GalleryArtifactPublishingProfileBase object itself.

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:

replicaCount - the replicaCount value to set.

Returns:

the GalleryArtifactPublishingProfileBase object itself.

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:

replicationMode - the replicationMode value to set.

Returns:

the GalleryArtifactPublishingProfileBase object itself.

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.

withTargetExtendedLocations

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

Parameters:

targetExtendedLocations - the targetExtendedLocations value to set.

Returns:

the GalleryArtifactPublishingProfileBase object itself.

withTargetRegions

public GalleryArtifactPublishingProfileBase withTargetRegions(List targetRegions)

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.

Applies to