Interface ModifyTrafficMirrorSessionRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ModifyTrafficMirrorSessionRequest.Builder,
,ModifyTrafficMirrorSessionRequest> Ec2Request.Builder
,SdkBuilder<ModifyTrafficMirrorSessionRequest.Builder,
,ModifyTrafficMirrorSessionRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ModifyTrafficMirrorSessionRequest
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description to assign to the Traffic Mirror session.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.packetLength
(Integer packetLength) The number of bytes in each packet to mirror.removeFields
(Collection<TrafficMirrorSessionField> removeFields) The properties that you want to remove from the Traffic Mirror session.removeFields
(TrafficMirrorSessionField... removeFields) The properties that you want to remove from the Traffic Mirror session.removeFieldsWithStrings
(String... removeFields) The properties that you want to remove from the Traffic Mirror session.removeFieldsWithStrings
(Collection<String> removeFields) The properties that you want to remove from the Traffic Mirror session.sessionNumber
(Integer sessionNumber) The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions.trafficMirrorFilterId
(String trafficMirrorFilterId) The ID of the Traffic Mirror filter.trafficMirrorSessionId
(String trafficMirrorSessionId) The ID of the Traffic Mirror session.trafficMirrorTargetId
(String trafficMirrorTargetId) The Traffic Mirror target.virtualNetworkId
(Integer virtualNetworkId) The virtual network ID of the Traffic Mirror session.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
-
trafficMirrorSessionId
The ID of the Traffic Mirror session.
- Parameters:
trafficMirrorSessionId
- The ID of the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficMirrorTargetId
The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
- Parameters:
trafficMirrorTargetId
- The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficMirrorFilterId
The ID of the Traffic Mirror filter.
- Parameters:
trafficMirrorFilterId
- The ID of the Traffic Mirror filter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packetLength
The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet.
For sessions with Network Load Balancer (NLB) traffic mirror targets, the default
PacketLength
will be set to 8500. Valid values are 1-8500. Setting aPacketLength
greater than 8500 will result in an error response.- Parameters:
packetLength
- The number of bytes in each packet to mirror. These are bytes after the VXLAN header. To mirror a subset, set this to the length (in bytes) to mirror. For example, if you set this value to 100, then the first 100 bytes that meet the filter criteria are copied to the target. Do not specify this parameter when you want to mirror the entire packet.For sessions with Network Load Balancer (NLB) traffic mirror targets, the default
PacketLength
will be set to 8500. Valid values are 1-8500. Setting aPacketLength
greater than 8500 will result in an error response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionNumber
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
- Parameters:
sessionNumber
- The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. The first session with a matching filter is the one that mirrors the packets.Valid values are 1-32766.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualNetworkId
The virtual network ID of the Traffic Mirror session.
- Parameters:
virtualNetworkId
- The virtual network ID of the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description to assign to the Traffic Mirror session.
- Parameters:
description
- The description to assign to the Traffic Mirror session.- 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 session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
- Parameters:
removeFields
- The properties that you want to remove from the Traffic Mirror session.When you remove a property from a Traffic Mirror session, 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 session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
- Parameters:
removeFields
- The properties that you want to remove from the Traffic Mirror session.When you remove a property from a Traffic Mirror session, the property is set to the default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeFields
ModifyTrafficMirrorSessionRequest.Builder removeFields(Collection<TrafficMirrorSessionField> removeFields) The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
- Parameters:
removeFields
- The properties that you want to remove from the Traffic Mirror session.When you remove a property from a Traffic Mirror session, the property is set to the default.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeFields
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
- Parameters:
removeFields
- The properties that you want to remove from the Traffic Mirror session.When you remove a property from a Traffic Mirror session, 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
ModifyTrafficMirrorSessionRequest.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
ModifyTrafficMirrorSessionRequest.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.
-