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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TransitGatewayPolicyRule.Builder
destinationCidrBlock(String destinationCidrBlock)
The destination CIDR block for the transit gateway policy rule.TransitGatewayPolicyRule.Builder
destinationPortRange(String destinationPortRange)
The port range for the transit gateway policy rule.default TransitGatewayPolicyRule.Builder
metaData(Consumer<TransitGatewayPolicyRuleMetaData.Builder> metaData)
The meta data tags used for the transit gateway policy rule.TransitGatewayPolicyRule.Builder
metaData(TransitGatewayPolicyRuleMetaData metaData)
The meta data tags used for the transit gateway policy rule.TransitGatewayPolicyRule.Builder
protocol(String protocol)
The protocol used by the transit gateway policy rule.TransitGatewayPolicyRule.Builder
sourceCidrBlock(String sourceCidrBlock)
The source CIDR block for the transit gateway policy rule.TransitGatewayPolicyRule.Builder
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 Detail
-
sourceCidrBlock
TransitGatewayPolicyRule.Builder sourceCidrBlock(String 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
TransitGatewayPolicyRule.Builder sourcePortRange(String 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
TransitGatewayPolicyRule.Builder destinationCidrBlock(String 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
TransitGatewayPolicyRule.Builder destinationPortRange(String 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
TransitGatewayPolicyRule.Builder protocol(String 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
TransitGatewayPolicyRule.Builder metaData(TransitGatewayPolicyRuleMetaData 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:
metaData(TransitGatewayPolicyRuleMetaData)
-
-