Class GalleryDiskImageSource
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
com.azure.resourcemanager.compute.models.GalleryDiskImageSource
The source for the disk image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryDiskImageSource class. -
Method Summary
Modifier and TypeMethodDescriptionGet the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.uri()Get the uri property: The uri of the gallery artifact version source.voidvalidate()Validates the instance.Set the id property: The id of the gallery artifact version source.withStorageAccountId(String storageAccountId) Set the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.Set the uri property: The uri of the gallery artifact version source.Methods inherited from class com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
id
-
Constructor Details
-
GalleryDiskImageSource
public GalleryDiskImageSource()Creates an instance of GalleryDiskImageSource class.
-
-
Method Details
-
uri
Get the uri property: The uri of the gallery artifact version source. Currently used to specify vhd/blob source.- Returns:
- the uri value.
-
withUri
Set the uri property: The uri of the gallery artifact version source. Currently used to specify vhd/blob source.- Parameters:
uri- the uri value to set.- Returns:
- the GalleryDiskImageSource object itself.
-
storageAccountId
Get the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.- Returns:
- the storageAccountId value.
-
withStorageAccountId
Set the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.- Parameters:
storageAccountId- the storageAccountId value to set.- Returns:
- the GalleryDiskImageSource 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:
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.
-