public static interface TransitGatewayPolicyRule.Builder extends SdkPojo, CopyableBuilder<TransitGatewayPolicyRule.Builder,TransitGatewayPolicyRule>
Modifier and Type | Method and 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.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
TransitGatewayPolicyRule.Builder sourceCidrBlock(String sourceCidrBlock)
The source CIDR block for the transit gateway policy rule.
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. Currently this is set to * (all).
sourcePortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).TransitGatewayPolicyRule.Builder destinationCidrBlock(String destinationCidrBlock)
The destination CIDR block for the transit gateway policy rule.
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. Currently this is set to * (all).
destinationPortRange
- The port range for the transit gateway policy rule. Currently this is set to * (all).TransitGatewayPolicyRule.Builder protocol(String protocol)
The protocol used by the transit gateway policy rule.
protocol
- The protocol used by the transit gateway policy rule.TransitGatewayPolicyRule.Builder metaData(TransitGatewayPolicyRuleMetaData metaData)
The meta data tags used for the transit gateway policy rule.
metaData
- The meta data tags used 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.
This is a convenience method that creates an instance of theTransitGatewayPolicyRuleMetaData.Builder
avoiding the need to create one manually via TransitGatewayPolicyRuleMetaData.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called
immediately and its result is passed to metaData(TransitGatewayPolicyRuleMetaData)
.metaData
- a consumer that will call methods on TransitGatewayPolicyRuleMetaData.Builder
metaData(TransitGatewayPolicyRuleMetaData)
Copyright © 2022. All rights reserved.