public static final class CfnTrafficMirrorSessionProps.Builder
extends java.lang.Object
CfnTrafficMirrorSessionProps
Constructor and Description |
---|
Builder() |
public CfnTrafficMirrorSessionProps.Builder networkInterfaceId(java.lang.String networkInterfaceId)
CfnTrafficMirrorSessionProps.getNetworkInterfaceId()
networkInterfaceId
- The ID of the source network interface. This parameter is required.this
public CfnTrafficMirrorSessionProps.Builder sessionNumber(java.lang.Number sessionNumber)
CfnTrafficMirrorSessionProps.getSessionNumber()
sessionNumber
- The session number determines the order in which sessions are evaluated when an interface is used by multiple sessions. This parameter is required.
The first session with a matching filter is the one that mirrors the packets.
Valid values are 1-32766.
this
public CfnTrafficMirrorSessionProps.Builder trafficMirrorFilterId(java.lang.String trafficMirrorFilterId)
CfnTrafficMirrorSessionProps.getTrafficMirrorFilterId()
trafficMirrorFilterId
- The ID of the Traffic Mirror filter. This parameter is required.this
public CfnTrafficMirrorSessionProps.Builder trafficMirrorTargetId(java.lang.String trafficMirrorTargetId)
CfnTrafficMirrorSessionProps.getTrafficMirrorTargetId()
trafficMirrorTargetId
- The ID of the Traffic Mirror target. This parameter is required.this
public CfnTrafficMirrorSessionProps.Builder description(java.lang.String description)
CfnTrafficMirrorSessionProps.getDescription()
description
- The description of the Traffic Mirror session.this
public CfnTrafficMirrorSessionProps.Builder packetLength(java.lang.Number packetLength)
CfnTrafficMirrorSessionProps.getPacketLength()
packetLength
- The number of bytes in each packet to mirror.
These are bytes after the VXLAN header. Do not specify this parameter when you want to mirror the entire packet. To mirror a subset of the packet, set this to the length (in bytes) that you want 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.
If you do not want to mirror the entire packet, use the PacketLength
parameter to specify the number of bytes in each packet to mirror.
this
public CfnTrafficMirrorSessionProps.Builder tags(java.util.List<? extends CfnTag> tags)
CfnTrafficMirrorSessionProps.getTags()
tags
- The tags to assign to a Traffic Mirror session.this
public CfnTrafficMirrorSessionProps.Builder virtualNetworkId(java.lang.Number virtualNetworkId)
CfnTrafficMirrorSessionProps.getVirtualNetworkId()
virtualNetworkId
- The VXLAN ID for the Traffic Mirror session.
For more information about the VXLAN protocol, see RFC 7348 . If you do not specify a VirtualNetworkId
, an account-wide unique id is chosen at random.this
public CfnTrafficMirrorSessionProps build()
CfnTrafficMirrorSessionProps
java.lang.NullPointerException
- if any required attribute was not provided