Class AdditionalCapabilities

java.lang.Object
com.azure.resourcemanager.compute.models.AdditionalCapabilities
All Implemented Interfaces:
com.azure.json.JsonSerializable<AdditionalCapabilities>

public final class AdditionalCapabilities extends Object implements com.azure.json.JsonSerializable<AdditionalCapabilities>
Enables or disables a capability on the virtual machine or virtual machine scale set.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of AdditionalCapabilities class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of AdditionalCapabilities from the JsonReader.
    Get the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    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.
    void
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • AdditionalCapabilities

      public AdditionalCapabilities()
      Creates an instance of AdditionalCapabilities class.
  • Method Details

    • ultraSsdEnabled

      public Boolean 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

      public AdditionalCapabilities 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. 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

      public Boolean hibernationEnabled()
      Get the hibernationEnabled property: The flag that enables or disables hibernation capability on the VM.
      Returns:
      the hibernationEnabled value.
    • withHibernationEnabled

      public AdditionalCapabilities withHibernationEnabled(Boolean hibernationEnabled)
      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.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AdditionalCapabilities>
      Throws:
      IOException
    • fromJson

      public static AdditionalCapabilities fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AdditionalCapabilities from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AdditionalCapabilities 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 AdditionalCapabilities.