ElasticPoolPerDatabaseMinPerformanceLevelCapability Class

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

Implements

public final class ElasticPoolPerDatabaseMinPerformanceLevelCapability
implements JsonSerializable<ElasticPoolPerDatabaseMinPerformanceLevelCapability>

The minimum per-database performance level capability.

Constructor Summary

Constructor Description
ElasticPoolPerDatabaseMinPerformanceLevelCapability()

Creates an instance of ElasticPoolPerDatabaseMinPerformanceLevelCapability class.

Method Summary

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

Reads an instance of ElasticPoolPerDatabaseMinPerformanceLevelCapability from the JsonReader.

Double limit()

Get the limit property: The minimum 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.

JsonWriter toJson(JsonWriter jsonWriter)
PerformanceLevelUnit unit()

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

void validate()

Validates the instance.

ElasticPoolPerDatabaseMinPerformanceLevelCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

ElasticPoolPerDatabaseMinPerformanceLevelCapability

public ElasticPoolPerDatabaseMinPerformanceLevelCapability()

Creates an instance of ElasticPoolPerDatabaseMinPerformanceLevelCapability class.

Method Details

fromJson

public static ElasticPoolPerDatabaseMinPerformanceLevelCapability fromJson(JsonReader jsonReader)

Reads an instance of ElasticPoolPerDatabaseMinPerformanceLevelCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

limit

public Double limit()

Get the limit property: The minimum 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.

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 ElasticPoolPerDatabaseMinPerformanceLevelCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the ElasticPoolPerDatabaseMinPerformanceLevelCapability object itself.

Applies to