@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerPortRange extends Object implements Serializable, Cloneable, StructuredPojo
This data type is used with the Amazon GameLift containers feature, which is currently in public preview.
A set of one or more port numbers that can be opened on the container.
Part of: ContainerPortConfiguration
Constructor and Description |
---|
ContainerPortRange() |
Modifier and Type | Method and Description |
---|---|
ContainerPortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
A starting value for the range of allowed port numbers.
|
String |
getProtocol()
The network protocol that these ports support.
|
Integer |
getToPort()
An ending value for the range of allowed port numbers.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFromPort(Integer fromPort)
A starting value for the range of allowed port numbers.
|
void |
setProtocol(String protocol)
The network protocol that these ports support.
|
void |
setToPort(Integer toPort)
An ending value for the range of allowed port numbers.
|
String |
toString()
Returns a string representation of this object.
|
ContainerPortRange |
withFromPort(Integer fromPort)
A starting value for the range of allowed port numbers.
|
ContainerPortRange |
withProtocol(IpProtocol protocol)
The network protocol that these ports support.
|
ContainerPortRange |
withProtocol(String protocol)
The network protocol that these ports support.
|
ContainerPortRange |
withToPort(Integer toPort)
An ending value for the range of allowed port numbers.
|
public void setFromPort(Integer fromPort)
A starting value for the range of allowed port numbers.
fromPort
- A starting value for the range of allowed port numbers.public Integer getFromPort()
A starting value for the range of allowed port numbers.
public ContainerPortRange withFromPort(Integer fromPort)
A starting value for the range of allowed port numbers.
fromPort
- A starting value for the range of allowed port numbers.public void setToPort(Integer toPort)
An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal
to or greater than FromPort
.
toPort
- An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be
equal to or greater than FromPort
.public Integer getToPort()
An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal
to or greater than FromPort
.
FromPort
.public ContainerPortRange withToPort(Integer toPort)
An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be equal
to or greater than FromPort
.
toPort
- An ending value for the range of allowed port numbers. Port numbers are end-inclusive. This value must be
equal to or greater than FromPort
.public void setProtocol(String protocol)
The network protocol that these ports support.
protocol
- The network protocol that these ports support.IpProtocol
public String getProtocol()
The network protocol that these ports support.
IpProtocol
public ContainerPortRange withProtocol(String protocol)
The network protocol that these ports support.
protocol
- The network protocol that these ports support.IpProtocol
public ContainerPortRange withProtocol(IpProtocol protocol)
The network protocol that these ports support.
protocol
- The network protocol that these ports support.IpProtocol
public String toString()
toString
in class Object
Object.toString()
public ContainerPortRange clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.