Interface TrafficMirrorSession.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<TrafficMirrorSession.Builder,TrafficMirrorSession>
,SdkBuilder<TrafficMirrorSession.Builder,TrafficMirrorSession>
,SdkPojo
- Enclosing class:
- TrafficMirrorSession
public static interface TrafficMirrorSession.Builder extends SdkPojo, CopyableBuilder<TrafficMirrorSession.Builder,TrafficMirrorSession>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TrafficMirrorSession.Builder
description(String description)
The description of the Traffic Mirror session.TrafficMirrorSession.Builder
networkInterfaceId(String networkInterfaceId)
The ID of the Traffic Mirror session's network interface.TrafficMirrorSession.Builder
ownerId(String ownerId)
The ID of the account that owns the Traffic Mirror session.TrafficMirrorSession.Builder
packetLength(Integer packetLength)
The number of bytes in each packet to mirror.TrafficMirrorSession.Builder
sessionNumber(Integer sessionNumber)
The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions.TrafficMirrorSession.Builder
tags(Collection<Tag> tags)
The tags assigned to the Traffic Mirror session.TrafficMirrorSession.Builder
tags(Consumer<Tag.Builder>... tags)
The tags assigned to the Traffic Mirror session.TrafficMirrorSession.Builder
tags(Tag... tags)
The tags assigned to the Traffic Mirror session.TrafficMirrorSession.Builder
trafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.TrafficMirrorSession.Builder
trafficMirrorSessionId(String trafficMirrorSessionId)
The ID for the Traffic Mirror session.TrafficMirrorSession.Builder
trafficMirrorTargetId(String trafficMirrorTargetId)
The ID of the Traffic Mirror target.TrafficMirrorSession.Builder
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 Detail
-
trafficMirrorSessionId
TrafficMirrorSession.Builder trafficMirrorSessionId(String 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
TrafficMirrorSession.Builder trafficMirrorTargetId(String 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
TrafficMirrorSession.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.
-
networkInterfaceId
TrafficMirrorSession.Builder networkInterfaceId(String 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
TrafficMirrorSession.Builder ownerId(String 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
TrafficMirrorSession.Builder packetLength(Integer 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
TrafficMirrorSession.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
TrafficMirrorSession.Builder virtualNetworkId(Integer 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
TrafficMirrorSession.Builder description(String 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
TrafficMirrorSession.Builder tags(Collection<Tag> 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
TrafficMirrorSession.Builder tags(Tag... 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
TrafficMirrorSession.Builder tags(Consumer<Tag.Builder>... 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 to#tags(List
.) - 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:
#tags(java.util.Collection
)
-
-