Class ReadScaleCapability
java.lang.Object
com.azure.resourcemanager.sql.models.ReadScaleCapability
The read scale capability.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the maxNumberOfReplicas property: The maximum number of read scale replicas.reason()Get the reason property: The reason for the capability not being available.status()Get the status property: The status of the capability.voidvalidate()Validates the instance.withReason(String reason) Set the reason property: The reason for the capability not being available.
-
Constructor Details
-
ReadScaleCapability
public ReadScaleCapability()Creates an instance of ReadScaleCapability class.
-
-
Method Details
-
maxNumberOfReplicas
Get the maxNumberOfReplicas property: The maximum number of read scale replicas.- Returns:
- the maxNumberOfReplicas value.
-
status
Get the status property: The status of the capability.- Returns:
- the status value.
-
reason
Get the reason property: The reason for the capability not being available.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason for the capability not being available.- Parameters:
reason- the reason value to set.- Returns:
- the ReadScaleCapability object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-