Class SharedGalleryImageVersionProperties

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

public final class SharedGalleryImageVersionProperties extends Object implements com.azure.json.JsonSerializable<SharedGalleryImageVersionProperties>
Describes the properties of a gallery image version.
  • Constructor Details

    • SharedGalleryImageVersionProperties

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

    • publishedDate

      public OffsetDateTime publishedDate()
      Get the publishedDate property: The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.
      Returns:
      the publishedDate value.
    • withPublishedDate

      public SharedGalleryImageVersionProperties withPublishedDate(OffsetDateTime publishedDate)
      Set the publishedDate property: The published date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.
      Parameters:
      publishedDate - the publishedDate value to set.
      Returns:
      the SharedGalleryImageVersionProperties object itself.
    • endOfLifeDate

      public OffsetDateTime endOfLifeDate()
      Get the endOfLifeDate property: The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.
      Returns:
      the endOfLifeDate value.
    • withEndOfLifeDate

      public SharedGalleryImageVersionProperties withEndOfLifeDate(OffsetDateTime endOfLifeDate)
      Set the endOfLifeDate property: The end of life date of the gallery image version Definition. This property can be used for decommissioning purposes. This property is updatable.
      Parameters:
      endOfLifeDate - the endOfLifeDate value to set.
      Returns:
      the SharedGalleryImageVersionProperties 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 SharedGalleryImageVersionProperties 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 SharedGalleryImageVersionProperties object itself.
    • storageProfile

      public SharedGalleryImageVersionStorageProfile storageProfile()
      Get the storageProfile property: Describes the storage profile of the image version.
      Returns:
      the storageProfile value.
    • withStorageProfile

      Set the storageProfile property: Describes the storage profile of the image version.
      Parameters:
      storageProfile - the storageProfile value to set.
      Returns:
      the SharedGalleryImageVersionProperties object itself.
    • artifactTags

      public Map<String,String> artifactTags()
      Get the artifactTags property: The artifact tags of a shared gallery resource.
      Returns:
      the artifactTags value.
    • withArtifactTags

      public SharedGalleryImageVersionProperties withArtifactTags(Map<String,String> artifactTags)
      Set the artifactTags property: The artifact tags of a shared gallery resource.
      Parameters:
      artifactTags - the artifactTags value to set.
      Returns:
      the SharedGalleryImageVersionProperties 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<SharedGalleryImageVersionProperties>
      Throws:
      IOException
    • fromJson

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