Class AdditionalCapabilities
java.lang.Object
com.azure.resourcemanager.compute.models.AdditionalCapabilities
Enables or disables a capability on the virtual machine or virtual machine scale set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.Get the ultraSsdEnabled property: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS.voidvalidate()Validates the instance.withHibernationEnabled(Boolean hibernationEnabled) Set the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.withUltraSsdEnabled(Boolean ultraSsdEnabled) Set the ultraSsdEnabled property: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS.
-
Constructor Details
-
AdditionalCapabilities
public AdditionalCapabilities()
-
-
Method Details
-
ultraSsdEnabled
Get the ultraSsdEnabled property: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled.- Returns:
- the ultraSsdEnabled value.
-
withUltraSsdEnabled
Set the ultraSsdEnabled property: The flag that enables or disables a capability to have one or more managed data disks with UltraSSD_LRS storage account type on the VM or VMSS. Managed disks with storage account type UltraSSD_LRS can be added to a virtual machine or virtual machine scale set only if this property is enabled.- Parameters:
ultraSsdEnabled- the ultraSsdEnabled value to set.- Returns:
- the AdditionalCapabilities object itself.
-
hibernationEnabled
Get the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.- Returns:
- the hibernationEnabled value.
-
withHibernationEnabled
Set the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.- Parameters:
hibernationEnabled- the hibernationEnabled value to set.- Returns:
- the AdditionalCapabilities object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-