Class CfnTransitGatewayPolicyTableEntryProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayPolicyTableEntryProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayPolicyTableEntryProps>
- Enclosing interface:
CfnTransitGatewayPolicyTableEntryProps
@Stability(Stable)
public static final class CfnTransitGatewayPolicyTableEntryProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayPolicyTableEntryProps>
A builder for
CfnTransitGatewayPolicyTableEntryProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.policyRule(IResolvable policyRule) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getPolicyRule()Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getPolicyRule()policyRuleNumber(String policyRuleNumber) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getPolicyRuleNumber()targetRouteTableId(String targetRouteTableId) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getTargetRouteTableId()transitGatewayPolicyTableId(String transitGatewayPolicyTableId) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getTransitGatewayPolicyTableId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyRule
@Stability(Stable) public CfnTransitGatewayPolicyTableEntryProps.Builder policyRule(IResolvable policyRule) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getPolicyRule()- Parameters:
policyRule- the value to be set. This parameter is required.- Returns:
this
-
policyRule
@Stability(Stable) public CfnTransitGatewayPolicyTableEntryProps.Builder policyRule(CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty policyRule) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getPolicyRule()- Parameters:
policyRule- the value to be set. This parameter is required.- Returns:
this
-
policyRuleNumber
@Stability(Stable) public CfnTransitGatewayPolicyTableEntryProps.Builder policyRuleNumber(String policyRuleNumber) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getPolicyRuleNumber()- Parameters:
policyRuleNumber- The rule number for the policy table entry. This parameter is required.- Returns:
this
-
targetRouteTableId
@Stability(Stable) public CfnTransitGatewayPolicyTableEntryProps.Builder targetRouteTableId(String targetRouteTableId) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getTargetRouteTableId()- Parameters:
targetRouteTableId- The ID of the target route table. This parameter is required.- Returns:
this
-
transitGatewayPolicyTableId
@Stability(Stable) public CfnTransitGatewayPolicyTableEntryProps.Builder transitGatewayPolicyTableId(String transitGatewayPolicyTableId) Sets the value ofCfnTransitGatewayPolicyTableEntryProps.getTransitGatewayPolicyTableId()- Parameters:
transitGatewayPolicyTableId- The ID of the transit gateway policy table. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayPolicyTableEntryProps>- Returns:
- a new instance of
CfnTransitGatewayPolicyTableEntryProps - Throws:
NullPointerException- if any required attribute was not provided
-