GalleryArtifactVersionFullSource Class

public final class GalleryArtifactVersionFullSource
extends GalleryArtifactVersionSource

The source of the gallery artifact version.

Constructor Summary

Constructor Description
GalleryArtifactVersionFullSource()

Creates an instance of GalleryArtifactVersionFullSource class.

Method Summary

Modifier and Type Method and Description
String communityGalleryImageId()

Get the communityGalleryImageId property: The resource Id of the source Community Gallery Image.

static GalleryArtifactVersionFullSource fromJson(JsonReader jsonReader)

Reads an instance of GalleryArtifactVersionFullSource from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String virtualMachineId()

Get the virtualMachineId property: The resource Id of the source virtual machine.

GalleryArtifactVersionFullSource withCommunityGalleryImageId(String communityGalleryImageId)

Set the communityGalleryImageId property: The resource Id of the source Community Gallery Image.

GalleryArtifactVersionFullSource withId(String id)

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

GalleryArtifactVersionFullSource withVirtualMachineId(String virtualMachineId)

Set the virtualMachineId property: The resource Id of the source virtual machine.

Methods inherited from GalleryArtifactVersionSource

Methods inherited from java.lang.Object

Constructor Details

GalleryArtifactVersionFullSource

public GalleryArtifactVersionFullSource()

Creates an instance of GalleryArtifactVersionFullSource class.

Method Details

communityGalleryImageId

public String 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.

fromJson

public static GalleryArtifactVersionFullSource fromJson(JsonReader jsonReader)

Reads an instance of GalleryArtifactVersionFullSource from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GalleryArtifactVersionFullSource 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 GalleryArtifactVersionFullSource.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GalleryArtifactVersionFullSource.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GalleryArtifactVersionFullSource.validate()

virtualMachineId

public String 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.

withCommunityGalleryImageId

public GalleryArtifactVersionFullSource withCommunityGalleryImageId(String communityGalleryImageId)

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.

withId

public GalleryArtifactVersionFullSource withId(String id)

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

Overrides:

GalleryArtifactVersionFullSource.withId(String id)

Parameters:

id

withVirtualMachineId

public GalleryArtifactVersionFullSource withVirtualMachineId(String virtualMachineId)

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.

Applies to