public class CreateCollectionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Creates a collection in an AWS Region. You can add faces to the collection using the IndexFaces 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.
When you create a collection, it is associated with the latest version of the face model version.
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(java.lang.String collectionId)
Constructs a new CreateCollectionRequest object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCollectionId()
ID for the collection that you are creating.
|
int |
hashCode() |
void |
setCollectionId(java.lang.String collectionId)
ID for the collection that you are creating.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateCollectionRequest |
withCollectionId(java.lang.String collectionId)
ID for the collection that you are creating.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateCollectionRequest()
public CreateCollectionRequest(java.lang.String collectionId)
collectionId
- ID for the collection that you are creating.
public java.lang.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(java.lang.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(java.lang.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 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.