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 SummaryModifier 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.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
trafficMirrorSessionIdThe 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.
 
- 
trafficMirrorTargetIdThe 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.
 
- 
trafficMirrorFilterIdThe 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.
 
- 
packetLengthThe 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 a- PacketLengthgreater than 8500 will result in an error response.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
sessionNumberThe 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.
 
- 
virtualNetworkIdThe 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.
 
- 
descriptionThe 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.
 
- 
removeFieldsWithStringsThe 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.
 
- 
removeFieldsWithStringsThe 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.
 
- 
removeFieldsModifyTrafficMirrorSessionRequest.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.
 
- 
removeFieldsThe 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.
 
- 
dryRunChecks 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 is- DryRunOperation. Otherwise, it is- UnauthorizedOperation.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
overrideConfigurationModifyTrafficMirrorSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationModifyTrafficMirrorSessionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-