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.
    • virtualMachineId

      public String virtualMachineId()
      Get the virtualMachineId property: The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
      Returns:
      the virtualMachineId value.
    • withVirtualMachineId

      public GalleryArtifactVersionFullSource withVirtualMachineId(String virtualMachineId)
      Set the virtualMachineId property: The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version.
      Parameters:
      virtualMachineId - the virtualMachineId value to set.
      Returns:
      the GalleryArtifactVersionFullSource object itself.
    • withId

      Set the id property: The id of the gallery artifact version source.
      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.