ElasticPoolPerDatabaseMaxPerformanceLevelCapability Class

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

Implements

public final class ElasticPoolPerDatabaseMaxPerformanceLevelCapability
implements JsonSerializable<ElasticPoolPerDatabaseMaxPerformanceLevelCapability>

The max per-database performance level capability.

Constructor Summary

Constructor Description
ElasticPoolPerDatabaseMaxPerformanceLevelCapability()

Creates an instance of ElasticPoolPerDatabaseMaxPerformanceLevelCapability class.

Method Summary

Modifier and Type Method and Description
static ElasticPoolPerDatabaseMaxPerformanceLevelCapability fromJson(JsonReader jsonReader)

Reads an instance of ElasticPoolPerDatabaseMaxPerformanceLevelCapability from the JsonReader.

Double limit()

Get the limit property: The maximum performance level per database.

String reason()

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

CapabilityStatus status()

Get the status property: The status of the capability.

List<ElasticPoolPerDatabaseMinPerformanceLevelCapability> supportedPerDatabaseMinPerformanceLevels()

Get the supportedPerDatabaseMinPerformanceLevels property: The list of supported min database performance levels.

JsonWriter toJson(JsonWriter jsonWriter)
PerformanceLevelUnit unit()

Get the unit property: Unit type used to measure performance level.

void validate()

Validates the instance.

ElasticPoolPerDatabaseMaxPerformanceLevelCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

ElasticPoolPerDatabaseMaxPerformanceLevelCapability

public ElasticPoolPerDatabaseMaxPerformanceLevelCapability()

Creates an instance of ElasticPoolPerDatabaseMaxPerformanceLevelCapability class.

Method Details

fromJson

public static ElasticPoolPerDatabaseMaxPerformanceLevelCapability fromJson(JsonReader jsonReader)

Reads an instance of ElasticPoolPerDatabaseMaxPerformanceLevelCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ElasticPoolPerDatabaseMaxPerformanceLevelCapability 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 ElasticPoolPerDatabaseMaxPerformanceLevelCapability.

limit

public Double limit()

Get the limit property: The maximum performance level per database.

Returns:

the limit value.

reason

public String reason()

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

Returns:

the reason value.

status

public CapabilityStatus status()

Get the status property: The status of the capability.

Returns:

the status value.

supportedPerDatabaseMinPerformanceLevels

public List supportedPerDatabaseMinPerformanceLevels()

Get the supportedPerDatabaseMinPerformanceLevels property: The list of supported min database performance levels.

Returns:

the supportedPerDatabaseMinPerformanceLevels value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public PerformanceLevelUnit unit()

Get the unit property: Unit type used to measure performance level.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

withReason

public ElasticPoolPerDatabaseMaxPerformanceLevelCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the ElasticPoolPerDatabaseMaxPerformanceLevelCapability object itself.

Applies to