Interface TransitGatewayPolicyRule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayPolicyRule.Builder,
,TransitGatewayPolicyRule> SdkBuilder<TransitGatewayPolicyRule.Builder,
,TransitGatewayPolicyRule> SdkPojo
- Enclosing class:
TransitGatewayPolicyRule
public static interface TransitGatewayPolicyRule.Builder
extends SdkPojo, CopyableBuilder<TransitGatewayPolicyRule.Builder,TransitGatewayPolicyRule>
-
Method Summary
Modifier and TypeMethodDescriptiondestinationCidrBlock
(String destinationCidrBlock) The destination CIDR block for the transit gateway policy rule.destinationPortRange
(String destinationPortRange) The port range for the transit gateway policy rule.default TransitGatewayPolicyRule.Builder
The meta data tags used for the transit gateway policy rule.metaData
(TransitGatewayPolicyRuleMetaData metaData) The meta data tags used for the transit gateway policy rule.The protocol used by the transit gateway policy rule.sourceCidrBlock
(String sourceCidrBlock) The source CIDR block for the transit gateway policy rule.sourcePortRange
(String sourcePortRange) The port range for the transit gateway policy rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
sourceCidrBlock
The source CIDR block for the transit gateway policy rule.
- Parameters:
sourceCidrBlock
- The source CIDR block for the transit gateway policy rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourcePortRange
The port range for the transit gateway policy rule. Currently this is set to * (all).
- Parameters:
sourcePortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationCidrBlock
The destination CIDR block for the transit gateway policy rule.
- Parameters:
destinationCidrBlock
- The destination CIDR block for the transit gateway policy rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPortRange
The port range for the transit gateway policy rule. Currently this is set to * (all).
- Parameters:
destinationPortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The protocol used by the transit gateway policy rule.
- Parameters:
protocol
- The protocol used by the transit gateway policy rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metaData
The meta data tags used for the transit gateway policy rule.
- Parameters:
metaData
- The meta data tags used for the transit gateway policy rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metaData
default TransitGatewayPolicyRule.Builder metaData(Consumer<TransitGatewayPolicyRuleMetaData.Builder> metaData) The meta data tags used for the transit gateway policy rule.
This is a convenience method that creates an instance of theTransitGatewayPolicyRuleMetaData.Builder
avoiding the need to create one manually viaTransitGatewayPolicyRuleMetaData.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tometaData(TransitGatewayPolicyRuleMetaData)
.- Parameters:
metaData
- a consumer that will call methods onTransitGatewayPolicyRuleMetaData.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-