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 Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceObjectiveCapability class. -
Method Summary
Modifier and TypeMethodDescriptionGet the computeModel property: The compute model.static ServiceObjectiveCapabilityfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceObjectiveCapability from the JsonReader.id()Get the id property: The unique ID of the service objective.Get the includedMaxSize property: The included (free) max size.name()Get the name property: The service objective name.Get the performanceLevel property: The performance level.reason()Get the reason property: The reason for the capability not being available.sku()Get the sku property: The sku.status()Get the status property: The status of the capability.Get the supportedAutoPauseDelay property: Supported time range for auto pause delay.Get the supportedLicenseTypes property: List of supported license types.Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.Get the supportedMaxSizes property: The list of supported maximum database sizes.Get the supportedMinCapacities property: List of supported min capacities.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withReason(String reason) Set the reason property: The reason for the capability not being available.Get the zoneRedundant property: Whether or not zone redundancy is supported for the service objective.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServiceObjectiveCapability
public ServiceObjectiveCapability()Creates an instance of ServiceObjectiveCapability class.
-
-
Method Details
-
id
Get the id property: The unique ID of the service objective.- Returns:
- the id value.
-
name
-
supportedMaxSizes
Get the supportedMaxSizes property: The list of supported maximum database sizes.- Returns:
- the supportedMaxSizes value.
-
performanceLevel
Get the performanceLevel property: The performance level.- Returns:
- the performanceLevel value.
-
sku
-
supportedLicenseTypes
Get the supportedLicenseTypes property: List of supported license types.- Returns:
- the supportedLicenseTypes value.
-
includedMaxSize
Get the includedMaxSize property: The included (free) max size.- Returns:
- the includedMaxSize value.
-
zoneRedundant
Get the zoneRedundant property: Whether or not zone redundancy is supported for the service objective.- Returns:
- the zoneRedundant value.
-
supportedAutoPauseDelay
Get the supportedAutoPauseDelay property: Supported time range for auto pause delay.- Returns:
- the supportedAutoPauseDelay value.
-
supportedMinCapacities
Get the supportedMinCapacities property: List of supported min capacities.- Returns:
- the supportedMinCapacities value.
-
computeModel
Get the computeModel property: The compute model.- Returns:
- the computeModel value.
-
supportedMaintenanceConfigurations
Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.- Returns:
- the supportedMaintenanceConfigurations value.
-
status
Get the status property: The status of the capability.- Returns:
- the status value.
-
reason
Get the reason property: The reason for the capability not being available.- Returns:
- the reason value.
-
withReason
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
- Specified by:
toJsonin interfacecom.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.
-