@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyTrafficMirrorSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyTrafficMirrorSessionRequest>
NOOP
Constructor and Description |
---|
ModifyTrafficMirrorSessionRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyTrafficMirrorSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
The description to assign to the Traffic Mirror session.
|
Request<ModifyTrafficMirrorSessionRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Integer |
getPacketLength()
The number of bytes in each packet to mirror.
|
List<String> |
getRemoveFields()
The properties that you want to remove from the Traffic Mirror session.
|
Integer |
getSessionNumber()
The session number determines the order in which sessions are evaluated when an interface is used by multiple
sessions.
|
String |
getTrafficMirrorFilterId()
The ID of the Traffic Mirror filter.
|
String |
getTrafficMirrorSessionId()
The ID of the Traffic Mirror session.
|
String |
getTrafficMirrorTargetId()
The Traffic Mirror target.
|
Integer |
getVirtualNetworkId()
The virtual network ID of the Traffic Mirror session.
|
int |
hashCode() |
void |
setDescription(String description)
The description to assign to the Traffic Mirror session.
|
void |
setPacketLength(Integer packetLength)
The number of bytes in each packet to mirror.
|
void |
setRemoveFields(Collection<String> removeFields)
The properties that you want to remove from the Traffic Mirror session.
|
void |
setSessionNumber(Integer sessionNumber)
The session number determines the order in which sessions are evaluated when an interface is used by multiple
sessions.
|
void |
setTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.
|
void |
setTrafficMirrorSessionId(String trafficMirrorSessionId)
The ID of the Traffic Mirror session.
|
void |
setTrafficMirrorTargetId(String trafficMirrorTargetId)
The Traffic Mirror target.
|
void |
setVirtualNetworkId(Integer virtualNetworkId)
The virtual network ID of the Traffic Mirror session.
|
String |
toString()
Returns a string representation of this object.
|
ModifyTrafficMirrorSessionRequest |
withDescription(String description)
The description to assign to the Traffic Mirror session.
|
ModifyTrafficMirrorSessionRequest |
withPacketLength(Integer packetLength)
The number of bytes in each packet to mirror.
|
ModifyTrafficMirrorSessionRequest |
withRemoveFields(Collection<String> removeFields)
The properties that you want to remove from the Traffic Mirror session.
|
ModifyTrafficMirrorSessionRequest |
withRemoveFields(String... removeFields)
The properties that you want to remove from the Traffic Mirror session.
|
ModifyTrafficMirrorSessionRequest |
withRemoveFields(TrafficMirrorSessionField... removeFields)
The properties that you want to remove from the Traffic Mirror session.
|
ModifyTrafficMirrorSessionRequest |
withSessionNumber(Integer sessionNumber)
The session number determines the order in which sessions are evaluated when an interface is used by multiple
sessions.
|
ModifyTrafficMirrorSessionRequest |
withTrafficMirrorFilterId(String trafficMirrorFilterId)
The ID of the Traffic Mirror filter.
|
ModifyTrafficMirrorSessionRequest |
withTrafficMirrorSessionId(String trafficMirrorSessionId)
The ID of the Traffic Mirror session.
|
ModifyTrafficMirrorSessionRequest |
withTrafficMirrorTargetId(String trafficMirrorTargetId)
The Traffic Mirror target.
|
ModifyTrafficMirrorSessionRequest |
withVirtualNetworkId(Integer virtualNetworkId)
The virtual network ID of 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 setTrafficMirrorSessionId(String trafficMirrorSessionId)
The ID of the Traffic Mirror session.
trafficMirrorSessionId
- The ID of the Traffic Mirror session.public String getTrafficMirrorSessionId()
The ID of the Traffic Mirror session.
public ModifyTrafficMirrorSessionRequest withTrafficMirrorSessionId(String trafficMirrorSessionId)
The ID of the Traffic Mirror session.
trafficMirrorSessionId
- The ID of the Traffic Mirror session.public void setTrafficMirrorTargetId(String trafficMirrorTargetId)
The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
trafficMirrorTargetId
- The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering
connection with the source.public String getTrafficMirrorTargetId()
The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
public ModifyTrafficMirrorSessionRequest withTrafficMirrorTargetId(String trafficMirrorTargetId)
The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering connection with the source.
trafficMirrorTargetId
- The Traffic Mirror target. The target must be in the same VPC as the source, or have a VPC peering
connection with the source.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 ModifyTrafficMirrorSessionRequest 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. 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.
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. 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.
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. 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.
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.
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 ModifyTrafficMirrorSessionRequest withPacketLength(Integer packetLength)
The number of bytes in each packet to mirror. These are 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.
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. 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.
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 ModifyTrafficMirrorSessionRequest 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 virtual network ID of the Traffic Mirror session.
virtualNetworkId
- The virtual network ID of the Traffic Mirror session.public Integer getVirtualNetworkId()
The virtual network ID of the Traffic Mirror session.
public ModifyTrafficMirrorSessionRequest withVirtualNetworkId(Integer virtualNetworkId)
The virtual network ID of the Traffic Mirror session.
virtualNetworkId
- The virtual network ID of the Traffic Mirror session.public void setDescription(String description)
The description to assign to the Traffic Mirror session.
description
- The description to assign to the Traffic Mirror session.public String getDescription()
The description to assign to the Traffic Mirror session.
public ModifyTrafficMirrorSessionRequest withDescription(String description)
The description to assign to the Traffic Mirror session.
description
- The description to assign to the Traffic Mirror session.public List<String> getRemoveFields()
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
When you remove a property from a Traffic Mirror session, the property is set to the default.
TrafficMirrorSessionField
public void setRemoveFields(Collection<String> removeFields)
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
removeFields
- The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
TrafficMirrorSessionField
public ModifyTrafficMirrorSessionRequest withRemoveFields(String... removeFields)
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
NOTE: This method appends the values to the existing list (if any). Use
setRemoveFields(java.util.Collection)
or withRemoveFields(java.util.Collection)
if you want to
override the existing values.
removeFields
- The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
TrafficMirrorSessionField
public ModifyTrafficMirrorSessionRequest withRemoveFields(Collection<String> removeFields)
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
removeFields
- The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
TrafficMirrorSessionField
public ModifyTrafficMirrorSessionRequest withRemoveFields(TrafficMirrorSessionField... removeFields)
The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
removeFields
- The properties that you want to remove from the Traffic Mirror session.
When you remove a property from a Traffic Mirror session, the property is set to the default.
TrafficMirrorSessionField
public Request<ModifyTrafficMirrorSessionRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyTrafficMirrorSessionRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyTrafficMirrorSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()