Sdílet prostřednictvím


GalleryImageVersionStorageProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.GalleryImageVersionStorageProfile

Implements

public final class GalleryImageVersionStorageProfile
implements JsonSerializable<GalleryImageVersionStorageProfile>

This is the storage profile of a Gallery Image Version.

Constructor Summary

Constructor Description
GalleryImageVersionStorageProfile()

Creates an instance of GalleryImageVersionStorageProfile class.

Method Summary

Modifier and Type Method and Description
List<GalleryDataDiskImage> dataDiskImages()

Get the dataDiskImages property: A list of data disk images.

static GalleryImageVersionStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageVersionStorageProfile from the JsonReader.

GalleryOSDiskImage osDiskImage()

Get the osDiskImage property: This is the OS disk image.

GalleryArtifactVersionFullSource source()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GalleryImageVersionStorageProfile withDataDiskImages(List<GalleryDataDiskImage> dataDiskImages)

Set the dataDiskImages property: A list of data disk images.

GalleryImageVersionStorageProfile withOsDiskImage(GalleryOSDiskImage osDiskImage)

Set the osDiskImage property: This is the OS disk image.

GalleryImageVersionStorageProfile withSource(GalleryArtifactVersionFullSource source)

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

Methods inherited from java.lang.Object

Constructor Details

GalleryImageVersionStorageProfile

public GalleryImageVersionStorageProfile()

Creates an instance of GalleryImageVersionStorageProfile class.

Method Details

dataDiskImages

public List<GalleryDataDiskImage> dataDiskImages()

Get the dataDiskImages property: A list of data disk images.

Returns:

the dataDiskImages value.

fromJson

public static GalleryImageVersionStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of GalleryImageVersionStorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

osDiskImage

public GalleryOSDiskImage osDiskImage()

Get the osDiskImage property: This is the OS disk image.

Returns:

the osDiskImage value.

source

public GalleryArtifactVersionFullSource source()

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

Returns:

the source value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataDiskImages

public GalleryImageVersionStorageProfile withDataDiskImages(List<GalleryDataDiskImage> dataDiskImages)

Set the dataDiskImages property: A list of data disk images.

Parameters:

dataDiskImages - the dataDiskImages value to set.

Returns:

the GalleryImageVersionStorageProfile object itself.

withOsDiskImage

public GalleryImageVersionStorageProfile withOsDiskImage(GalleryOSDiskImage osDiskImage)

Set the osDiskImage property: This is the OS disk image.

Parameters:

osDiskImage - the osDiskImage value to set.

Returns:

the GalleryImageVersionStorageProfile object itself.

withSource

public GalleryImageVersionStorageProfile withSource(GalleryArtifactVersionFullSource source)

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

Parameters:

source - the source value to set.

Returns:

the GalleryImageVersionStorageProfile object itself.

Applies to