Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Quota |
build() |
Quota.Builder |
copy(Quota o) |
Quota.Builder |
operationOnBreach(Quota.OperationOnBreach 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 |
Quota.Builder |
resetPolicy(Quota.ResetPolicy resetPolicy)
The policy that controls when quotas will reset.
|
Quota.Builder |
unit(Quota.Unit unit)
The unit of time over which quotas are calculated.
|
Quota.Builder |
value(Integer value)
The number of requests that can be made per time period.
|
public Quota.Builder value(Integer value)
The number of requests that can be made per time period.
value
- the value to setpublic Quota.Builder unit(Quota.Unit unit)
The unit of time over which quotas are calculated.
Example: MINUTE
or MONTH
unit
- the value to setpublic Quota.Builder resetPolicy(Quota.ResetPolicy resetPolicy)
The policy that controls when quotas will reset.
Example: CALENDAR
resetPolicy
- the value to setpublic Quota.Builder operationOnBreach(Quota.OperationOnBreach 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
operationOnBreach
- the value to setpublic Quota build()
public Quota.Builder copy(Quota o)
Copyright © 2016–2022. All rights reserved.