@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TrafficMirrorPortRangeRequest extends Object implements Serializable, Cloneable
Information about the Traffic Mirror filter rule port range.
Constructor and Description |
---|
TrafficMirrorPortRangeRequest() |
Modifier and Type | Method and Description |
---|---|
TrafficMirrorPortRangeRequest |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The first port in the Traffic Mirror port range.
|
Integer |
getToPort()
The last port in the Traffic Mirror port range.
|
int |
hashCode() |
void |
setFromPort(Integer fromPort)
The first port in the Traffic Mirror port range.
|
void |
setToPort(Integer toPort)
The last port in the Traffic Mirror port range.
|
String |
toString()
Returns a string representation of this object.
|
TrafficMirrorPortRangeRequest |
withFromPort(Integer fromPort)
The first port in the Traffic Mirror port range.
|
TrafficMirrorPortRangeRequest |
withToPort(Integer toPort)
The last port in the Traffic Mirror port range.
|
public void setFromPort(Integer fromPort)
The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.
fromPort
- The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.public Integer getFromPort()
The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.
public TrafficMirrorPortRangeRequest withFromPort(Integer fromPort)
The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.
fromPort
- The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.public void setToPort(Integer toPort)
The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.
toPort
- The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.public Integer getToPort()
The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.
public TrafficMirrorPortRangeRequest withToPort(Integer toPort)
The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.
toPort
- The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.public String toString()
toString
in class Object
Object.toString()
public TrafficMirrorPortRangeRequest clone()
Copyright © 2023. All rights reserved.