public class StartFaceSearchRequest extends AmazonWebServiceRequest implements java.io.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 GetFaceSearch 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(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
Idempotent token used to identify the start request.
|
java.lang.String |
getCollectionId()
ID of the collection that contains the faces you want to search for.
|
java.lang.Float |
getFaceMatchThreshold()
The minimum confidence in the person match to return.
|
java.lang.String |
getJobTag()
An identifier you specify that's returned in the completion notification
that's published to your 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() |
void |
setClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request.
|
void |
setCollectionId(java.lang.String collectionId)
ID of the collection that contains the faces you want to search for.
|
void |
setFaceMatchThreshold(java.lang.Float faceMatchThreshold)
The minimum confidence in the person match to return.
|
void |
setJobTag(java.lang.String jobTag)
An identifier you specify that's returned in the completion notification
that's published to your 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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartFaceSearchRequest |
withClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request.
|
StartFaceSearchRequest |
withCollectionId(java.lang.String collectionId)
ID of the collection that contains the faces you want to search for.
|
StartFaceSearchRequest |
withFaceMatchThreshold(java.lang.Float faceMatchThreshold)
The minimum confidence in the person match to return.
|
StartFaceSearchRequest |
withJobTag(java.lang.String jobTag)
An identifier you specify that's returned in the completion notification
that's published to your 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, 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 java.lang.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(java.lang.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(java.lang.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 java.lang.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%. The default value is 80%.
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%. The default value is 80%.
public void setFaceMatchThreshold(java.lang.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%. The default value is 80%.
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%. The default value is 80%.
public StartFaceSearchRequest withFaceMatchThreshold(java.lang.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%. The default value is 80%.
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%. The default value is 80%.
public java.lang.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(java.lang.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(java.lang.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 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 java.lang.String getJobTag()
An identifier you specify that's returned in the completion notification
that's published to your Amazon Simple Notification Service topic. For
example, you can use JobTag
to group related jobs and
identify them in the completion notification.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.\-:]+
An identifier you specify that's returned in the completion
notification that's published to your Amazon Simple Notification
Service topic. For example, you can use JobTag
to
group related jobs and identify them in the completion
notification.
public void setJobTag(java.lang.String jobTag)
An identifier you specify that's returned in the completion notification
that's published to your Amazon Simple Notification Service topic. For
example, you can use JobTag
to group related jobs and
identify them in the completion notification.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.\-:]+
jobTag
-
An identifier you specify that's returned in the completion
notification that's published to your Amazon Simple
Notification Service topic. For example, you can use
JobTag
to group related jobs and identify them in
the completion notification.
public StartFaceSearchRequest withJobTag(java.lang.String jobTag)
An identifier you specify that's returned in the completion notification
that's published to your Amazon Simple Notification Service topic. For
example, you can use JobTag
to group related jobs and
identify them in the completion notification.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
Pattern: [a-zA-Z0-9_.\-:]+
jobTag
-
An identifier you specify that's returned in the completion
notification that's published to your Amazon Simple
Notification Service topic. For example, you can use
JobTag
to group related jobs and identify them in
the completion notification.
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.