@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ListContainersResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
ListContainersResult() |
Modifier and Type | Method and Description |
---|---|
ListContainersResult |
clone() |
boolean |
equals(Object obj) |
List<Container> |
getContainers()
The names of the containers.
|
String |
getNextToken()
NextToken is the token to use in the next call to ListContainers . |
int |
hashCode() |
void |
setContainers(Collection<Container> containers)
The names of the containers.
|
void |
setNextToken(String nextToken)
NextToken is the token to use in the next call to ListContainers . |
String |
toString()
Returns a string representation of this object.
|
ListContainersResult |
withContainers(Collection<Container> containers)
The names of the containers.
|
ListContainersResult |
withContainers(Container... containers)
The names of the containers.
|
ListContainersResult |
withNextToken(String nextToken)
NextToken is the token to use in the next call to ListContainers . |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Container> getContainers()
The names of the containers.
public void setContainers(Collection<Container> containers)
The names of the containers.
containers
- The names of the containers.public ListContainersResult withContainers(Container... containers)
The names of the containers.
NOTE: This method appends the values to the existing list (if any). Use
setContainers(java.util.Collection)
or withContainers(java.util.Collection)
if you want to
override the existing values.
containers
- The names of the containers.public ListContainersResult withContainers(Collection<Container> containers)
The names of the containers.
containers
- The names of the containers.public void setNextToken(String nextToken)
NextToken
is the token to use in the next call to ListContainers
. This token is
returned only if you included the MaxResults
tag in the original command, and only if there are
still containers to return.
nextToken
- NextToken
is the token to use in the next call to ListContainers
. This token is
returned only if you included the MaxResults
tag in the original command, and only if there
are still containers to return.public String getNextToken()
NextToken
is the token to use in the next call to ListContainers
. This token is
returned only if you included the MaxResults
tag in the original command, and only if there are
still containers to return.
NextToken
is the token to use in the next call to ListContainers
. This token is
returned only if you included the MaxResults
tag in the original command, and only if there
are still containers to return.public ListContainersResult withNextToken(String nextToken)
NextToken
is the token to use in the next call to ListContainers
. This token is
returned only if you included the MaxResults
tag in the original command, and only if there are
still containers to return.
nextToken
- NextToken
is the token to use in the next call to ListContainers
. This token is
returned only if you included the MaxResults
tag in the original command, and only if there
are still containers to return.public String toString()
toString
in class Object
Object.toString()
public ListContainersResult clone()