ReadScaleCapability Class

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

Implements

public final class ReadScaleCapability
implements JsonSerializable<ReadScaleCapability>

The read scale capability.

Constructor Summary

Constructor Description
ReadScaleCapability()

Creates an instance of ReadScaleCapability class.

Method Summary

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

Reads an instance of ReadScaleCapability from the JsonReader.

Integer maxNumberOfReplicas()

Get the maxNumberOfReplicas property: The maximum number of read scale replicas.

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)
void validate()

Validates the instance.

ReadScaleCapability withReason(String reason)

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

Methods inherited from java.lang.Object

Constructor Details

ReadScaleCapability

public ReadScaleCapability()

Creates an instance of ReadScaleCapability class.

Method Details

fromJson

public static ReadScaleCapability fromJson(JsonReader jsonReader)

Reads an instance of ReadScaleCapability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

maxNumberOfReplicas

public Integer maxNumberOfReplicas()

Get the maxNumberOfReplicas property: The maximum number of read scale replicas.

Returns:

the maxNumberOfReplicas 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:

validate

public void validate()

Validates the instance.

withReason

public ReadScaleCapability withReason(String reason)

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

Parameters:

reason - the reason value to set.

Returns:

the ReadScaleCapability object itself.

Applies to