public class ListCollectionsRequest extends AmazonWebServiceRequest implements java.io.Serializable
Returns list of collection IDs in your account. If the result is truncated,
the response also provides a NextToken that you can use in the
subsequent request to fetch the next set of collection IDs.
For an example, see Listing Collections in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the
rekognition:ListCollections action.
| Constructor and Description |
|---|
ListCollectionsRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getMaxResults()
Maximum number of collection IDs to return.
|
java.lang.String |
getNextToken()
Pagination token from the previous response.
|
int |
hashCode() |
void |
setMaxResults(java.lang.Integer maxResults)
Maximum number of collection IDs to return.
|
void |
setNextToken(java.lang.String nextToken)
Pagination token from the previous response.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListCollectionsRequest |
withMaxResults(java.lang.Integer maxResults)
Maximum number of collection IDs to return.
|
ListCollectionsRequest |
withNextToken(java.lang.String nextToken)
Pagination token from the previous response.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getNextToken()
Pagination token from the previous response.
Constraints:
Length: - 255
Pagination token from the previous response.
public void setNextToken(java.lang.String nextToken)
Pagination token from the previous response.
Constraints:
Length: - 255
nextToken - Pagination token from the previous response.
public ListCollectionsRequest withNextToken(java.lang.String nextToken)
Pagination token from the previous response.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 255
nextToken - Pagination token from the previous response.
public java.lang.Integer getMaxResults()
Maximum number of collection IDs to return.
Constraints:
Range: 0 - 4096
Maximum number of collection IDs to return.
public void setMaxResults(java.lang.Integer maxResults)
Maximum number of collection IDs to return.
Constraints:
Range: 0 - 4096
maxResults - Maximum number of collection IDs to return.
public ListCollectionsRequest withMaxResults(java.lang.Integer maxResults)
Maximum number of collection IDs to return.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 4096
maxResults - Maximum number of collection IDs to return.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.