Class ServiceObjectiveCapability

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

public final class ServiceObjectiveCapability extends Object implements com.azure.json.JsonSerializable<ServiceObjectiveCapability>
The service objectives capability.
  • Constructor Details

    • ServiceObjectiveCapability

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

    • id

      public UUID id()
      Get the id property: The unique ID of the service objective.
      Returns:
      the id value.
    • name

      public String name()
      Get the name property: The service objective name.
      Returns:
      the name value.
    • supportedMaxSizes

      public List<MaxSizeRangeCapability> supportedMaxSizes()
      Get the supportedMaxSizes property: The list of supported maximum database sizes.
      Returns:
      the supportedMaxSizes value.
    • performanceLevel

      public PerformanceLevelCapability performanceLevel()
      Get the performanceLevel property: The performance level.
      Returns:
      the performanceLevel value.
    • sku

      public Sku sku()
      Get the sku property: The sku.
      Returns:
      the sku value.
    • supportedLicenseTypes

      public List<LicenseTypeCapability> supportedLicenseTypes()
      Get the supportedLicenseTypes property: List of supported license types.
      Returns:
      the supportedLicenseTypes value.
    • includedMaxSize

      public MaxSizeCapability includedMaxSize()
      Get the includedMaxSize property: The included (free) max size.
      Returns:
      the includedMaxSize value.
    • zoneRedundant

      public Boolean zoneRedundant()
      Get the zoneRedundant property: Whether or not zone redundancy is supported for the service objective.
      Returns:
      the zoneRedundant value.
    • supportedAutoPauseDelay

      public AutoPauseDelayTimeRange supportedAutoPauseDelay()
      Get the supportedAutoPauseDelay property: Supported time range for auto pause delay.
      Returns:
      the supportedAutoPauseDelay value.
    • supportedMinCapacities

      public List<MinCapacityCapability> supportedMinCapacities()
      Get the supportedMinCapacities property: List of supported min capacities.
      Returns:
      the supportedMinCapacities value.
    • computeModel

      public String computeModel()
      Get the computeModel property: The compute model.
      Returns:
      the computeModel value.
    • supportedMaintenanceConfigurations

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

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