Class StorageProfile
java.lang.Object
com.azure.resourcemanager.hybridnetwork.models.StorageProfile
Specifies the storage settings for the virtual machine disks.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.Get the imageReference property: The image reference properties.osDisk()
Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.void
validate()
Validates the instance.withDataDisks
(List<DataDisk> dataDisks) Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.withImageReference
(ImageReference imageReference) Set the imageReference property: The image reference properties.withOsDisk
(OsDisk osDisk) Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.
-
Constructor Details
-
StorageProfile
public StorageProfile()Creates an instance of StorageProfile class.
-
-
Method Details
-
imageReference
Get the imageReference property: The image reference properties.- Returns:
- the imageReference value.
-
withImageReference
Set the imageReference property: The image reference properties.- Parameters:
imageReference
- the imageReference value to set.- Returns:
- the StorageProfile object itself.
-
osDisk
Get the osDisk property: Specifies information about the operating system disk used by the virtual machine.- Returns:
- the osDisk value.
-
withOsDisk
Set the osDisk property: Specifies information about the operating system disk used by the virtual machine.- Parameters:
osDisk
- the osDisk value to set.- Returns:
- the StorageProfile object itself.
-
dataDisks
Get the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.- Returns:
- the dataDisks value.
-
withDataDisks
Set the dataDisks property: Specifies the parameters that are used to add a data disk to a virtual machine.- Parameters:
dataDisks
- the dataDisks value to set.- Returns:
- the StorageProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-