GalleryDiskImageSource Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. GalleryArtifactVersionSource - com.
azure. resourcemanager. compute. models. GalleryDiskImageSource
- com.
- com.
public final class GalleryDiskImageSource
extends GalleryArtifactVersionSource
The source for the disk image.
Constructor Summary
Constructor | Description |
---|---|
GalleryDiskImageSource() |
Creates an instance of Gallery |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Gallery |
fromJson(JsonReader jsonReader)
Reads an instance of Gallery |
String |
storageAccountId()
Get the storage |
Json |
toJson(JsonWriter jsonWriter) |
String |
uri()
Get the uri property: The uri of the gallery artifact version source. |
void |
validate()
Validates the instance. |
Gallery |
withId(String id)
Set the id property: The id of the gallery artifact version source. |
Gallery |
withStorageAccountId(String storageAccountId)
Set the storage |
Gallery |
withUri(String uri)
Set the uri property: The uri of the gallery artifact version source. |
Methods inherited from GalleryArtifactVersionSource
Methods inherited from java.lang.Object
Constructor Details
GalleryDiskImageSource
public GalleryDiskImageSource()
Creates an instance of GalleryDiskImageSource class.
Method Details
fromJson
public static GalleryDiskImageSource fromJson(JsonReader jsonReader)
Reads an instance of GalleryDiskImageSource from the JsonReader.
Parameters:
Returns:
Throws:
storageAccountId
public String storageAccountId()
Get the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
GalleryDiskImageSource.toJson(JsonWriter jsonWriter)Parameters:
Throws:
uri
public String uri()
Get the uri property: The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
Returns:
validate
public void validate()
Validates the instance.
Overrides:
GalleryDiskImageSource.validate()withId
public GalleryDiskImageSource withId(String id)
Set the id property: The id of the gallery artifact version source.
Overrides:
GalleryDiskImageSource.withId(String id)Parameters:
withStorageAccountId
public GalleryDiskImageSource 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.
Parameters:
Returns:
withUri
public GalleryDiskImageSource withUri(String uri)
Set the uri property: The uri of the gallery artifact version source. Currently used to specify vhd/blob source.
Parameters:
Returns:
Applies to
Azure SDK for Java