Interface TrafficMirrorSession.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<TrafficMirrorSession.Builder,
,TrafficMirrorSession> SdkBuilder<TrafficMirrorSession.Builder,
,TrafficMirrorSession> SdkPojo
- Enclosing class:
TrafficMirrorSession
-
Method Summary
Modifier and TypeMethodDescriptiondescription
(String description) The description of the Traffic Mirror session.networkInterfaceId
(String networkInterfaceId) The ID of the Traffic Mirror session's network interface.The ID of the account that owns the Traffic Mirror session.packetLength
(Integer packetLength) The number of bytes in each packet to mirror.sessionNumber
(Integer sessionNumber) The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions.tags
(Collection<Tag> tags) The tags assigned to the Traffic Mirror session.tags
(Consumer<Tag.Builder>... tags) The tags assigned to the Traffic Mirror session.The tags assigned to the Traffic Mirror session.trafficMirrorFilterId
(String trafficMirrorFilterId) The ID of the Traffic Mirror filter.trafficMirrorSessionId
(String trafficMirrorSessionId) The ID for the Traffic Mirror session.trafficMirrorTargetId
(String trafficMirrorTargetId) The ID of the Traffic Mirror target.virtualNetworkId
(Integer virtualNetworkId) The virtual network ID associated with the Traffic Mirror session.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
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 for the Traffic Mirror session.
- Parameters:
trafficMirrorSessionId
- The ID for the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficMirrorTargetId
The ID of the Traffic Mirror target.
- Parameters:
trafficMirrorTargetId
- The ID of the Traffic Mirror target.- 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.
-
networkInterfaceId
The ID of the Traffic Mirror session's network interface.
- Parameters:
networkInterfaceId
- The ID of the Traffic Mirror session's network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The ID of the account that owns the Traffic Mirror session.
- Parameters:
ownerId
- The ID of the account that owns the Traffic Mirror session.- 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 the 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
- Parameters:
packetLength
- The number of bytes in each packet to mirror. These are the 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- 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 associated with the Traffic Mirror session.
- Parameters:
virtualNetworkId
- The virtual network ID associated with the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
The description of the Traffic Mirror session.
- Parameters:
description
- The description of the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Traffic Mirror session.
- Parameters:
tags
- The tags assigned to the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Traffic Mirror session.
- Parameters:
tags
- The tags assigned to the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
The tags assigned to the Traffic Mirror session.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-