Class PortRange
java.lang.Object
com.amazonaws.services.ec2.model.PortRange
- All Implemented Interfaces:
Serializable, Cloneable
Describes a range of ports.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetFrom()The first port in the range.getTo()The last port in the range.inthashCode()voidThe first port in the range.voidThe last port in the range.toString()Returns a string representation of this object; useful for testing and debugging.The first port in the range.The last port in the range.
-
Constructor Details
-
PortRange
public PortRange()
-
-
Method Details
-
setFrom
The first port in the range.
- Parameters:
from- The first port in the range.
-
getFrom
-
withFrom
-
setTo
The last port in the range.
- Parameters:
to- The last port in the range.
-
getTo
-
withTo
-
toString
-
equals
-
hashCode
-
clone
-