Class CfnRoutingRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.apigatewayv2.CfnRoutingRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRoutingRuleProps>
- Enclosing interface:
CfnRoutingRuleProps
@Stability(Stable)
public static final class CfnRoutingRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRoutingRuleProps>
A builder for
CfnRoutingRuleProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnRoutingRuleProps.getActions()actions(IResolvable actions) Sets the value ofCfnRoutingRuleProps.getActions()build()Builds the configured instance.conditions(List<? extends Object> conditions) Sets the value ofCfnRoutingRuleProps.getConditions()conditions(IResolvable conditions) Sets the value ofCfnRoutingRuleProps.getConditions()domainNameArn(String domainNameArn) Sets the value ofCfnRoutingRuleProps.getDomainNameArn()Sets the value ofCfnRoutingRuleProps.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnRoutingRuleProps.getActions()- Parameters:
actions- The resulting action based on matching a routing rules condition. This parameter is required. Only InvokeApi is supported.- Returns:
this
-
actions
Sets the value ofCfnRoutingRuleProps.getActions()- Parameters:
actions- The resulting action based on matching a routing rules condition. This parameter is required. Only InvokeApi is supported.- Returns:
this
-
conditions
Sets the value ofCfnRoutingRuleProps.getConditions()- Parameters:
conditions- The conditions of the routing rule. This parameter is required.- Returns:
this
-
conditions
Sets the value ofCfnRoutingRuleProps.getConditions()- Parameters:
conditions- The conditions of the routing rule. This parameter is required.- Returns:
this
-
domainNameArn
Sets the value ofCfnRoutingRuleProps.getDomainNameArn()- Parameters:
domainNameArn- The ARN of the domain name. This parameter is required.- Returns:
this
-
priority
Sets the value ofCfnRoutingRuleProps.getPriority()- Parameters:
priority- The order in which API Gateway evaluates a rule. This parameter is required. Priority is evaluated from the lowest value to the highest value. Rules can't have the same priority. Priority values 1-1,000,000 are supported.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRoutingRuleProps>- Returns:
- a new instance of
CfnRoutingRuleProps - Throws:
NullPointerException- if any required attribute was not provided
-