public class CreateCollectionRequest extends AmazonWebServiceRequest implements Serializable
Creates a collection in an AWS Region. You can add faces to the collection using the operation.
For example, you might create collections, one for each of your application
users. A user can then index faces using the IndexFaces
operation and persist results in a specific collection. Then, a user can
search the collection for faces in the user-specific container.
Collection names are case-sensitive.
This operation requires permissions to perform the
rekognition:CreateCollection
action.
Constructor and Description |
---|
CreateCollectionRequest()
Default constructor for CreateCollectionRequest object.
|
CreateCollectionRequest(String collectionId)
Constructs a new CreateCollectionRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCollectionId()
ID for the collection that you are creating.
|
int |
hashCode() |
void |
setCollectionId(String collectionId)
ID for the collection that you are creating.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCollectionRequest |
withCollectionId(String collectionId)
ID for the collection that you are creating.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateCollectionRequest()
public CreateCollectionRequest(String collectionId)
collectionId
- ID for the collection that you are creating.
public String getCollectionId()
ID for the collection that you are creating.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
ID for the collection that you are creating.
public void setCollectionId(String collectionId)
ID for the collection that you are creating.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
collectionId
- ID for the collection that you are creating.
public CreateCollectionRequest withCollectionId(String collectionId)
ID for the collection that you are creating.
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 for the collection that you are creating.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.