Interface TransitGatewayRequestPolicyRule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<TransitGatewayRequestPolicyRule.Builder,,TransitGatewayRequestPolicyRule> SdkBuilder<TransitGatewayRequestPolicyRule.Builder,,TransitGatewayRequestPolicyRule> SdkPojo
- Enclosing class:
TransitGatewayRequestPolicyRule
-
Method Summary
Modifier and TypeMethodDescriptiondestinationCidrBlock(String destinationCidrBlock) The destination CIDR block for the policy rule.destinationPortRange(String destinationPortRange) The destination port or port range for the policy rule.The metadata key-value pair for the policy rule.The metadata key-value pair for the policy rule.The protocol for the policy rule.sourceCidrBlock(String sourceCidrBlock) The source CIDR block for the policy rule.sourcePortRange(String sourcePortRange) The source port or port range for the 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 policy rule.
- Parameters:
sourceCidrBlock- The source CIDR block for the 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 policy rule. You can specify a port range only when
Protocolis6(TCP) or17(UDP); for all other protocols, this value must be*.- Parameters:
sourcePortRange- The source port or port range for the policy rule. You can specify a port range only whenProtocolis6(TCP) or17(UDP); for all other protocols, this value must be*.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationCidrBlock
The destination CIDR block for the policy rule.
- Parameters:
destinationCidrBlock- The destination CIDR block for the 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 policy rule. You can specify a port range only when
Protocolis6(TCP) or17(UDP); for all other protocols, this value must be*.- Parameters:
destinationPortRange- The destination port or port range for the policy rule. You can specify a port range only whenProtocolis6(TCP) or17(UDP); for all other protocols, this value must be*.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
protocol
The protocol for the policy rule. Valid values are
1(ICMP),6(TCP),17(UDP),47(GRE), or*for all protocols.- Parameters:
protocol- The protocol for the policy rule. Valid values are1(ICMP),6(TCP),17(UDP),47(GRE), or*for all protocols.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metaData
The metadata key-value pair for the policy rule.
- Parameters:
metaData- The metadata key-value pair for the policy rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metaData
default TransitGatewayRequestPolicyRule.Builder metaData(Consumer<TransitGatewayRequestPolicyRuleMetaData.Builder> metaData) The metadata key-value pair for the policy rule.
This is a convenience method that creates an instance of theTransitGatewayRequestPolicyRuleMetaData.Builderavoiding the need to create one manually viaTransitGatewayRequestPolicyRuleMetaData.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometaData(TransitGatewayRequestPolicyRuleMetaData).- Parameters:
metaData- a consumer that will call methods onTransitGatewayRequestPolicyRuleMetaData.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-