public class StartTextDetectionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Starts asynchronous detection of text in a stored video.
Amazon Rekognition Video can detect text in a video stored in an Amazon S3
bucket. Use Video to specify the bucket name and the filename of the
video. StartTextDetection
returns a job identifier (
JobId
) which you use to get the results of the operation. When
text detection is finished, Amazon Rekognition Video publishes a completion
status to the Amazon Simple Notification Service topic that you specify in
NotificationChannel
.
To get the results of the text detection operation, first check that the
status value published to the Amazon SNS topic is SUCCEEDED
. if
so, call GetTextDetection and pass the job identifier (
JobId
) from the initial call to StartTextDetection
.
Constructor and Description |
---|
StartTextDetectionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
Idempotent token used to identify the start request.
|
StartTextDetectionFilters |
getFilters()
Optional parameters that let you set criteria the text must meet to be
included in your response.
|
java.lang.String |
getJobTag()
An identifier returned in the completion status published by your Amazon
Simple Notification Service topic.
|
NotificationChannel |
getNotificationChannel()
The Amazon Simple Notification Service topic to which Amazon Rekognition
publishes the completion status of a video analysis operation.
|
Video |
getVideo()
Video file stored in an Amazon S3 bucket.
|
int |
hashCode() |
void |
setClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request.
|
void |
setFilters(StartTextDetectionFilters filters)
Optional parameters that let you set criteria the text must meet to be
included in your response.
|
void |
setJobTag(java.lang.String jobTag)
An identifier returned in the completion status published by your Amazon
Simple Notification Service topic.
|
void |
setNotificationChannel(NotificationChannel notificationChannel)
The Amazon Simple Notification Service topic to which Amazon Rekognition
publishes the completion status of a video analysis operation.
|
void |
setVideo(Video video)
Video file stored in an Amazon S3 bucket.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StartTextDetectionRequest |
withClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request.
|
StartTextDetectionRequest |
withFilters(StartTextDetectionFilters filters)
Optional parameters that let you set criteria the text must meet to be
included in your response.
|
StartTextDetectionRequest |
withJobTag(java.lang.String jobTag)
An identifier returned in the completion status published by your Amazon
Simple Notification Service topic.
|
StartTextDetectionRequest |
withNotificationChannel(NotificationChannel notificationChannel)
The Amazon Simple Notification Service topic to which Amazon Rekognition
publishes the completion status of a video analysis operation.
|
StartTextDetectionRequest |
withVideo(Video video)
Video file stored in an Amazon S3 bucket.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public Video getVideo()
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start
operations such as StartLabelDetection use Video
to
specify a video for analysis. The supported file formats are .mp4, .mov
and .avi.
Video file stored in an Amazon S3 bucket. Amazon Rekognition
video start operations such as StartLabelDetection use
Video
to specify a video for analysis. The supported
file formats are .mp4, .mov and .avi.
public void setVideo(Video video)
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start
operations such as StartLabelDetection use Video
to
specify a video for analysis. The supported file formats are .mp4, .mov
and .avi.
video
-
Video file stored in an Amazon S3 bucket. Amazon Rekognition
video start operations such as StartLabelDetection use
Video
to specify a video for analysis. The
supported file formats are .mp4, .mov and .avi.
public StartTextDetectionRequest withVideo(Video video)
Video file stored in an Amazon S3 bucket. Amazon Rekognition video start
operations such as StartLabelDetection use Video
to
specify a video for analysis. The supported file formats are .mp4, .mov
and .avi.
Returns a reference to this object so that method calls can be chained together.
video
-
Video file stored in an Amazon S3 bucket. Amazon Rekognition
video start operations such as StartLabelDetection use
Video
to specify a video for analysis. The
supported file formats are .mp4, .mov and .avi.
public java.lang.String getClientRequestToken()
Idempotent token used to identify the start request. If you use the same
token with multiple StartTextDetection
requests, the same
JobId
is returned. Use ClientRequestToken
to
prevent the same job from being accidentaly 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 StartTextDetection
requests, the same JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidentaly 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 StartTextDetection
requests, the same
JobId
is returned. Use ClientRequestToken
to
prevent the same job from being accidentaly 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
StartTextDetection
requests, the same
JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidentaly started more than once.
public StartTextDetectionRequest withClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request. If you use the same
token with multiple StartTextDetection
requests, the same
JobId
is returned. Use ClientRequestToken
to
prevent the same job from being accidentaly 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
StartTextDetection
requests, the same
JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidentaly started more than once.
public NotificationChannel getNotificationChannel()
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
public void setNotificationChannel(NotificationChannel notificationChannel)
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
notificationChannel
- The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
public StartTextDetectionRequest withNotificationChannel(NotificationChannel notificationChannel)
The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
Returns a reference to this object so that method calls can be chained together.
notificationChannel
- The Amazon Simple Notification Service topic to which Amazon Rekognition publishes the completion status of a video analysis operation. For more information, see api-video.
public java.lang.String getJobTag()
An identifier returned in the completion status published by 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 returned in the completion status published by 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 returned in the completion status published by 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 returned in the completion status published by
your Amazon Simple Notification Service topic. For example,
you can use JobTag
to group related jobs and
identify them in the completion notification.
public StartTextDetectionRequest withJobTag(java.lang.String jobTag)
An identifier returned in the completion status published by 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 returned in the completion status published by
your Amazon Simple Notification Service topic. For example,
you can use JobTag
to group related jobs and
identify them in the completion notification.
public StartTextDetectionFilters getFilters()
Optional parameters that let you set criteria the text must meet to be included in your response.
Optional parameters that let you set criteria the text must meet to be included in your response.
public void setFilters(StartTextDetectionFilters filters)
Optional parameters that let you set criteria the text must meet to be included in your response.
filters
- Optional parameters that let you set criteria the text must meet to be included in your response.
public StartTextDetectionRequest withFilters(StartTextDetectionFilters filters)
Optional parameters that let you set criteria the text must meet to be included in your response.
Returns a reference to this object so that method calls can be chained together.
filters
- Optional parameters that let you set criteria the text must meet to be included in your response.
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.