@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class NetworkAclPortRange extends Object implements Serializable, Cloneable, StructuredPojo
TCP or UDP protocols: The range of ports the rule applies to.
Constructor and Description |
---|
NetworkAclPortRange() |
Modifier and Type | Method and Description |
---|---|
NetworkAclPortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getFrom()
The beginning port number of the range.
|
Integer |
getTo()
The ending port number of the range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFrom(Integer from)
The beginning port number of the range.
|
void |
setTo(Integer to)
The ending port number of the range.
|
String |
toString()
Returns a string representation of this object.
|
NetworkAclPortRange |
withFrom(Integer from)
The beginning port number of the range.
|
NetworkAclPortRange |
withTo(Integer to)
The ending port number of the range.
|
public void setFrom(Integer from)
The beginning port number of the range.
from
- The beginning port number of the range.public Integer getFrom()
The beginning port number of the range.
public NetworkAclPortRange withFrom(Integer from)
The beginning port number of the range.
from
- The beginning port number of the range.public void setTo(Integer to)
The ending port number of the range.
to
- The ending port number of the range.public Integer getTo()
The ending port number of the range.
public NetworkAclPortRange withTo(Integer to)
The ending port number of the range.
to
- The ending port number of the range.public String toString()
toString
in class Object
Object.toString()
public NetworkAclPortRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.