Freigeben über


SharedGalleryImageVersionStorageProfile Class

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

Implements

public final class SharedGalleryImageVersionStorageProfile
implements JsonSerializable<SharedGalleryImageVersionStorageProfile>

This is the storage profile of a Gallery Image Version.

Constructor Summary

Constructor Description
SharedGalleryImageVersionStorageProfile()

Creates an instance of SharedGalleryImageVersionStorageProfile class.

Method Summary

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

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

static SharedGalleryImageVersionStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryImageVersionStorageProfile from the JsonReader.

SharedGalleryOSDiskImage osDiskImage()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SharedGalleryImageVersionStorageProfile withDataDiskImages(List<SharedGalleryDataDiskImage> dataDiskImages)

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

SharedGalleryImageVersionStorageProfile withOsDiskImage(SharedGalleryOSDiskImage osDiskImage)

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

Methods inherited from java.lang.Object

Constructor Details

SharedGalleryImageVersionStorageProfile

public SharedGalleryImageVersionStorageProfile()

Creates an instance of SharedGalleryImageVersionStorageProfile class.

Method Details

dataDiskImages

public List<SharedGalleryDataDiskImage> dataDiskImages()

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

Returns:

the dataDiskImages value.

fromJson

public static SharedGalleryImageVersionStorageProfile fromJson(JsonReader jsonReader)

Reads an instance of SharedGalleryImageVersionStorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

osDiskImage

public SharedGalleryOSDiskImage osDiskImage()

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

Returns:

the osDiskImage value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDataDiskImages

public SharedGalleryImageVersionStorageProfile withDataDiskImages(List<SharedGalleryDataDiskImage> dataDiskImages)

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

Parameters:

dataDiskImages - the dataDiskImages value to set.

Returns:

the SharedGalleryImageVersionStorageProfile object itself.

withOsDiskImage

public SharedGalleryImageVersionStorageProfile withOsDiskImage(SharedGalleryOSDiskImage osDiskImage)

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

Parameters:

osDiskImage - the osDiskImage value to set.

Returns:

the SharedGalleryImageVersionStorageProfile object itself.

Applies to