StorageProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.StorageProfile

Implements

public final class StorageProfile
implements JsonSerializable<StorageProfile>

Defines the resource properties.

Constructor Summary

Constructor Description
StorageProfile()

Creates an instance of StorageProfile class.

Method Summary

Modifier and Type Method and Description
List<VirtualDisk> disks()

Get the disks property: Gets or sets the list of virtual disks associated with the virtual machine.

static StorageProfile fromJson(JsonReader jsonReader)

Reads an instance of StorageProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StorageProfile withDisks(List<VirtualDisk> disks)

Set the disks property: Gets or sets the list of virtual disks associated with the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

StorageProfile

public StorageProfile()

Creates an instance of StorageProfile class.

Method Details

disks

public List<VirtualDisk> disks()

Get the disks property: Gets or sets the list of virtual disks associated with the virtual machine.

Returns:

the disks value.

fromJson

public static StorageProfile fromJson(JsonReader jsonReader)

Reads an instance of StorageProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDisks

public StorageProfile withDisks(List<VirtualDisk> disks)

Set the disks property: Gets or sets the list of virtual disks associated with the virtual machine.

Parameters:

disks - the disks value to set.

Returns:

the StorageProfile object itself.

Applies to