Class CfnTrafficMirrorSessionMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnTrafficMirrorSessionMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficMirrorSessionMixinProps>
- Enclosing interface:
CfnTrafficMirrorSessionMixinProps
@Stability(Stable)
public static final class CfnTrafficMirrorSessionMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficMirrorSessionMixinProps>
A builder for
CfnTrafficMirrorSessionMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnTrafficMirrorSessionMixinProps.getDescription()networkInterfaceId(String networkInterfaceId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getNetworkInterfaceId()Sets the value ofCfnTrafficMirrorSessionMixinProps.getOwnerId()packetLength(Number packetLength) Sets the value ofCfnTrafficMirrorSessionMixinProps.getPacketLength()sessionNumber(Number sessionNumber) Sets the value ofCfnTrafficMirrorSessionMixinProps.getSessionNumber()Sets the value ofCfnTrafficMirrorSessionMixinProps.getTags()trafficMirrorFilterId(String trafficMirrorFilterId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getTrafficMirrorFilterId()trafficMirrorTargetId(String trafficMirrorTargetId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getTrafficMirrorTargetId()virtualNetworkId(Number virtualNetworkId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getVirtualNetworkId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnTrafficMirrorSessionMixinProps.getDescription()- Parameters:
description- The description of the Traffic Mirror session.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The ID of the source network interface.- Returns:
this
-
ownerId
Sets the value ofCfnTrafficMirrorSessionMixinProps.getOwnerId()- Parameters:
ownerId- The ID of the account that owns the Traffic Mirror session.- Returns:
this
-
packetLength
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder packetLength(Number packetLength) Sets the value ofCfnTrafficMirrorSessionMixinProps.getPacketLength()- Parameters:
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
PacketLengthparameter to specify the number of bytes in each packet to mirror.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:
this
-
sessionNumber
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder sessionNumber(Number sessionNumber) Sets the value ofCfnTrafficMirrorSessionMixinProps.getSessionNumber()- 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:
this
-
tags
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnTrafficMirrorSessionMixinProps.getTags()- Parameters:
tags- The tags to assign to a Traffic Mirror session.- Returns:
this
-
trafficMirrorFilterId
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder trafficMirrorFilterId(String trafficMirrorFilterId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getTrafficMirrorFilterId()- Parameters:
trafficMirrorFilterId- The ID of the Traffic Mirror filter.- Returns:
this
-
trafficMirrorTargetId
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder trafficMirrorTargetId(String trafficMirrorTargetId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getTrafficMirrorTargetId()- Parameters:
trafficMirrorTargetId- The ID of the Traffic Mirror target.- Returns:
this
-
virtualNetworkId
@Stability(Stable) public CfnTrafficMirrorSessionMixinProps.Builder virtualNetworkId(Number virtualNetworkId) Sets the value ofCfnTrafficMirrorSessionMixinProps.getVirtualNetworkId()- Parameters:
virtualNetworkId- The VXLAN ID for the Traffic Mirror session. For more information about the VXLAN protocol, see RFC 7348 . If you do not specify aVirtualNetworkId, an account-wide unique ID is chosen at random.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrafficMirrorSessionMixinProps>- Returns:
- a new instance of
CfnTrafficMirrorSessionMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-