ReadScaleCapability Class
- java.
lang. Object - com.
azure. resourcemanager. sql. models. ReadScaleCapability
- com.
Implements
public final class ReadScaleCapability
implements JsonSerializable<ReadScaleCapability>
The read scale capability.
Constructor Summary
Constructor | Description |
---|---|
ReadScaleCapability() |
Creates an instance of Read |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Read |
fromJson(JsonReader jsonReader)
Reads an instance of Read |
Integer |
maxNumberOfReplicas()
Get the max |
String |
reason()
Get the reason property: The reason for the capability not being available. |
Capability |
status()
Get the status property: The status of the capability. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Read |
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:
Returns:
Throws:
maxNumberOfReplicas
public Integer maxNumberOfReplicas()
Get the maxNumberOfReplicas property: The maximum number of read scale replicas.
Returns:
reason
public String reason()
Get the reason property: The reason for the capability not being available.
Returns:
status
public CapabilityStatus status()
Get the status property: The status of the capability.
Returns:
toJson
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:
Returns:
Applies to
Azure SDK for Java