Class ManagedInstanceVcoresCapability

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

public final class ManagedInstanceVcoresCapability extends Object implements com.azure.json.JsonSerializable<ManagedInstanceVcoresCapability>
The managed instance virtual cores capability.
  • Constructor Details

    • ManagedInstanceVcoresCapability

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

    • name

      public String name()
      Get the name property: The virtual cores identifier.
      Returns:
      the name value.
    • value

      public Integer value()
      Get the value property: The virtual cores value.
      Returns:
      the value value.
    • includedMaxSize

      public MaxSizeCapability includedMaxSize()
      Get the includedMaxSize property: Included size.
      Returns:
      the includedMaxSize value.
    • supportedStorageSizes

      public List<MaxSizeRangeCapability> supportedStorageSizes()
      Get the supportedStorageSizes property: Storage size ranges.
      Returns:
      the supportedStorageSizes value.
    • instancePoolSupported

      public Boolean instancePoolSupported()
      Get the instancePoolSupported property: True if this service objective is supported for managed instances in an instance pool.
      Returns:
      the instancePoolSupported value.
    • standaloneSupported

      public Boolean standaloneSupported()
      Get the standaloneSupported property: True if this service objective is supported for standalone managed instances.
      Returns:
      the standaloneSupported value.
    • supportedMaintenanceConfigurations

      public List<ManagedInstanceMaintenanceConfigurationCapability> supportedMaintenanceConfigurations()
      Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.
      Returns:
      the supportedMaintenanceConfigurations value.
    • status

      public CapabilityStatus status()
      Get the status property: The status of the capability.
      Returns:
      the status value.
    • reason

      public String reason()
      Get the reason property: The reason for the capability not being available.
      Returns:
      the reason value.
    • withReason

      public ManagedInstanceVcoresCapability withReason(String reason)
      Set the reason property: The reason for the capability not being available.
      Parameters:
      reason - the reason value to set.
      Returns:
      the ManagedInstanceVcoresCapability 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<ManagedInstanceVcoresCapability>
      Throws:
      IOException
    • fromJson

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