@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortRange extends Object implements Serializable, Cloneable, StructuredPojo
A list of port ranges that are permitted to allow inbound traffic from all public IP addresses. To specify a single
port, use the same value for MinRange
and MaxRange
.
Constructor and Description |
---|
PortRange() |
Modifier and Type | Method and Description |
---|---|
PortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getMaxRange()
The smallest port number in a specified range of port numbers.
|
Integer |
getMinRange()
The smallest port number in a specified range of port numbers.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setMaxRange(Integer maxRange)
The smallest port number in a specified range of port numbers.
|
void |
setMinRange(Integer minRange)
The smallest port number in a specified range of port numbers.
|
String |
toString()
Returns a string representation of this object.
|
PortRange |
withMaxRange(Integer maxRange)
The smallest port number in a specified range of port numbers.
|
PortRange |
withMinRange(Integer minRange)
The smallest port number in a specified range of port numbers.
|
public void setMinRange(Integer minRange)
The smallest port number in a specified range of port numbers.
minRange
- The smallest port number in a specified range of port numbers.public Integer getMinRange()
The smallest port number in a specified range of port numbers.
public PortRange withMinRange(Integer minRange)
The smallest port number in a specified range of port numbers.
minRange
- The smallest port number in a specified range of port numbers.public void setMaxRange(Integer maxRange)
The smallest port number in a specified range of port numbers.
maxRange
- The smallest port number in a specified range of port numbers.public Integer getMaxRange()
The smallest port number in a specified range of port numbers.
public PortRange withMaxRange(Integer maxRange)
The smallest port number in a specified range of port numbers.
maxRange
- The smallest port number in a specified range of port numbers.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.