Interface CreateTrafficMirrorFilterRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateTrafficMirrorFilterRuleRequest.Builder,
,CreateTrafficMirrorFilterRuleRequest> Ec2Request.Builder
,SdkBuilder<CreateTrafficMirrorFilterRuleRequest.Builder,
,CreateTrafficMirrorFilterRuleRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateTrafficMirrorFilterRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.description
(String description) The description of the Traffic Mirror rule.destinationCidrBlock
(String destinationCidrBlock) The destination CIDR block to assign to the Traffic Mirror rule.destinationPortRange
(Consumer<TrafficMirrorPortRangeRequest.Builder> destinationPortRange) The destination port range.destinationPortRange
(TrafficMirrorPortRangeRequest destinationPortRange) The destination port range.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The protocol, for example UDP, to assign to the Traffic Mirror rule.ruleAction
(String ruleAction) The action to take on the filtered traffic.ruleAction
(TrafficMirrorRuleAction ruleAction) The action to take on the filtered traffic.ruleNumber
(Integer ruleNumber) The number of the Traffic Mirror rule.sourceCidrBlock
(String sourceCidrBlock) The source CIDR block to assign to the Traffic Mirror rule.sourcePortRange
(Consumer<TrafficMirrorPortRangeRequest.Builder> sourcePortRange) The source port range.sourcePortRange
(TrafficMirrorPortRangeRequest sourcePortRange) The source port range.trafficDirection
(String trafficDirection) The type of traffic.trafficDirection
(TrafficDirection trafficDirection) The type of traffic.trafficMirrorFilterId
(String trafficMirrorFilterId) The ID of the filter that this rule is associated with.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
trafficMirrorFilterId
The ID of the filter that this rule is associated with.
- Parameters:
trafficMirrorFilterId
- The ID of the filter that this rule is associated with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficDirection
The type of traffic.
- Parameters:
trafficDirection
- The type of traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trafficDirection
The type of traffic.
- Parameters:
trafficDirection
- The type of traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleNumber
The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.
- Parameters:
ruleNumber
- The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleAction
The action to take on the filtered traffic.
- Parameters:
ruleAction
- The action to take on the filtered traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleAction
The action to take on the filtered traffic.
- Parameters:
ruleAction
- The action to take on the filtered traffic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationPortRange
CreateTrafficMirrorFilterRuleRequest.Builder destinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange) The destination port range.
- Parameters:
destinationPortRange
- The destination port range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPortRange
default CreateTrafficMirrorFilterRuleRequest.Builder destinationPortRange(Consumer<TrafficMirrorPortRangeRequest.Builder> destinationPortRange) The destination port range.
This is a convenience method that creates an instance of theTrafficMirrorPortRangeRequest.Builder
avoiding the need to create one manually viaTrafficMirrorPortRangeRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todestinationPortRange(TrafficMirrorPortRangeRequest)
.- Parameters:
destinationPortRange
- a consumer that will call methods onTrafficMirrorPortRangeRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourcePortRange
CreateTrafficMirrorFilterRuleRequest.Builder sourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange) The source port range.
- Parameters:
sourcePortRange
- The source port range.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourcePortRange
default CreateTrafficMirrorFilterRuleRequest.Builder sourcePortRange(Consumer<TrafficMirrorPortRangeRequest.Builder> sourcePortRange) The source port range.
This is a convenience method that creates an instance of theTrafficMirrorPortRangeRequest.Builder
avoiding the need to create one manually viaTrafficMirrorPortRangeRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourcePortRange(TrafficMirrorPortRangeRequest)
.- Parameters:
sourcePortRange
- a consumer that will call methods onTrafficMirrorPortRangeRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
protocol
The protocol, for example UDP, to assign to the Traffic Mirror rule.
For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
- Parameters:
protocol
- The protocol, for example UDP, to assign to the Traffic Mirror rule.For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationCidrBlock
The destination CIDR block to assign to the Traffic Mirror rule.
- Parameters:
destinationCidrBlock
- The destination CIDR block to assign to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceCidrBlock
The source CIDR block to assign to the Traffic Mirror rule.
- Parameters:
sourceCidrBlock
- The source CIDR block to assign to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
- Parameters:
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateTrafficMirrorFilterRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTrafficMirrorFilterRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-