Class CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty>
- Enclosing interface:
CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty
@Stability(Stable)
public static final class CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.destinationCidrBlock(String destinationCidrBlock) destinationPortRange(String destinationPortRange) sourceCidrBlock(String sourceCidrBlock) sourcePortRange(String sourcePortRange)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinationCidrBlock
@Stability(Stable) public CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder destinationCidrBlock(String destinationCidrBlock) Sets the value ofCfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.getDestinationCidrBlock()- Parameters:
destinationCidrBlock- The destination CIDR block for the transit gateway policy rule.- Returns:
this
-
destinationPortRange
@Stability(Stable) public CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder destinationPortRange(String destinationPortRange) Sets the value ofCfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.getDestinationPortRange()- Parameters:
destinationPortRange- The destination port range for the transit gateway policy rule.- Returns:
this
-
protocol
@Stability(Stable) public CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder protocol(String protocol) - Parameters:
protocol- The protocol for the transit gateway policy rule.- Returns:
this
-
sourceCidrBlock
@Stability(Stable) public CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder sourceCidrBlock(String sourceCidrBlock) Sets the value ofCfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.getSourceCidrBlock()- Parameters:
sourceCidrBlock- The source CIDR block for the transit gateway policy rule.- Returns:
this
-
sourcePortRange
@Stability(Stable) public CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.Builder sourcePortRange(String sourcePortRange) Sets the value ofCfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty.getSourcePortRange()- Parameters:
sourcePortRange- The source port range for the transit gateway policy rule.- Returns:
this
-
build
@Stability(Stable) public CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty>- Returns:
- a new instance of
CfnTransitGatewayPolicyTableEntry.TransitGatewayPolicyRuleProperty - Throws:
NullPointerException- if any required attribute was not provided
-