Class ThrottlingPerMethod.Builder
java.lang.Object
software.amazon.awscdk.services.apigateway.ThrottlingPerMethod.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ThrottlingPerMethod>
- Enclosing interface:
- ThrottlingPerMethod
@Stability(Stable)
public static final class ThrottlingPerMethod.Builder
extends Object
implements software.amazon.jsii.Builder<ThrottlingPerMethod>
A builder for
ThrottlingPerMethod-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofThrottlingPerMethod.getMethod()throttle(ThrottleSettings throttle) Sets the value ofThrottlingPerMethod.getThrottle()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
method
Sets the value ofThrottlingPerMethod.getMethod()- Parameters:
method- [disable-awslint:ref-via-interface] The method for which you specify the throttling settings. This parameter is required.- Returns:
this
-
throttle
Sets the value ofThrottlingPerMethod.getThrottle()- Parameters:
throttle- Specifies the overall request rate (average requests per second) and burst capacity. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ThrottlingPerMethod>- Returns:
- a new instance of
ThrottlingPerMethod - Throws:
NullPointerException- if any required attribute was not provided
-