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) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) 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.tagSpecifications(Collection<TagSpecification> tagSpecifications) Traffic Mirroring tags specifications.tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Traffic Mirroring tags specifications.tagSpecifications(TagSpecification... tagSpecifications) Traffic Mirroring tags specifications.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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, 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.Builderavoiding the need to create one manually viaTrafficMirrorPortRangeRequest.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaTrafficMirrorPortRangeRequest.builder().When the
Consumercompletes,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.
-
tagSpecifications
CreateTrafficMirrorFilterRuleRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) Traffic Mirroring tags specifications.
- Parameters:
tagSpecifications- Traffic Mirroring tags specifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateTrafficMirrorFilterRuleRequest.Builder tagSpecifications(TagSpecification... tagSpecifications) Traffic Mirroring tags specifications.
- Parameters:
tagSpecifications- Traffic Mirroring tags specifications.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateTrafficMirrorFilterRuleRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) Traffic Mirroring tags specifications.
This is a convenience method that creates an instance of theTagSpecification.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totagSpecifications(List<TagSpecification>).- Parameters:
tagSpecifications- a consumer that will call methods onTagSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateTrafficMirrorFilterRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateTrafficMirrorFilterRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-