Class GalleryDiskImageSource
java.lang.Object
com.azure.resourcemanager.compute.models.GalleryArtifactVersionSource
com.azure.resourcemanager.compute.models.GalleryDiskImageSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<GalleryArtifactVersionSource>
The source for the disk image.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GalleryDiskImageSource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GalleryDiskImageSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of GalleryDiskImageSource from the JsonReader.Get the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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
idMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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.- 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<GalleryArtifactVersionSource>- Overrides:
toJsonin classGalleryArtifactVersionSource- Throws:
IOException
-
fromJson
public static GalleryDiskImageSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GalleryDiskImageSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of GalleryDiskImageSource 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 GalleryDiskImageSource.
-