public class StartFaceSearchRequest extends AmazonWebServiceRequest implements Serializable
Starts the asynchronous search for faces in a collection that match the faces of persons detected in a stored video.
The video must be stored in an Amazon S3 bucket. Use Video to specify
the bucket name and the filename of the video. StartFaceSearch
returns a job identifier (JobId
) which you use to get the search
results once the search has completed. When searching is finished, Amazon
Rekognition Video publishes a completion status to the Amazon Simple
Notification Service topic that you specify in
NotificationChannel
. To get the search results, first check that
the status value published to the Amazon SNS topic is SUCCEEDED
.
If so, call and pass the job identifier (JobId
) from the initial
call to StartFaceSearch
. For more information, see
procedure-person-search-videos.
Constructor and Description |
---|
StartFaceSearchRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
Idempotent token used to identify the start request.
|
String |
getCollectionId()
ID of the collection that contains the faces you want to search for.
|
Boolean |
getEnablePersonTracking()
Returns the value of the enablePersonTracking property for this object.
|
Float |
getFaceMatchThreshold()
The minimum confidence in the person match to return.
|
String |
getJobTag()
Unique identifier you specify to identify the job in the completion
status published to the Amazon Simple Notification Service topic.
|
NotificationChannel |
getNotificationChannel()
The ARN of the Amazon SNS topic to which you want Amazon Rekognition
Video to publish the completion status of the search.
|
Video |
getVideo()
The video you want to search.
|
int |
hashCode() |
Boolean |
isEnablePersonTracking()
Returns the value of the enablePersonTracking property for this object.
|
void |
setClientRequestToken(String clientRequestToken)
Idempotent token used to identify the start request.
|
void |
setCollectionId(String collectionId)
ID of the collection that contains the faces you want to search for.
|
void |
setEnablePersonTracking(Boolean enablePersonTracking)
Sets the value of enablePersonTracking
|
void |
setFaceMatchThreshold(Float faceMatchThreshold)
The minimum confidence in the person match to return.
|
void |
setJobTag(String jobTag)
Unique identifier you specify to identify the job in the completion
status published to the Amazon Simple Notification Service topic.
|
void |
setNotificationChannel(NotificationChannel notificationChannel)
The ARN of the Amazon SNS topic to which you want Amazon Rekognition
Video to publish the completion status of the search.
|
void |
setVideo(Video video)
The video you want to search.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartFaceSearchRequest |
withClientRequestToken(String clientRequestToken)
Idempotent token used to identify the start request.
|
StartFaceSearchRequest |
withCollectionId(String collectionId)
ID of the collection that contains the faces you want to search for.
|
StartFaceSearchRequest |
withEnablePersonTracking(Boolean enablePersonTracking)
Sets the value of the enablePersonTracking property for this object.
|
StartFaceSearchRequest |
withFaceMatchThreshold(Float faceMatchThreshold)
The minimum confidence in the person match to return.
|
StartFaceSearchRequest |
withJobTag(String jobTag)
Unique identifier you specify to identify the job in the completion
status published to the Amazon Simple Notification Service topic.
|
StartFaceSearchRequest |
withNotificationChannel(NotificationChannel notificationChannel)
The ARN of the Amazon SNS topic to which you want Amazon Rekognition
Video to publish the completion status of the search.
|
StartFaceSearchRequest |
withVideo(Video video)
The video you want to search.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public Video getVideo()
The video you want to search. The video must be stored in an Amazon S3 bucket.
The video you want to search. The video must be stored in an Amazon S3 bucket.
public void setVideo(Video video)
The video you want to search. The video must be stored in an Amazon S3 bucket.
video
- The video you want to search. The video must be stored in an Amazon S3 bucket.
public StartFaceSearchRequest withVideo(Video video)
The video you want to search. The video must be stored in an Amazon S3 bucket.
Returns a reference to this object so that method calls can be chained together.
video
- The video you want to search. The video must be stored in an Amazon S3 bucket.
public String getClientRequestToken()
Idempotent token used to identify the start request. If you use the same
token with multiple StartFaceSearch
requests, the same
JobId
is returned. Use ClientRequestToken
to
prevent the same job from being accidently started more than once.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-_]+$
Idempotent token used to identify the start request. If you use
the same token with multiple StartFaceSearch
requests, the same JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidently started more than once.
public void setClientRequestToken(String clientRequestToken)
Idempotent token used to identify the start request. If you use the same
token with multiple StartFaceSearch
requests, the same
JobId
is returned. Use ClientRequestToken
to
prevent the same job from being accidently started more than once.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-_]+$
clientRequestToken
-
Idempotent token used to identify the start request. If you
use the same token with multiple StartFaceSearch
requests, the same JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidently started more than once.
public StartFaceSearchRequest withClientRequestToken(String clientRequestToken)
Idempotent token used to identify the start request. If you use the same
token with multiple StartFaceSearch
requests, the same
JobId
is returned. Use ClientRequestToken
to
prevent the same job from being accidently started more than once.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: ^[a-zA-Z0-9-_]+$
clientRequestToken
-
Idempotent token used to identify the start request. If you
use the same token with multiple StartFaceSearch
requests, the same JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidently started more than once.
public Float getFaceMatchThreshold()
The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
Constraints:
Length: 0 - 100
The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
public void setFaceMatchThreshold(Float faceMatchThreshold)
The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
Constraints:
Length: 0 - 100
faceMatchThreshold
- The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
public StartFaceSearchRequest withFaceMatchThreshold(Float faceMatchThreshold)
The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 100
faceMatchThreshold
- The minimum confidence in the person match to return. For example, don't return any matches where confidence in matches is less than 70%.
public String getCollectionId()
ID of the collection that contains the faces you want to search for.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
ID of the collection that contains the faces you want to search for.
public void setCollectionId(String collectionId)
ID of the collection that contains the faces you want to search for.
Constraints:
Length: 1 - 255
Pattern: [a-zA-Z0-9_.\-]+
collectionId
- ID of the collection that contains the faces you want to search for.
public StartFaceSearchRequest withCollectionId(String collectionId)
ID of the collection that contains the faces you want to search for.
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 that contains the faces you want to search for.
public Boolean isEnablePersonTracking()
public Boolean getEnablePersonTracking()
public void setEnablePersonTracking(Boolean enablePersonTracking)
enablePersonTracking
- The new value for the enablePersonTracking
property for this object.public StartFaceSearchRequest withEnablePersonTracking(Boolean enablePersonTracking)
Returns a reference to this object so that method calls can be chained together.
enablePersonTracking
- The new value for the enablePersonTracking
property for this object.public NotificationChannel getNotificationChannel()
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search.
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search.
public void setNotificationChannel(NotificationChannel notificationChannel)
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search.
notificationChannel
- The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search.
public StartFaceSearchRequest withNotificationChannel(NotificationChannel notificationChannel)
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search.
Returns a reference to this object so that method calls can be chained together.
notificationChannel
- The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the search.
public String getJobTag()
Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.\-:]+
Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
public void setJobTag(String jobTag)
Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.\-:]+
jobTag
- Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
public StartFaceSearchRequest withJobTag(String jobTag)
Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.\-:]+
jobTag
- Unique identifier you specify to identify the job in the completion status published to the Amazon Simple Notification Service topic.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.