Interface TransitGatewayPolicyRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TransitGatewayPolicyRule.Builder,,TransitGatewayPolicyRule> SdkBuilder<TransitGatewayPolicyRule.Builder,,TransitGatewayPolicyRule> SdkPojo
- Enclosing class:
TransitGatewayPolicyRule
@Mutable
@NotThreadSafe
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 destination port or port range for the transit gateway policy rule.default TransitGatewayPolicyRule.BuilderThe 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 source port or port range for the transit gateway policy rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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 source port or port range for the transit gateway policy rule.
- Parameters:
sourcePortRange- The source port or port range for the transit gateway policy rule.- 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 destination port or port range for the transit gateway policy rule.
- Parameters:
destinationPortRange- The destination port or port range for the transit gateway policy rule.- 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.Builderavoiding the need to create one manually viaTransitGatewayPolicyRuleMetaData.builder().When the
Consumercompletes,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:
-