@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ContainerPortConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Defines ranges of ports that server processes can connect to.
Constructor and Description |
---|
ContainerPortConfiguration() |
Modifier and Type | Method and Description |
---|---|
ContainerPortConfiguration |
clone() |
boolean |
equals(Object obj) |
List<ContainerPortRange> |
getContainerPortRanges()
Specifies one or more ranges of ports on a container.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContainerPortRanges(Collection<ContainerPortRange> containerPortRanges)
Specifies one or more ranges of ports on a container.
|
String |
toString()
Returns a string representation of this object.
|
ContainerPortConfiguration |
withContainerPortRanges(Collection<ContainerPortRange> containerPortRanges)
Specifies one or more ranges of ports on a container.
|
ContainerPortConfiguration |
withContainerPortRanges(ContainerPortRange... containerPortRanges)
Specifies one or more ranges of ports on a container.
|
public List<ContainerPortRange> getContainerPortRanges()
Specifies one or more ranges of ports on a container. These ranges must not overlap.
public void setContainerPortRanges(Collection<ContainerPortRange> containerPortRanges)
Specifies one or more ranges of ports on a container. These ranges must not overlap.
containerPortRanges
- Specifies one or more ranges of ports on a container. These ranges must not overlap.public ContainerPortConfiguration withContainerPortRanges(ContainerPortRange... containerPortRanges)
Specifies one or more ranges of ports on a container. These ranges must not overlap.
NOTE: This method appends the values to the existing list (if any). Use
setContainerPortRanges(java.util.Collection)
or withContainerPortRanges(java.util.Collection)
if you want to override the existing values.
containerPortRanges
- Specifies one or more ranges of ports on a container. These ranges must not overlap.public ContainerPortConfiguration withContainerPortRanges(Collection<ContainerPortRange> containerPortRanges)
Specifies one or more ranges of ports on a container. These ranges must not overlap.
containerPortRanges
- Specifies one or more ranges of ports on a container. These ranges must not overlap.public String toString()
toString
in class Object
Object.toString()
public ContainerPortConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.