Class GalleryArtifactVersionFullSource
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
com.azure.resourcemanager.compute.models.GalleryArtifactVersionFullSource
The source of the gallery artifact version.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryArtifactVersionFullSource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the communityGalleryImageId property: The resource Id of the source Community Gallery Image.voidvalidate()Validates the instance.Get the virtualMachineId property: The resource Id of the source virtual machine.withCommunityGalleryImageId(String communityGalleryImageId) Set the communityGalleryImageId property: The resource Id of the source Community Gallery Image.Set the id property: The id of the gallery artifact version source.withVirtualMachineId(String virtualMachineId) Set the virtualMachineId property: The resource Id of the source virtual machine.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
id
-
Constructor Details
-
GalleryArtifactVersionFullSource
public GalleryArtifactVersionFullSource()Creates an instance of GalleryArtifactVersionFullSource class.
-
-
Method Details
-
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
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
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
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:
withIdin classGalleryArtifactVersionSource- Parameters:
id- the id value to set.- Returns:
- the GalleryArtifactVersionSource object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classGalleryArtifactVersionSource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-