public class GetSegmentDetectionResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GetSegmentDetectionResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<AudioMetadata> |
getAudioMetadata()
An array of objects.
|
java.lang.String |
getJobStatus()
Current status of the segment detection job.
|
java.lang.String |
getNextToken()
If the previous response was incomplete (because there are more labels to
retrieve), Amazon Rekognition Video returns a pagination token in the
response.
|
java.util.List<SegmentDetection> |
getSegments()
An array of segments detected in a video.
|
java.util.List<SegmentTypeInfo> |
getSelectedSegmentTypes()
An array containing the segment types requested in the call to
StartSegmentDetection . |
java.lang.String |
getStatusMessage()
If the job fails,
StatusMessage provides a descriptive error
message. |
java.util.List<VideoMetadata> |
getVideoMetadata()
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
int |
hashCode() |
void |
setAudioMetadata(java.util.Collection<AudioMetadata> audioMetadata)
An array of objects.
|
void |
setJobStatus(java.lang.String jobStatus)
Current status of the segment detection job.
|
void |
setJobStatus(VideoJobStatus jobStatus)
Current status of the segment detection job.
|
void |
setNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there are more labels to
retrieve), Amazon Rekognition Video returns a pagination token in the
response.
|
void |
setSegments(java.util.Collection<SegmentDetection> segments)
An array of segments detected in a video.
|
void |
setSelectedSegmentTypes(java.util.Collection<SegmentTypeInfo> selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection . |
void |
setStatusMessage(java.lang.String statusMessage)
If the job fails,
StatusMessage provides a descriptive error
message. |
void |
setVideoMetadata(java.util.Collection<VideoMetadata> videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetSegmentDetectionResult |
withAudioMetadata(AudioMetadata... audioMetadata)
An array of objects.
|
GetSegmentDetectionResult |
withAudioMetadata(java.util.Collection<AudioMetadata> audioMetadata)
An array of objects.
|
GetSegmentDetectionResult |
withJobStatus(java.lang.String jobStatus)
Current status of the segment detection job.
|
GetSegmentDetectionResult |
withJobStatus(VideoJobStatus jobStatus)
Current status of the segment detection job.
|
GetSegmentDetectionResult |
withNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there are more labels to
retrieve), Amazon Rekognition Video returns a pagination token in the
response.
|
GetSegmentDetectionResult |
withSegments(java.util.Collection<SegmentDetection> segments)
An array of segments detected in a video.
|
GetSegmentDetectionResult |
withSegments(SegmentDetection... segments)
An array of segments detected in a video.
|
GetSegmentDetectionResult |
withSelectedSegmentTypes(java.util.Collection<SegmentTypeInfo> selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection . |
GetSegmentDetectionResult |
withSelectedSegmentTypes(SegmentTypeInfo... selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection . |
GetSegmentDetectionResult |
withStatusMessage(java.lang.String statusMessage)
If the job fails,
StatusMessage provides a descriptive error
message. |
GetSegmentDetectionResult |
withVideoMetadata(java.util.Collection<VideoMetadata> videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
GetSegmentDetectionResult |
withVideoMetadata(VideoMetadata... videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
public java.lang.String getJobStatus()
Current status of the segment detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
Current status of the segment detection job.
VideoJobStatus
public void setJobStatus(java.lang.String jobStatus)
Current status of the segment detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- Current status of the segment detection job.
VideoJobStatus
public GetSegmentDetectionResult withJobStatus(java.lang.String jobStatus)
Current status of the segment detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- Current status of the segment detection job.
VideoJobStatus
public void setJobStatus(VideoJobStatus jobStatus)
Current status of the segment detection job.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- Current status of the segment detection job.
VideoJobStatus
public GetSegmentDetectionResult withJobStatus(VideoJobStatus jobStatus)
Current status of the segment detection job.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, SUCCEEDED, FAILED
jobStatus
- Current status of the segment detection job.
VideoJobStatus
public java.lang.String getStatusMessage()
If the job fails, StatusMessage
provides a descriptive error
message.
If the job fails, StatusMessage
provides a
descriptive error message.
public void setStatusMessage(java.lang.String statusMessage)
If the job fails, StatusMessage
provides a descriptive error
message.
statusMessage
-
If the job fails, StatusMessage
provides a
descriptive error message.
public GetSegmentDetectionResult withStatusMessage(java.lang.String statusMessage)
If the job fails, StatusMessage
provides a descriptive error
message.
Returns a reference to this object so that method calls can be chained together.
statusMessage
-
If the job fails, StatusMessage
provides a
descriptive error message.
public java.util.List<VideoMetadata> getVideoMetadata()
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata
array. The object contains information about
the video stream in the input file that Amazon Rekognition Video chose to
analyze. The VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned in each
page of information returned by GetSegmentDetection
.
Currently, Amazon Rekognition Video returns a single object in
the VideoMetadata
array. The object contains
information about the video stream in the input file that Amazon
Rekognition Video chose to analyze. The
VideoMetadata
object includes the video codec, video
format and other information. Video metadata is returned in each
page of information returned by GetSegmentDetection
.
public void setVideoMetadata(java.util.Collection<VideoMetadata> videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata
array. The object contains information about
the video stream in the input file that Amazon Rekognition Video chose to
analyze. The VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned in each
page of information returned by GetSegmentDetection
.
videoMetadata
-
Currently, Amazon Rekognition Video returns a single object in
the VideoMetadata
array. The object contains
information about the video stream in the input file that
Amazon Rekognition Video chose to analyze. The
VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned
in each page of information returned by
GetSegmentDetection
.
public GetSegmentDetectionResult withVideoMetadata(VideoMetadata... videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata
array. The object contains information about
the video stream in the input file that Amazon Rekognition Video chose to
analyze. The VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned in each
page of information returned by GetSegmentDetection
.
Returns a reference to this object so that method calls can be chained together.
videoMetadata
-
Currently, Amazon Rekognition Video returns a single object in
the VideoMetadata
array. The object contains
information about the video stream in the input file that
Amazon Rekognition Video chose to analyze. The
VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned
in each page of information returned by
GetSegmentDetection
.
public GetSegmentDetectionResult withVideoMetadata(java.util.Collection<VideoMetadata> videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata
array. The object contains information about
the video stream in the input file that Amazon Rekognition Video chose to
analyze. The VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned in each
page of information returned by GetSegmentDetection
.
Returns a reference to this object so that method calls can be chained together.
videoMetadata
-
Currently, Amazon Rekognition Video returns a single object in
the VideoMetadata
array. The object contains
information about the video stream in the input file that
Amazon Rekognition Video chose to analyze. The
VideoMetadata
object includes the video codec,
video format and other information. Video metadata is returned
in each page of information returned by
GetSegmentDetection
.
public java.util.List<AudioMetadata> getAudioMetadata()
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single audio
stream. Audio information in an AudioMetadata
objects
includes the audio codec, the number of audio channels, the duration of
the audio stream, and the sample rate. Audio metadata is returned in each
page of information returned by GetSegmentDetection
.
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single
audio stream. Audio information in an AudioMetadata
objects includes the audio codec, the number of audio channels,
the duration of the audio stream, and the sample rate. Audio
metadata is returned in each page of information returned by
GetSegmentDetection
.
public void setAudioMetadata(java.util.Collection<AudioMetadata> audioMetadata)
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single audio
stream. Audio information in an AudioMetadata
objects
includes the audio codec, the number of audio channels, the duration of
the audio stream, and the sample rate. Audio metadata is returned in each
page of information returned by GetSegmentDetection
.
audioMetadata
-
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a
single audio stream. Audio information in an
AudioMetadata
objects includes the audio codec,
the number of audio channels, the duration of the audio
stream, and the sample rate. Audio metadata is returned in
each page of information returned by
GetSegmentDetection
.
public GetSegmentDetectionResult withAudioMetadata(AudioMetadata... audioMetadata)
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single audio
stream. Audio information in an AudioMetadata
objects
includes the audio codec, the number of audio channels, the duration of
the audio stream, and the sample rate. Audio metadata is returned in each
page of information returned by GetSegmentDetection
.
Returns a reference to this object so that method calls can be chained together.
audioMetadata
-
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a
single audio stream. Audio information in an
AudioMetadata
objects includes the audio codec,
the number of audio channels, the duration of the audio
stream, and the sample rate. Audio metadata is returned in
each page of information returned by
GetSegmentDetection
.
public GetSegmentDetectionResult withAudioMetadata(java.util.Collection<AudioMetadata> audioMetadata)
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a single audio
stream. Audio information in an AudioMetadata
objects
includes the audio codec, the number of audio channels, the duration of
the audio stream, and the sample rate. Audio metadata is returned in each
page of information returned by GetSegmentDetection
.
Returns a reference to this object so that method calls can be chained together.
audioMetadata
-
An array of objects. There can be multiple audio streams. Each
AudioMetadata
object contains metadata for a
single audio stream. Audio information in an
AudioMetadata
objects includes the audio codec,
the number of audio channels, the duration of the audio
stream, and the sample rate. Audio metadata is returned in
each page of information returned by
GetSegmentDetection
.
public java.lang.String getNextToken()
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
Constraints:
Length: - 255
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
public void setNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
Constraints:
Length: - 255
nextToken
- If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
public GetSegmentDetectionResult withNextToken(java.lang.String nextToken)
If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 255
nextToken
- If the previous response was incomplete (because there are more labels to retrieve), Amazon Rekognition Video returns a pagination token in the response. You can use this pagination token to retrieve the next set of text.
public java.util.List<SegmentDetection> getSegments()
An array of segments detected in a video. The array is sorted by the
segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type the array is
sorted by timestamp values.
An array of segments detected in a video. The array is sorted by
the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type the
array is sorted by timestamp values.
public void setSegments(java.util.Collection<SegmentDetection> segments)
An array of segments detected in a video. The array is sorted by the
segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type the array is
sorted by timestamp values.
segments
-
An array of segments detected in a video. The array is sorted
by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type
the array is sorted by timestamp values.
public GetSegmentDetectionResult withSegments(SegmentDetection... segments)
An array of segments detected in a video. The array is sorted by the
segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type the array is
sorted by timestamp values.
Returns a reference to this object so that method calls can be chained together.
segments
-
An array of segments detected in a video. The array is sorted
by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type
the array is sorted by timestamp values.
public GetSegmentDetectionResult withSegments(java.util.Collection<SegmentDetection> segments)
An array of segments detected in a video. The array is sorted by the
segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type the array is
sorted by timestamp values.
Returns a reference to this object so that method calls can be chained together.
segments
-
An array of segments detected in a video. The array is sorted
by the segment types (TECHNICAL_CUE or SHOT) specified in the
SegmentTypes
input parameter of
StartSegmentDetection
. Within each segment type
the array is sorted by timestamp values.
public java.util.List<SegmentTypeInfo> getSelectedSegmentTypes()
An array containing the segment types requested in the call to
StartSegmentDetection
.
An array containing the segment types requested in the call to
StartSegmentDetection
.
public void setSelectedSegmentTypes(java.util.Collection<SegmentTypeInfo> selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection
.
selectedSegmentTypes
-
An array containing the segment types requested in the call to
StartSegmentDetection
.
public GetSegmentDetectionResult withSelectedSegmentTypes(SegmentTypeInfo... selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection
.
Returns a reference to this object so that method calls can be chained together.
selectedSegmentTypes
-
An array containing the segment types requested in the call to
StartSegmentDetection
.
public GetSegmentDetectionResult withSelectedSegmentTypes(java.util.Collection<SegmentTypeInfo> selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection
.
Returns a reference to this object so that method calls can be chained together.
selectedSegmentTypes
-
An array containing the segment types requested in the call to
StartSegmentDetection
.
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.