Class CfnGatewayRateLimit.LimitEntryProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnGatewayRateLimit.LimitEntryProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGatewayRateLimit.LimitEntryProperty>
- Enclosing interface:
CfnGatewayRateLimit.LimitEntryProperty
@Stability(Stable)
public static final class CfnGatewayRateLimit.LimitEntryProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGatewayRateLimit.LimitEntryProperty>
A builder for
CfnGatewayRateLimit.LimitEntryProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connections(List<? extends Object> connections) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getConnections()connections(IResolvable connections) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getConnections()dimensions(Map<String, String> dimensions) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getDimensions()Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getRequests()requests(IResolvable requests) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getRequests()Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getTokens()tokens(IResolvable tokens) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getTokens()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getDimensions()- Parameters:
dimensions- Map of dimension name to dimension value for a rule entry. This parameter is required.- Returns:
this
-
dimensions
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder dimensions(Map<String, String> dimensions) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getDimensions()- Parameters:
dimensions- Map of dimension name to dimension value for a rule entry. This parameter is required.- Returns:
this
-
connections
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder connections(IResolvable connections) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getConnections()- Parameters:
connections- Connection rate limits (per second only). Limited to 1 entry for now. — P2- Returns:
this
-
connections
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder connections(List<? extends Object> connections) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getConnections()- Parameters:
connections- Connection rate limits (per second only). Limited to 1 entry for now. — P2- Returns:
this
-
requests
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder requests(IResolvable requests) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getRequests()- Parameters:
requests- Request rate limits (RPS or RPM). Limited to 1 entry for now.- Returns:
this
-
requests
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder requests(List<? extends Object> requests) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getRequests()- Parameters:
requests- Request rate limits (RPS or RPM). Limited to 1 entry for now.- Returns:
this
-
tokens
Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getTokens()- Parameters:
tokens- Token rate limits (TPM). Limited to 1 entry for now. — P1- Returns:
this
-
tokens
@Stability(Stable) public CfnGatewayRateLimit.LimitEntryProperty.Builder tokens(List<? extends Object> tokens) Sets the value ofCfnGatewayRateLimit.LimitEntryProperty.getTokens()- Parameters:
tokens- Token rate limits (TPM). Limited to 1 entry for now. — P1- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnGatewayRateLimit.LimitEntryProperty>- Returns:
- a new instance of
CfnGatewayRateLimit.LimitEntryProperty - Throws:
NullPointerException- if any required attribute was not provided
-