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