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