Interface ModifyTrafficMirrorFilterRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyTrafficMirrorFilterRuleRequest.Builder,,ModifyTrafficMirrorFilterRuleRequest> Ec2Request.Builder,SdkBuilder<ModifyTrafficMirrorFilterRuleRequest.Builder,,ModifyTrafficMirrorFilterRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- ModifyTrafficMirrorFilterRuleRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) The description to assign to 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 ports that are associated with the Traffic Mirror rule.destinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange) The destination ports that are associated with the Traffic Mirror rule.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 TCP, to assign to the Traffic Mirror rule.removeFields(Collection<TrafficMirrorFilterRuleField> removeFields) The properties that you want to remove from the Traffic Mirror filter rule.removeFields(TrafficMirrorFilterRuleField... removeFields) The properties that you want to remove from the Traffic Mirror filter rule.removeFieldsWithStrings(String... removeFields) The properties that you want to remove from the Traffic Mirror filter rule.removeFieldsWithStrings(Collection<String> removeFields) The properties that you want to remove from the Traffic Mirror filter rule.ruleAction(String ruleAction) The action to assign to the rule.ruleAction(TrafficMirrorRuleAction ruleAction) The action to assign to the rule.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 port range to assign to the Traffic Mirror rule.sourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange) The port range to assign to the Traffic Mirror rule.trafficDirection(String trafficDirection) The type of traffic to assign to the rule.trafficDirection(TrafficDirection trafficDirection) The type of traffic to assign to the rule.trafficMirrorFilterRuleId(String trafficMirrorFilterRuleId) The ID of the Traffic Mirror rule.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
-
trafficMirrorFilterRuleId
ModifyTrafficMirrorFilterRuleRequest.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.
-
trafficDirection
The type of traffic to assign to the rule.
- Parameters:
trafficDirection- The type of traffic to assign to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
trafficDirection
The type of traffic to assign to the rule.
- Parameters:
trafficDirection- The type of traffic to assign to the rule.- 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 assign to the rule.
- Parameters:
ruleAction- The action to assign to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleAction
The action to assign to the rule.
- Parameters:
ruleAction- The action to assign to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
destinationPortRange
ModifyTrafficMirrorFilterRuleRequest.Builder destinationPortRange(TrafficMirrorPortRangeRequest destinationPortRange) The destination ports that are associated with the Traffic Mirror rule.
- Parameters:
destinationPortRange- The destination ports that are associated with the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
destinationPortRange
default ModifyTrafficMirrorFilterRuleRequest.Builder destinationPortRange(Consumer<TrafficMirrorPortRangeRequest.Builder> destinationPortRange) The destination ports that are associated with the Traffic Mirror rule.
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
ModifyTrafficMirrorFilterRuleRequest.Builder sourcePortRange(TrafficMirrorPortRangeRequest sourcePortRange) The port range to assign to the Traffic Mirror rule.
- Parameters:
sourcePortRange- The port range to assign to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourcePortRange
default ModifyTrafficMirrorFilterRuleRequest.Builder sourcePortRange(Consumer<TrafficMirrorPortRangeRequest.Builder> sourcePortRange) The port range to assign to the Traffic Mirror rule.
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 TCP, to assign to the Traffic Mirror rule.
- Parameters:
protocol- The protocol, for example TCP, to assign to the Traffic Mirror rule.- 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 to assign to the Traffic Mirror rule.
- Parameters:
description- The description to assign to the Traffic Mirror rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeFieldsWithStrings
ModifyTrafficMirrorFilterRuleRequest.Builder removeFieldsWithStrings(Collection<String> removeFields) The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Parameters:
removeFields- The properties that you want to remove from the Traffic Mirror filter rule.When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeFieldsWithStrings
The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Parameters:
removeFields- The properties that you want to remove from the Traffic Mirror filter rule.When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeFields
ModifyTrafficMirrorFilterRuleRequest.Builder removeFields(Collection<TrafficMirrorFilterRuleField> removeFields) The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Parameters:
removeFields- The properties that you want to remove from the Traffic Mirror filter rule.When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeFields
ModifyTrafficMirrorFilterRuleRequest.Builder removeFields(TrafficMirrorFilterRuleField... removeFields) The properties that you want to remove from the Traffic Mirror filter rule.
When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- Parameters:
removeFields- The properties that you want to remove from the Traffic Mirror filter rule.When you remove a property from a Traffic Mirror filter rule, the property is set to the default.
- 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.
-
overrideConfiguration
ModifyTrafficMirrorFilterRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyTrafficMirrorFilterRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-