@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConnectionPortRange extends Object implements Serializable, Cloneable, StructuredPojo
This operation has been expanded to use with the Amazon GameLift containers feature, which is currently in public preview.
The set of port numbers to open on each instance in a container fleet. Connection ports are used by inbound traffic to connect with processes that are running in containers on the fleet.
Part of: ContainerGroupsConfiguration, ContainerGroupsAttributes
Constructor and Description |
---|
ConnectionPortRange() |
Modifier and Type | Method and Description |
---|---|
ConnectionPortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
Starting value for the port range.
|
Integer |
getToPort()
Ending value for the port.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFromPort(Integer fromPort)
Starting value for the port range.
|
void |
setToPort(Integer toPort)
Ending value for the port.
|
String |
toString()
Returns a string representation of this object.
|
ConnectionPortRange |
withFromPort(Integer fromPort)
Starting value for the port range.
|
ConnectionPortRange |
withToPort(Integer toPort)
Ending value for the port.
|
public void setFromPort(Integer fromPort)
Starting value for the port range.
fromPort
- Starting value for the port range.public Integer getFromPort()
Starting value for the port range.
public ConnectionPortRange withFromPort(Integer fromPort)
Starting value for the port range.
fromPort
- Starting value for the port range.public void setToPort(Integer toPort)
Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
FromPort
.
toPort
- Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
FromPort
.public Integer getToPort()
Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
FromPort
.
FromPort
.public ConnectionPortRange withToPort(Integer toPort)
Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
FromPort
.
toPort
- Ending value for the port. Port numbers are end-inclusive. This value must be equal to or greater than
FromPort
.public String toString()
toString
in class Object
Object.toString()
public ConnectionPortRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.