Interface TransitGatewayPolicyTableEntry.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TransitGatewayPolicyTableEntry.Builder,
,TransitGatewayPolicyTableEntry> SdkBuilder<TransitGatewayPolicyTableEntry.Builder,
,TransitGatewayPolicyTableEntry> SdkPojo
- Enclosing class:
TransitGatewayPolicyTableEntry
public static interface TransitGatewayPolicyTableEntry.Builder
extends SdkPojo, CopyableBuilder<TransitGatewayPolicyTableEntry.Builder,TransitGatewayPolicyTableEntry>
-
Method Summary
Modifier and TypeMethodDescriptionpolicyRule
(Consumer<TransitGatewayPolicyRule.Builder> policyRule) The policy rule associated with the transit gateway policy table.policyRule
(TransitGatewayPolicyRule policyRule) The policy rule associated with the transit gateway policy table.policyRuleNumber
(String policyRuleNumber) The rule number for the transit gateway policy table entry.targetRouteTableId
(String targetRouteTableId) The ID of the target route table.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
-
policyRuleNumber
The rule number for the transit gateway policy table entry.
- Parameters:
policyRuleNumber
- The rule number for the transit gateway policy table entry.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyRule
The policy rule associated with the transit gateway policy table.
- Parameters:
policyRule
- The policy rule associated with the transit gateway policy table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyRule
default TransitGatewayPolicyTableEntry.Builder policyRule(Consumer<TransitGatewayPolicyRule.Builder> policyRule) The policy rule associated with the transit gateway policy table.
This is a convenience method that creates an instance of theTransitGatewayPolicyRule.Builder
avoiding the need to create one manually viaTransitGatewayPolicyRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicyRule(TransitGatewayPolicyRule)
.- Parameters:
policyRule
- a consumer that will call methods onTransitGatewayPolicyRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
targetRouteTableId
The ID of the target route table.
- Parameters:
targetRouteTableId
- The ID of the target route table.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-