Package com.oracle.bmc.apigateway.model
Class Quota.Builder
- java.lang.Object
- 
- com.oracle.bmc.apigateway.model.Quota.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Quotabuild()Quota.Buildercopy(Quota model)Quota.BuilderoperationOnBreach(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 requestsQuota.BuilderresetPolicy(Quota.ResetPolicy resetPolicy)The policy that controls when quotas will reset.Quota.Builderunit(Quota.Unit unit)The unit of time over which quotas are calculated.Quota.Buildervalue(Integer value)The number of requests that can be made per time period.
 
- 
- 
- 
Method Detail- 
valuepublic Quota.Builder value(Integer value) The number of requests that can be made per time period.- Parameters:
- value- the value to set
- Returns:
- this builder
 
 - 
unitpublic Quota.Builder unit(Quota.Unit unit) The unit of time over which quotas are calculated.Example: MINUTE or MONTH - Parameters:
- unit- the value to set
- Returns:
- this builder
 
 - 
resetPolicypublic Quota.Builder resetPolicy(Quota.ResetPolicy resetPolicy) The policy that controls when quotas will reset.Example: CALENDAR - Parameters:
- resetPolicy- the value to set
- Returns:
- this builder
 
 - 
operationOnBreachpublic 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- Parameters:
- operationOnBreach- the value to set
- Returns:
- this builder
 
 - 
buildpublic Quota build() 
 - 
copypublic Quota.Builder copy(Quota model) 
 
- 
 
-