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