Class GalleryArtifactPublishingProfileBase

java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryArtifactPublishingProfileBase>
Direct Known Subclasses:
GalleryApplicationVersionPublishingProfile, GalleryImageVersionPublishingProfile, GalleryScriptVersionPublishingProfile

public class GalleryArtifactPublishingProfileBase extends Object implements com.azure.json.JsonSerializable<GalleryArtifactPublishingProfileBase>
Describes the basic gallery artifact publishing profile.
  • Constructor Details

    • GalleryArtifactPublishingProfileBase

      public GalleryArtifactPublishingProfileBase()
      Creates an instance of GalleryArtifactPublishingProfileBase class.
  • Method Details

    • targetRegions

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

      public GalleryArtifactPublishingProfileBase withTargetRegions(List<TargetRegion> 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • publishedDate

      public OffsetDateTime publishedDate()
      Get the publishedDate property: The timestamp for when the gallery image version is published.
      Returns:
      the publishedDate value.
    • 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.
    • 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.
    • storageAccountType

      public StorageAccountType storageAccountType()
      Get the storageAccountType property: Specifies the storage account type to be used to store the image. Cannot be specified along with storageAccountStrategy. 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. Cannot be specified along with storageAccountStrategy. This property is not updatable.
      Parameters:
      storageAccountType - the storageAccountType value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • 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.
    • 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.
    • targetExtendedLocations

      public List<GalleryTargetExtendedLocation> 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.
    • storageAccountStrategy

      public StorageAccountStrategy storageAccountStrategy()
      Get the storageAccountStrategy property: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable.
      Returns:
      the storageAccountStrategy value.
    • withStorageAccountStrategy

      public GalleryArtifactPublishingProfileBase withStorageAccountStrategy(StorageAccountStrategy storageAccountStrategy)
      Set the storageAccountStrategy property: Specifies the strategy to be used when selecting the storage account type. Cannot be specified along with storageAccountType, but can be overridden per region by specifying targetRegions[].storageAccountType. This property is not updatable.
      Parameters:
      storageAccountStrategy - the storageAccountStrategy value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<GalleryArtifactPublishingProfileBase>
      Throws:
      IOException
    • fromJson

      public static GalleryArtifactPublishingProfileBase fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.