@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateTrafficMirrorSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateTrafficMirrorSessionRequest>
NOOP
Constructor and Description |
---|
CreateTrafficMirrorSessionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateTrafficMirrorSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getDescription()
The description of the Traffic Mirror session.
|
Request<CreateTrafficMirrorSessionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getNetworkInterfaceId()
The ID of the source network interface.
|
Integer |
getPacketLength()
The number of bytes in each packet to mirror.
|
Integer |
getSessionNumber()
The session number determines the order in which sessions are evaluated when an interface is used by multiple
sessions.
|
List<TagSpecification> |
getTagSpecifications()
The tags to assign to a Traffic Mirror session.
|
String |
getTrafficMirrorFilterId()
The ID of the Traffic Mirror filter.
|
String |
getTrafficMirrorTargetId()
The ID of the Traffic Mirror target.
|
Integer |
getVirtualNetworkId()
The VXLAN ID for the Traffic Mirror session.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setDescription(String description)
The description of the Traffic Mirror session.
|
void |
setNetworkInterfaceId(String networkInterfaceId)
The ID of the source network interface.
|
void |
setPacketLength(Integer packetLength)
The number of bytes in each packet to mirror.
|
void |
setSessionNumber(Integer sessionNumber)
The session number determines the order in which sessions are evaluated when an interface is used by multiple
sessions.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to a Traffic Mirror session.
|
void |
setTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.
|
void |
setTrafficMirrorTargetId(String trafficMirrorTargetId)
The ID of the Traffic Mirror target.
|
void |
setVirtualNetworkId(Integer virtualNetworkId)
The VXLAN ID for the Traffic Mirror session.
|
String |
toString()
Returns a string representation of this object.
|
CreateTrafficMirrorSessionRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateTrafficMirrorSessionRequest |
withDescription(String description)
The description of the Traffic Mirror session.
|
CreateTrafficMirrorSessionRequest |
withNetworkInterfaceId(String networkInterfaceId)
The ID of the source network interface.
|
CreateTrafficMirrorSessionRequest |
withPacketLength(Integer packetLength)
The number of bytes in each packet to mirror.
|
CreateTrafficMirrorSessionRequest |
withSessionNumber(Integer sessionNumber)
The session number determines the order in which sessions are evaluated when an interface is used by multiple
sessions.
|
CreateTrafficMirrorSessionRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to a Traffic Mirror session.
|
CreateTrafficMirrorSessionRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to a Traffic Mirror session.
|
CreateTrafficMirrorSessionRequest |
withTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.
|
CreateTrafficMirrorSessionRequest |
withTrafficMirrorTargetId(String trafficMirrorTargetId)
The ID of the Traffic Mirror target.
|
CreateTrafficMirrorSessionRequest |
withVirtualNetworkId(Integer virtualNetworkId)
The VXLAN ID for the Traffic Mirror session.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setNetworkInterfaceId(String networkInterfaceId)
The ID of the source network interface.
networkInterfaceId
- The ID of the source network interface.public String getNetworkInterfaceId()
The ID of the source network interface.
public CreateTrafficMirrorSessionRequest withNetworkInterfaceId(String networkInterfaceId)
The ID of the source network interface.
networkInterfaceId
- The ID of the source network interface.public void setTrafficMirrorTargetId(String trafficMirrorTargetId)
The ID of the Traffic Mirror target.
trafficMirrorTargetId
- The ID of the Traffic Mirror target.public String getTrafficMirrorTargetId()
The ID of the Traffic Mirror target.
public CreateTrafficMirrorSessionRequest withTrafficMirrorTargetId(String trafficMirrorTargetId)
The ID of the Traffic Mirror target.
trafficMirrorTargetId
- The ID of the Traffic Mirror target.public void setTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.
trafficMirrorFilterId
- The ID of the Traffic Mirror filter.public String getTrafficMirrorFilterId()
The ID of the Traffic Mirror filter.
public CreateTrafficMirrorSessionRequest withTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.
trafficMirrorFilterId
- The ID of the Traffic Mirror filter.public void setPacketLength(Integer 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.
For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default PacketLength
will
be set to 8500. Valid values are 1-8500. Setting a PacketLength
greater than 8500 will result in an
error response.
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.
For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default PacketLength
will be set to 8500. Valid values are 1-8500. Setting a PacketLength
greater than 8500 will
result in an error response.
public Integer getPacketLength()
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.
For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default PacketLength
will
be set to 8500. Valid values are 1-8500. Setting a PacketLength
greater than 8500 will result in an
error response.
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.
For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default
PacketLength
will be set to 8500. Valid values are 1-8500. Setting a
PacketLength
greater than 8500 will result in an error response.
public CreateTrafficMirrorSessionRequest withPacketLength(Integer 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.
For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default PacketLength
will
be set to 8500. Valid values are 1-8500. Setting a PacketLength
greater than 8500 will result in an
error response.
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.
For sessions with Network Load Balancer (NLB) Traffic Mirror targets the default PacketLength
will be set to 8500. Valid values are 1-8500. Setting a PacketLength
greater than 8500 will
result in an error response.
public void setSessionNumber(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.
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.
public Integer getSessionNumber()
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.
Valid values are 1-32766.
public CreateTrafficMirrorSessionRequest withSessionNumber(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.
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.
public void setVirtualNetworkId(Integer 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.
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.public Integer getVirtualNetworkId()
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.
VirtualNetworkId
, an account-wide unique ID is chosen at random.public CreateTrafficMirrorSessionRequest withVirtualNetworkId(Integer 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.
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.public void setDescription(String description)
The description of the Traffic Mirror session.
description
- The description of the Traffic Mirror session.public String getDescription()
The description of the Traffic Mirror session.
public CreateTrafficMirrorSessionRequest withDescription(String description)
The description of the Traffic Mirror session.
description
- The description of the Traffic Mirror session.public List<TagSpecification> getTagSpecifications()
The tags to assign to a Traffic Mirror session.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to a Traffic Mirror session.
tagSpecifications
- The tags to assign to a Traffic Mirror session.public CreateTrafficMirrorSessionRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to assign to a Traffic Mirror session.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to assign to a Traffic Mirror session.public CreateTrafficMirrorSessionRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to assign to a Traffic Mirror session.
tagSpecifications
- The tags to assign to a Traffic Mirror session.public void setClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to
ensure idempotency.public String getClientToken()
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
public CreateTrafficMirrorSessionRequest withClientToken(String clientToken)
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more
information, see How to
ensure idempotency.public Request<CreateTrafficMirrorSessionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateTrafficMirrorSessionRequest>
public String toString()
toString
in class Object
Object.toString()
public CreateTrafficMirrorSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()