GalleryDiskImageSource Class

public final class GalleryDiskImageSource
extends GalleryArtifactVersionSource

The source for the disk image.

Constructor Summary

Constructor Description
GalleryDiskImageSource()

Creates an instance of GalleryDiskImageSource class.

Method Summary

Modifier and Type Method and Description
static GalleryDiskImageSource fromJson(JsonReader jsonReader)

Reads an instance of GalleryDiskImageSource from the JsonReader.

String storageAccountId()

Get the storageAccountId property: The Storage Account Id that contains the vhd blob being used as a source for this artifact version.

JsonWriter toJson(JsonWriter jsonWriter)
String uri()

Get the uri property: The uri of the gallery artifact version source.

void validate()

Validates the instance.

GalleryDiskImageSource withId(String id)

Set the id property: The id of the gallery artifact version source.

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.

GalleryDiskImageSource 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:

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.

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:

the storageAccountId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryDiskImageSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

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:

the uri value.

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:

id

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:

storageAccountId - the storageAccountId value to set.

Returns:

the GalleryDiskImageSource object itself.

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:

uri - the uri value to set.

Returns:

the GalleryDiskImageSource object itself.

Applies to