Partager via


ServiceObjectiveCapability Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.models.ServiceObjectiveCapability

Implements

public final class ServiceObjectiveCapability
implements JsonSerializable<ServiceObjectiveCapability>

The service objectives capability.

Constructor Summary

Constructor Description
ServiceObjectiveCapability()

Creates an instance of ServiceObjectiveCapability class.

Method Summary

Modifier and Type Method and Description
String computeModel()

Get the computeModel property: The compute model.

static ServiceObjectiveCapability fromJson(JsonReader jsonReader)

Reads an instance of ServiceObjectiveCapability from the JsonReader.

UUID id()

Get the id property: The unique ID of the service objective.

MaxSizeCapability includedMaxSize()

Get the includedMaxSize property: The included (free) max size.

String name()

Get the name property: The service objective name.

PerformanceLevelCapability performanceLevel()

Get the performanceLevel property: The performance level.

String reason()

Get the reason property: The reason for the capability not being available.

Sku sku()

Get the sku property: The sku.

CapabilityStatus status()

Get the status property: The status of the capability.

AutoPauseDelayTimeRange supportedAutoPauseDelay()

Get the supportedAutoPauseDelay property: Supported time range for auto pause delay.

List<LicenseTypeCapability> supportedLicenseTypes()

Get the supportedLicenseTypes property: List of supported license types.

List<MaintenanceConfigurationCapability> supportedMaintenanceConfigurations()

Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.

List<MaxSizeRangeCapability> supportedMaxSizes()

Get the supportedMaxSizes property: The list of supported maximum database sizes.

List<MinCapacityCapability> supportedMinCapacities()

Get the supportedMinCapacities property: List of supported min capacities.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceObjectiveCapability withReason(String reason)

Set the reason property: The reason for the capability not being available.

Boolean zoneRedundant()

Get the zoneRedundant property: Whether or not zone redundancy is supported for the service objective.

Methods inherited from java.lang.Object

Constructor Details

ServiceObjectiveCapability

public ServiceObjectiveCapability()

Creates an instance of ServiceObjectiveCapability class.

Method Details

computeModel

public String computeModel()

Get the computeModel property: The compute model.

Returns:

the computeModel value.

fromJson

public static ServiceObjectiveCapability fromJson(JsonReader jsonReader)

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.

id

public UUID id()

Get the id property: The unique ID of the service objective.

Returns:

the id value.

includedMaxSize

public MaxSizeCapability includedMaxSize()

Get the includedMaxSize property: The included (free) max size.

Returns:

the includedMaxSize value.

name

public String name()

Get the name property: The service objective name.

Returns:

the name value.

performanceLevel

public PerformanceLevelCapability performanceLevel()

Get the performanceLevel property: The performance level.

Returns:

the performanceLevel value.

reason

public String reason()

Get the reason property: The reason for the capability not being available.

Returns:

the reason value.

sku

public Sku sku()

Get the sku property: The sku.

Returns:

the sku value.

status

public CapabilityStatus status()

Get the status property: The status of the capability.

Returns:

the status value.

supportedAutoPauseDelay

public AutoPauseDelayTimeRange supportedAutoPauseDelay()

Get the supportedAutoPauseDelay property: Supported time range for auto pause delay.

Returns:

the supportedAutoPauseDelay value.

supportedLicenseTypes

public List supportedLicenseTypes()

Get the supportedLicenseTypes property: List of supported license types.

Returns:

the supportedLicenseTypes value.

supportedMaintenanceConfigurations

public List supportedMaintenanceConfigurations()

Get the supportedMaintenanceConfigurations property: List of supported maintenance configurations.

Returns:

the supportedMaintenanceConfigurations value.

supportedMaxSizes

public List supportedMaxSizes()

Get the supportedMaxSizes property: The list of supported maximum database sizes.

Returns:

the supportedMaxSizes value.

supportedMinCapacities

public List supportedMinCapacities()

Get the supportedMinCapacities property: List of supported min capacities.

Returns:

the supportedMinCapacities value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

zoneRedundant

public Boolean zoneRedundant()

Get the zoneRedundant property: Whether or not zone redundancy is supported for the service objective.

Returns:

the zoneRedundant value.

Applies to