public class StartSegmentDetectionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Starts asynchronous detection of segment detection in a stored video.
Amazon Rekognition Video can detect segments in a video stored in an Amazon
S3 bucket. Use Video to specify the bucket name and the filename of
the video. StartSegmentDetection
returns a job identifier (
JobId
) which you use to get the results of the operation. When
segment detection is finished, Amazon Rekognition Video publishes a
completion status to the Amazon Simple Notification Service topic that you
specify in NotificationChannel
.
You can use the Filters
(StartSegmentDetectionFilters)
input parameter to specify the minimum detection confidence returned in the
response. Within Filters
, use ShotFilter
(StartShotDetectionFilter) to filter detected shots. Use
TechnicalCueFilter
(StartTechnicalCueDetectionFilter) to
filter technical cues.
To get the results of the segment detection operation, first check that the
status value published to the Amazon SNS topic is SUCCEEDED
. if
so, call GetSegmentDetection and pass the job identifier (
JobId
) from the initial call to
StartSegmentDetection
.
For more information, see Detecting Video Segments in Stored Video in the Amazon Rekognition Developer Guide.
Constructor and Description |
---|
StartSegmentDetectionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientRequestToken()
Idempotent token used to identify the start request.
|
StartSegmentDetectionFilters |
getFilters()
Filters for technical cue or shot detection.
|
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 segment detection
operation.
|
java.util.List<java.lang.String> |
getSegmentTypes()
An array of segment types to detect in the video.
|
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(StartSegmentDetectionFilters filters)
Filters for technical cue or shot detection.
|
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 segment detection
operation.
|
void |
setSegmentTypes(java.util.Collection<java.lang.String> segmentTypes)
An array of segment types to detect in the video.
|
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.
|
StartSegmentDetectionRequest |
withClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request.
|
StartSegmentDetectionRequest |
withFilters(StartSegmentDetectionFilters filters)
Filters for technical cue or shot detection.
|
StartSegmentDetectionRequest |
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.
|
StartSegmentDetectionRequest |
withNotificationChannel(NotificationChannel notificationChannel)
The ARN of the Amazon SNS topic to which you want Amazon Rekognition
Video to publish the completion status of the segment detection
operation.
|
StartSegmentDetectionRequest |
withSegmentTypes(java.util.Collection<java.lang.String> segmentTypes)
An array of segment types to detect in the video.
|
StartSegmentDetectionRequest |
withSegmentTypes(java.lang.String... segmentTypes)
An array of segment types to detect in the video.
|
StartSegmentDetectionRequest |
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 StartSegmentDetectionRequest 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 StartSegmentDetection
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 StartSegmentDetection
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 StartSegmentDetection
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
StartSegmentDetection
requests, the same
JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidently started more than once.
public StartSegmentDetectionRequest withClientRequestToken(java.lang.String clientRequestToken)
Idempotent token used to identify the start request. If you use the same
token with multiple StartSegmentDetection
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
StartSegmentDetection
requests, the same
JobId
is returned. Use
ClientRequestToken
to prevent the same job from
being accidently started more than once.
public NotificationChannel getNotificationChannel()
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the segment detection operation.
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the segment detection operation.
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 segment detection operation.
notificationChannel
- The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the segment detection operation.
public StartSegmentDetectionRequest withNotificationChannel(NotificationChannel notificationChannel)
The ARN of the Amazon SNS topic to which you want Amazon Rekognition Video to publish the completion status of the segment detection operation.
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 segment detection operation.
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 StartSegmentDetectionRequest 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 StartSegmentDetectionFilters getFilters()
Filters for technical cue or shot detection.
Filters for technical cue or shot detection.
public void setFilters(StartSegmentDetectionFilters filters)
Filters for technical cue or shot detection.
filters
- Filters for technical cue or shot detection.
public StartSegmentDetectionRequest withFilters(StartSegmentDetectionFilters filters)
Filters for technical cue or shot detection.
Returns a reference to this object so that method calls can be chained together.
filters
- Filters for technical cue or shot detection.
public java.util.List<java.lang.String> getSegmentTypes()
An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
public void setSegmentTypes(java.util.Collection<java.lang.String> segmentTypes)
An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
segmentTypes
- An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
public StartSegmentDetectionRequest withSegmentTypes(java.lang.String... segmentTypes)
An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
Returns a reference to this object so that method calls can be chained together.
segmentTypes
- An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
public StartSegmentDetectionRequest withSegmentTypes(java.util.Collection<java.lang.String> segmentTypes)
An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
Returns a reference to this object so that method calls can be chained together.
segmentTypes
- An array of segment types to detect in the video. Valid values are TECHNICAL_CUE and SHOT.
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.