Class GalleryApplicationVersionPublishingProfile

java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactPublishingProfileBase
com.azure.resourcemanager.compute.models.GalleryApplicationVersionPublishingProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryArtifactPublishingProfileBase>

public final class GalleryApplicationVersionPublishingProfile extends GalleryArtifactPublishingProfileBase
The publishing profile of a gallery image version.
  • Constructor Details

    • GalleryApplicationVersionPublishingProfile

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

    • source

      public UserArtifactSource source()
      Get the source property: The source image from which the Image Version is going to be created.
      Returns:
      the source value.
    • withSource

      Set the source property: The source image from which the Image Version is going to be created.
      Parameters:
      source - the source value to set.
      Returns:
      the GalleryApplicationVersionPublishingProfile object itself.
    • manageActions

      public UserArtifactManage manageActions()
      Get the manageActions property: The manageActions property.
      Returns:
      the manageActions value.
    • withManageActions

      public GalleryApplicationVersionPublishingProfile withManageActions(UserArtifactManage manageActions)
      Set the manageActions property: The manageActions property.
      Parameters:
      manageActions - the manageActions value to set.
      Returns:
      the GalleryApplicationVersionPublishingProfile object itself.
    • settings

      public UserArtifactSettings settings()
      Get the settings property: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.
      Returns:
      the settings value.
    • withSettings

      Set the settings property: Additional settings for the VM app that contains the target package and config file name when it is deployed to target VM or VM scale set.
      Parameters:
      settings - the settings value to set.
      Returns:
      the GalleryApplicationVersionPublishingProfile object itself.
    • advancedSettings

      public Map<String,String> advancedSettings()
      Get the advancedSettings property: Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only.
      Returns:
      the advancedSettings value.
    • withAdvancedSettings

      public GalleryApplicationVersionPublishingProfile withAdvancedSettings(Map<String,String> advancedSettings)
      Set the advancedSettings property: Optional. Additional settings to pass to the vm-application-manager extension. For advanced use only.
      Parameters:
      advancedSettings - the advancedSettings value to set.
      Returns:
      the GalleryApplicationVersionPublishingProfile object itself.
    • enableHealthCheck

      public Boolean enableHealthCheck()
      Get the enableHealthCheck property: Optional. Whether or not this application reports health.
      Returns:
      the enableHealthCheck value.
    • withEnableHealthCheck

      public GalleryApplicationVersionPublishingProfile withEnableHealthCheck(Boolean enableHealthCheck)
      Set the enableHealthCheck property: Optional. Whether or not this application reports health.
      Parameters:
      enableHealthCheck - the enableHealthCheck value to set.
      Returns:
      the GalleryApplicationVersionPublishingProfile object itself.
    • customActions

      public List<GalleryApplicationCustomAction> customActions()
      Get the customActions property: A list of custom actions that can be performed with this Gallery Application Version.
      Returns:
      the customActions value.
    • withCustomActions

      Set the customActions property: A list of custom actions that can be performed with this Gallery Application Version.
      Parameters:
      customActions - the customActions value to set.
      Returns:
      the GalleryApplicationVersionPublishingProfile object itself.
    • publishedDate

      public OffsetDateTime publishedDate()
      Get the publishedDate property: The timestamp for when the gallery image version is published.
      Overrides:
      publishedDate in class GalleryArtifactPublishingProfileBase
      Returns:
      the publishedDate value.
    • withTargetRegions

      public GalleryApplicationVersionPublishingProfile 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.
      Overrides:
      withTargetRegions in class GalleryArtifactPublishingProfileBase
      Parameters:
      targetRegions - the targetRegions value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withReplicaCount

      public GalleryApplicationVersionPublishingProfile 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.
      Overrides:
      withReplicaCount in class GalleryArtifactPublishingProfileBase
      Parameters:
      replicaCount - the replicaCount value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withExcludeFromLatest

      public GalleryApplicationVersionPublishingProfile 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.
      Overrides:
      withExcludeFromLatest in class GalleryArtifactPublishingProfileBase
      Parameters:
      excludeFromLatest - the excludeFromLatest value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withEndOfLifeDate

      public GalleryApplicationVersionPublishingProfile 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.
      Overrides:
      withEndOfLifeDate in class GalleryArtifactPublishingProfileBase
      Parameters:
      endOfLifeDate - the endOfLifeDate value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withStorageAccountType

      public GalleryApplicationVersionPublishingProfile 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.
      Overrides:
      withStorageAccountType in class GalleryArtifactPublishingProfileBase
      Parameters:
      storageAccountType - the storageAccountType value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withReplicationMode

      public GalleryApplicationVersionPublishingProfile withReplicationMode(ReplicationMode replicationMode)
      Set the replicationMode property: Optional parameter which specifies the mode to be used for replication. This property is not updatable.
      Overrides:
      withReplicationMode in class GalleryArtifactPublishingProfileBase
      Parameters:
      replicationMode - the replicationMode value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withTargetExtendedLocations

      public GalleryApplicationVersionPublishingProfile 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:
      withTargetExtendedLocations in class GalleryArtifactPublishingProfileBase
      Parameters:
      targetExtendedLocations - the targetExtendedLocations value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • withStorageAccountStrategy

      public GalleryApplicationVersionPublishingProfile 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.
      Overrides:
      withStorageAccountStrategy in class GalleryArtifactPublishingProfileBase
      Parameters:
      storageAccountStrategy - the storageAccountStrategy value to set.
      Returns:
      the GalleryArtifactPublishingProfileBase object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class GalleryArtifactPublishingProfileBase
      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>
      Overrides:
      toJson in class GalleryArtifactPublishingProfileBase
      Throws:
      IOException
    • fromJson

      public static GalleryApplicationVersionPublishingProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GalleryApplicationVersionPublishingProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GalleryApplicationVersionPublishingProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the GalleryApplicationVersionPublishingProfile.