Class GalleryApplicationVersionUpdate

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.compute.models.UpdateResourceDefinition
com.azure.resourcemanager.compute.models.GalleryApplicationVersionUpdate
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class GalleryApplicationVersionUpdate extends UpdateResourceDefinition
Specifies information about the gallery Application Version that you want to update.
  • Constructor Details

    • GalleryApplicationVersionUpdate

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

    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class UpdateResourceDefinition
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class UpdateResourceDefinition
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class UpdateResourceDefinition
      Returns:
      the id value.
    • withTags

      Set the tags property: Resource tags.
      Overrides:
      withTags in class UpdateResourceDefinition
      Parameters:
      tags - the tags value to set.
      Returns:
      the UpdateResourceDefinition object itself.
    • publishingProfile

      public GalleryApplicationVersionPublishingProfile publishingProfile()
      Get the publishingProfile property: The publishing profile of a gallery image version.
      Returns:
      the publishingProfile value.
    • withPublishingProfile

      public GalleryApplicationVersionUpdate withPublishingProfile(GalleryApplicationVersionPublishingProfile publishingProfile)
      Set the publishingProfile property: The publishing profile of a gallery image version.
      Parameters:
      publishingProfile - the publishingProfile value to set.
      Returns:
      the GalleryApplicationVersionUpdate object itself.
    • safetyProfile

      Get the safetyProfile property: The safety profile of the Gallery Application Version.
      Returns:
      the safetyProfile value.
    • withSafetyProfile

      Set the safetyProfile property: The safety profile of the Gallery Application Version.
      Parameters:
      safetyProfile - the safetyProfile value to set.
      Returns:
      the GalleryApplicationVersionUpdate object itself.
    • provisioningState

      public GalleryProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state, which only appears in the response.
      Returns:
      the provisioningState value.
    • replicationStatus

      public ReplicationStatus replicationStatus()
      Get the replicationStatus property: This is the replication status of the gallery image version.
      Returns:
      the replicationStatus value.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class UpdateResourceDefinition
      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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class UpdateResourceDefinition
      Throws:
      IOException
    • fromJson

      public static GalleryApplicationVersionUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of GalleryApplicationVersionUpdate from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of GalleryApplicationVersionUpdate 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 GalleryApplicationVersionUpdate.