Interface TrafficMirrorFilterRule.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TrafficMirrorFilterRule.Builder,TrafficMirrorFilterRule>
,SdkBuilder<TrafficMirrorFilterRule.Builder,TrafficMirrorFilterRule>
,SdkPojo
- Enclosing class:
- TrafficMirrorFilterRule
public static interface TrafficMirrorFilterRule.Builder extends SdkPojo, CopyableBuilder<TrafficMirrorFilterRule.Builder,TrafficMirrorFilterRule>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description TrafficMirrorFilterRule.Builder
description(String description)
The description of the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
destinationCidrBlock(String destinationCidrBlock)
The destination CIDR block assigned to the Traffic Mirror rule.default TrafficMirrorFilterRule.Builder
destinationPortRange(Consumer<TrafficMirrorPortRange.Builder> destinationPortRange)
The destination port range assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
destinationPortRange(TrafficMirrorPortRange destinationPortRange)
The destination port range assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
protocol(Integer protocol)
The protocol assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
ruleAction(String ruleAction)
The action assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
ruleAction(TrafficMirrorRuleAction ruleAction)
The action assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
ruleNumber(Integer ruleNumber)
The rule number of the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
sourceCidrBlock(String sourceCidrBlock)
The source CIDR block assigned to the Traffic Mirror rule.default TrafficMirrorFilterRule.Builder
sourcePortRange(Consumer<TrafficMirrorPortRange.Builder> sourcePortRange)
The source port range assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
sourcePortRange(TrafficMirrorPortRange sourcePortRange)
The source port range assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
trafficDirection(String trafficDirection)
The traffic direction assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
trafficDirection(TrafficDirection trafficDirection)
The traffic direction assigned to the Traffic Mirror rule.TrafficMirrorFilterRule.Builder
trafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter that the rule is associated with.TrafficMirrorFilterRule.Builder
trafficMirrorFilterRuleId(String trafficMirrorFilterRuleId)
The ID of the Traffic Mirror 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, sdkFields
-
-
-
-
Method Detail
-
trafficMirrorFilterRuleId
TrafficMirrorFilterRule.Builder trafficMirrorFilterRuleId(String trafficMirrorFilterRuleId)
The ID of the Traffic Mirror rule.
- Parameters:
trafficMirrorFilterRuleId
- The ID of the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficMirrorFilterId
TrafficMirrorFilterRule.Builder trafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter that the rule is associated with.
- Parameters:
trafficMirrorFilterId
- The ID of the Traffic Mirror filter that the rule is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficDirection
TrafficMirrorFilterRule.Builder trafficDirection(String trafficDirection)
The traffic direction assigned to the Traffic Mirror rule.
- Parameters:
trafficDirection
- The traffic direction assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TrafficDirection
,TrafficDirection
-
trafficDirection
TrafficMirrorFilterRule.Builder trafficDirection(TrafficDirection trafficDirection)
The traffic direction assigned to the Traffic Mirror rule.
- Parameters:
trafficDirection
- The traffic direction assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TrafficDirection
,TrafficDirection
-
ruleNumber
TrafficMirrorFilterRule.Builder ruleNumber(Integer ruleNumber)
The rule number of the Traffic Mirror rule.
- Parameters:
ruleNumber
- The rule number of the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
TrafficMirrorFilterRule.Builder ruleAction(String ruleAction)
The action assigned to the Traffic Mirror rule.
- Parameters:
ruleAction
- The action assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TrafficMirrorRuleAction
,TrafficMirrorRuleAction
-
ruleAction
TrafficMirrorFilterRule.Builder ruleAction(TrafficMirrorRuleAction ruleAction)
The action assigned to the Traffic Mirror rule.
- Parameters:
ruleAction
- The action assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
TrafficMirrorRuleAction
,TrafficMirrorRuleAction
-
protocol
TrafficMirrorFilterRule.Builder protocol(Integer protocol)
The protocol assigned to the Traffic Mirror rule.
- Parameters:
protocol
- The protocol assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPortRange
TrafficMirrorFilterRule.Builder destinationPortRange(TrafficMirrorPortRange destinationPortRange)
The destination port range assigned to the Traffic Mirror rule.
- Parameters:
destinationPortRange
- The destination port range assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPortRange
default TrafficMirrorFilterRule.Builder destinationPortRange(Consumer<TrafficMirrorPortRange.Builder> destinationPortRange)
The destination port range assigned to the Traffic Mirror rule.
This is a convenience method that creates an instance of theTrafficMirrorPortRange.Builder
avoiding the need to create one manually viaTrafficMirrorPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationPortRange(TrafficMirrorPortRange)
.- Parameters:
destinationPortRange
- a consumer that will call methods onTrafficMirrorPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
destinationPortRange(TrafficMirrorPortRange)
-
sourcePortRange
TrafficMirrorFilterRule.Builder sourcePortRange(TrafficMirrorPortRange sourcePortRange)
The source port range assigned to the Traffic Mirror rule.
- Parameters:
sourcePortRange
- The source port range assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourcePortRange
default TrafficMirrorFilterRule.Builder sourcePortRange(Consumer<TrafficMirrorPortRange.Builder> sourcePortRange)
The source port range assigned to the Traffic Mirror rule.
This is a convenience method that creates an instance of theTrafficMirrorPortRange.Builder
avoiding the need to create one manually viaTrafficMirrorPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourcePortRange(TrafficMirrorPortRange)
.- Parameters:
sourcePortRange
- a consumer that will call methods onTrafficMirrorPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sourcePortRange(TrafficMirrorPortRange)
-
destinationCidrBlock
TrafficMirrorFilterRule.Builder destinationCidrBlock(String destinationCidrBlock)
The destination CIDR block assigned to the Traffic Mirror rule.
- Parameters:
destinationCidrBlock
- The destination CIDR block assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCidrBlock
TrafficMirrorFilterRule.Builder sourceCidrBlock(String sourceCidrBlock)
The source CIDR block assigned to the Traffic Mirror rule.
- Parameters:
sourceCidrBlock
- The source CIDR block assigned to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
TrafficMirrorFilterRule.Builder description(String description)
The description of the Traffic Mirror rule.
- Parameters:
description
- The description of the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-