VirtualMachineScaleSetStorageProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineScaleSetStorageProfile
- com.
Implements
public final class VirtualMachineScaleSetStorageProfile
implements JsonSerializable<VirtualMachineScaleSetStorageProfile>
Describes a virtual machine scale set storage profile.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineScaleSetStorageProfile() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Virtual |
dataDisks()
Get the data |
String |
diskControllerType()
Get the disk |
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Image |
imageReference()
Get the image |
Virtual |
osDisk()
Get the os |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withDataDisks(List<VirtualMachineScaleSetDataDisk> dataDisks)
Set the data |
Virtual |
withDiskControllerType(String diskControllerType)
Set the disk |
Virtual |
withImageReference(ImageReference imageReference)
Set the image |
Virtual |
withOsDisk(VirtualMachineScaleSetOSDisk osDisk)
Set the os |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetStorageProfile
public VirtualMachineScaleSetStorageProfile()
Creates an instance of VirtualMachineScaleSetStorageProfile class.
Method Details
dataDisks
public List
Get the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
Returns:
diskControllerType
public String diskControllerType()
Get the diskControllerType property: The diskControllerType property.
Returns:
fromJson
public static VirtualMachineScaleSetStorageProfile fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineScaleSetStorageProfile from the JsonReader.
Parameters:
Returns:
Throws:
imageReference
public ImageReference imageReference()
Get the imageReference property: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
Returns:
osDisk
public VirtualMachineScaleSetOSDisk osDisk()
Get the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
Returns:
toJson
validate
public void validate()
Validates the instance.
withDataDisks
public VirtualMachineScaleSetStorageProfile withDataDisks(List
Set the dataDisks property: Specifies the parameters that are used to add data disks to the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
Parameters:
Returns:
withDiskControllerType
public VirtualMachineScaleSetStorageProfile withDiskControllerType(String diskControllerType)
Set the diskControllerType property: The diskControllerType property.
Parameters:
Returns:
withImageReference
public VirtualMachineScaleSetStorageProfile withImageReference(ImageReference imageReference)
Set the imageReference property: Specifies information about the image to use. You can specify information about platform images, marketplace images, or virtual machine images. This element is required when you want to use a platform image, marketplace image, or virtual machine image, but is not used in other creation operations.
Parameters:
Returns:
withOsDisk
public VirtualMachineScaleSetStorageProfile withOsDisk(VirtualMachineScaleSetOSDisk osDisk)
Set the osDisk property: Specifies information about the operating system disk used by the virtual machines in the scale set. For more information about disks, see [About disks and VHDs for Azure virtual machines](https://docs.microsoft.com/azure/virtual-machines/managed-disks-overview).
Parameters:
Returns:
Applies to
Azure SDK for Java