Class GalleryArtifactVersionFullSource

java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
com.azure.resourcemanager.compute.models.GalleryArtifactVersionFullSource

public final class GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource
The source of the gallery artifact version.
  • Constructor Details

    • GalleryArtifactVersionFullSource

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

    • communityGalleryImageId

      public String communityGalleryImageId()
      Get the communityGalleryImageId property: The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
      Returns:
      the communityGalleryImageId value.
    • withCommunityGalleryImageId

      public GalleryArtifactVersionFullSource withCommunityGalleryImageId(String communityGalleryImageId)
      Set the communityGalleryImageId property: The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source.
      Parameters:
      communityGalleryImageId - the communityGalleryImageId value to set.
      Returns:
      the GalleryArtifactVersionFullSource object itself.
    • withId

      Set the id property: The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource.
      Overrides:
      withId in class GalleryArtifactVersionSource
      Parameters:
      id - the id value to set.
      Returns:
      the GalleryArtifactVersionSource object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class GalleryArtifactVersionSource
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.