public final class StorageProfile extends Object
Constructor and Description |
---|
StorageProfile() |
Modifier and Type | Method and Description |
---|---|
List<DataDisk> |
dataDisks()
Get the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.
|
ImageReference |
imageReference()
Get the imageReference property: Specifies information about the image to use.
|
OSDisk |
osDisk()
Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.
|
void |
validate()
Validates the instance.
|
StorageProfile |
withDataDisks(List<DataDisk> dataDisks)
Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.
|
StorageProfile |
withImageReference(ImageReference imageReference)
Set the imageReference property: Specifies information about the image to use.
|
StorageProfile |
withOsDisk(OSDisk osDisk)
Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.
|
public ImageReference imageReference()
public StorageProfile withImageReference(ImageReference imageReference)
imageReference
- the imageReference value to set.public OSDisk osDisk()
public StorageProfile withOsDisk(OSDisk osDisk)
osDisk
- the osDisk value to set.public List<DataDisk> dataDisks()
public StorageProfile withDataDisks(List<DataDisk> dataDisks)
dataDisks
- the dataDisks value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.