Class ReadScaleCapability
- java.lang.Object
-
- com.azure.resourcemanager.sql.models.ReadScaleCapability
-
public final class ReadScaleCapability extends Object
The read scale capability.
-
-
Constructor Summary
Constructors Constructor Description ReadScaleCapability()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegermaxNumberOfReplicas()Get the maxNumberOfReplicas property: The maximum number of read scale replicas.Stringreason()Get the reason property: The reason for the capability not being available.CapabilityStatusstatus()Get the status property: The status of the capability.voidvalidate()Validates the instance.ReadScaleCapabilitywithReason(String reason)Set the reason property: The reason for the capability not being available.
-
-
-
Method Detail
-
maxNumberOfReplicas
public Integer maxNumberOfReplicas()
Get the maxNumberOfReplicas property: The maximum number of read scale replicas.- Returns:
- the maxNumberOfReplicas value.
-
status
public CapabilityStatus status()
Get the status property: The status of the capability.- Returns:
- the status value.
-
reason
public String reason()
Get the reason property: The reason for the capability not being available.- Returns:
- the reason value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-