Interface ModifyTrafficMirrorSessionRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyTrafficMirrorSessionRequest.Builder,ModifyTrafficMirrorSessionRequest>,Ec2Request.Builder,SdkBuilder<ModifyTrafficMirrorSessionRequest.Builder,ModifyTrafficMirrorSessionRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ModifyTrafficMirrorSessionRequest
public static interface ModifyTrafficMirrorSessionRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyTrafficMirrorSessionRequest.Builder,ModifyTrafficMirrorSessionRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModifyTrafficMirrorSessionRequest.Builderdescription(String description)The description to assign to the Traffic Mirror session.ModifyTrafficMirrorSessionRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.ModifyTrafficMirrorSessionRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ModifyTrafficMirrorSessionRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)ModifyTrafficMirrorSessionRequest.BuilderpacketLength(Integer packetLength)The number of bytes in each packet to mirror.ModifyTrafficMirrorSessionRequest.BuilderremoveFields(Collection<TrafficMirrorSessionField> removeFields)The properties that you want to remove from the Traffic Mirror session.ModifyTrafficMirrorSessionRequest.BuilderremoveFields(TrafficMirrorSessionField... removeFields)The properties that you want to remove from the Traffic Mirror session.ModifyTrafficMirrorSessionRequest.BuilderremoveFieldsWithStrings(String... removeFields)The properties that you want to remove from the Traffic Mirror session.ModifyTrafficMirrorSessionRequest.BuilderremoveFieldsWithStrings(Collection<String> removeFields)The properties that you want to remove from the Traffic Mirror session.ModifyTrafficMirrorSessionRequest.BuildersessionNumber(Integer sessionNumber)The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions.ModifyTrafficMirrorSessionRequest.BuildertrafficMirrorFilterId(String trafficMirrorFilterId)The ID of the Traffic Mirror filter.ModifyTrafficMirrorSessionRequest.BuildertrafficMirrorSessionId(String trafficMirrorSessionId)The ID of the Traffic Mirror session.ModifyTrafficMirrorSessionRequest.BuildertrafficMirrorTargetId(String trafficMirrorTargetId)The Traffic Mirror target.ModifyTrafficMirrorSessionRequest.BuildervirtualNetworkId(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 Detail
-
trafficMirrorSessionId
ModifyTrafficMirrorSessionRequest.Builder trafficMirrorSessionId(String 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
ModifyTrafficMirrorSessionRequest.Builder trafficMirrorTargetId(String 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
ModifyTrafficMirrorSessionRequest.Builder trafficMirrorFilterId(String 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
ModifyTrafficMirrorSessionRequest.Builder packetLength(Integer 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
PacketLengthwill be set to 8500. Valid values are 1-8500. Setting aPacketLengthgreater 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
PacketLengthwill be set to 8500. Valid values are 1-8500. Setting aPacketLengthgreater than 8500 will result in an error response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionNumber
ModifyTrafficMirrorSessionRequest.Builder sessionNumber(Integer 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
ModifyTrafficMirrorSessionRequest.Builder virtualNetworkId(Integer 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
ModifyTrafficMirrorSessionRequest.Builder description(String 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
ModifyTrafficMirrorSessionRequest.Builder removeFieldsWithStrings(Collection<String> 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.
-
removeFieldsWithStrings
ModifyTrafficMirrorSessionRequest.Builder removeFieldsWithStrings(String... 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
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
ModifyTrafficMirrorSessionRequest.Builder removeFields(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.
-
dryRun
ModifyTrafficMirrorSessionRequest.Builder dryRun(Boolean 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)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyTrafficMirrorSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-