@Generated(value="OracleSDKGenerator", comments="API Version: 20190501") public final class Quota extends Object
Quota policy for a usage plan.
Quota.Builder
. This model distinguishes fields
that are null
because they are unset from fields that are explicitly set to null
. This is done in
the setter methods of the Quota.Builder
, which maintain a set of all explicitly set fields called
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null
from unset null
).Modifier and Type | Class and Description |
---|---|
static class |
Quota.Builder |
static class |
Quota.OperationOnBreach
What the usage plan will do when a quota is breached:
REJECT will allow no further requests
ALLOW will continue to allow further requests |
static class |
Quota.ResetPolicy
The policy that controls when quotas will reset.
|
static class |
Quota.Unit
The unit of time over which quotas are calculated.
|
Constructor and Description |
---|
Quota(Integer value,
Quota.Unit unit,
Quota.ResetPolicy resetPolicy,
Quota.OperationOnBreach operationOnBreach)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Quota.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
Quota.OperationOnBreach |
getOperationOnBreach()
What the usage plan will do when a quota is breached:
REJECT will allow no further requests
ALLOW will continue to allow further requests |
Quota.ResetPolicy |
getResetPolicy()
The policy that controls when quotas will reset.
|
Quota.Unit |
getUnit()
The unit of time over which quotas are calculated.
|
Integer |
getValue()
The number of requests that can be made per time period.
|
int |
hashCode() |
Quota.Builder |
toBuilder() |
String |
toString() |
@Deprecated @ConstructorProperties(value={"value","unit","resetPolicy","operationOnBreach"}) public Quota(Integer value, Quota.Unit unit, Quota.ResetPolicy resetPolicy, Quota.OperationOnBreach operationOnBreach)
public static Quota.Builder builder()
Create a new builder.
public Quota.Builder toBuilder()
public Integer getValue()
The number of requests that can be made per time period.
public Quota.Unit getUnit()
The unit of time over which quotas are calculated.
Example: MINUTE
or MONTH
public Quota.ResetPolicy getResetPolicy()
The policy that controls when quotas will reset.
Example: CALENDAR
public Quota.OperationOnBreach getOperationOnBreach()
What the usage plan will do when a quota is breached:
REJECT
will allow no further requests
ALLOW
will continue to allow further requests
Copyright © 2016–2022. All rights reserved.