public class ListFacesRequest extends AmazonWebServiceRequest implements java.io.Serializable
Returns metadata for faces in the specified collection. This metadata includes information such as the bounding box coordinates, the confidence (that the bounding box contains a face), and face ID. For an example, see Listing Faces in a Collection in the Amazon Rekognition Developer Guide.
This operation requires permissions to perform the
rekognition:ListFaces
action.
Constructor and Description |
---|
ListFacesRequest()
Default constructor for ListFacesRequest object.
|
ListFacesRequest(java.lang.String collectionId)
Constructs a new ListFacesRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCollectionId()
ID of the collection from which to list the faces.
|
java.lang.Integer |
getMaxResults()
Maximum number of faces to return.
|
java.lang.String |
getNextToken()
If the previous response was incomplete (because there is more data to
retrieve), Amazon Rekognition returns a pagination token in the response.
|
int |
hashCode() |
void |
setCollectionId(java.lang.String collectionId)
ID of the collection from which to list the faces.
|
void |
setMaxResults(java.lang.Integer maxResults)
Maximum number of faces to return.
|
void |
setNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there is more data to
retrieve), Amazon Rekognition returns a pagination token in the response.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ListFacesRequest |
withCollectionId(java.lang.String collectionId)
ID of the collection from which to list the faces.
|
ListFacesRequest |
withMaxResults(java.lang.Integer maxResults)
Maximum number of faces to return.
|
ListFacesRequest |
withNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there is more data to
retrieve), Amazon Rekognition returns a pagination token in the response.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public ListFacesRequest()
public ListFacesRequest(java.lang.String collectionId)
collectionId
- ID of the collection from which to list the faces.
public java.lang.String getCollectionId()
ID of the collection from which to list the faces.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
ID of the collection from which to list the faces.
public void setCollectionId(java.lang.String collectionId)
ID of the collection from which to list the faces.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
collectionId
- ID of the collection from which to list the faces.
public ListFacesRequest withCollectionId(java.lang.String collectionId)
ID of the collection from which to list the faces.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
collectionId
- ID of the collection from which to list the faces.
public java.lang.String getNextToken()
If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
Constraints:
Length: - 255
If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
public void setNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
Constraints:
Length: - 255
nextToken
- If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
public ListFacesRequest withNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 255
nextToken
- If the previous response was incomplete (because there is more data to retrieve), Amazon Rekognition returns a pagination token in the response. You can use this pagination token to retrieve the next set of faces.
public java.lang.Integer getMaxResults()
Maximum number of faces to return.
Constraints:
Range: 0 - 4096
Maximum number of faces to return.
public void setMaxResults(java.lang.Integer maxResults)
Maximum number of faces to return.
Constraints:
Range: 0 - 4096
maxResults
- Maximum number of faces to return.
public ListFacesRequest withMaxResults(java.lang.Integer maxResults)
Maximum number of faces to return.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 - 4096
maxResults
- Maximum number of faces to return.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.