@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetSegmentDetectionResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetSegmentDetectionResult() |
Modifier and Type | Method and Description |
---|---|
GetSegmentDetectionResult |
clone() |
boolean |
equals(Object obj) |
List<AudioMetadata> |
getAudioMetadata()
An array of objects.
|
String |
getJobStatus()
Current status of the segment detection job.
|
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.
|
List<SegmentDetection> |
getSegments()
An array of segments detected in a video.
|
List<SegmentTypeInfo> |
getSelectedSegmentTypes()
An array containing the segment types requested in the call to
StartSegmentDetection . |
String |
getStatusMessage()
If the job fails,
StatusMessage provides a descriptive error message. |
List<VideoMetadata> |
getVideoMetadata()
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
int |
hashCode() |
void |
setAudioMetadata(Collection<AudioMetadata> audioMetadata)
An array of objects.
|
void |
setJobStatus(String jobStatus)
Current status of the segment detection job.
|
void |
setNextToken(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(Collection<SegmentDetection> segments)
An array of segments detected in a video.
|
void |
setSelectedSegmentTypes(Collection<SegmentTypeInfo> selectedSegmentTypes)
An array containing the segment types requested in the call to
StartSegmentDetection . |
void |
setStatusMessage(String statusMessage)
If the job fails,
StatusMessage provides a descriptive error message. |
void |
setVideoMetadata(Collection<VideoMetadata> videoMetadata)
Currently, Amazon Rekognition Video returns a single object in the
VideoMetadata array. |
String |
toString()
Returns a string representation of this object.
|
GetSegmentDetectionResult |
withAudioMetadata(AudioMetadata... audioMetadata)
An array of objects.
|
GetSegmentDetectionResult |
withAudioMetadata(Collection<AudioMetadata> audioMetadata)
An array of objects.
|
GetSegmentDetectionResult |
withJobStatus(String jobStatus)
Current status of the segment detection job.
|
GetSegmentDetectionResult |
withJobStatus(VideoJobStatus jobStatus)
Current status of the segment detection job.
|
GetSegmentDetectionResult |
withNextToken(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(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(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(String statusMessage)
If the job fails,
StatusMessage provides a descriptive error message. |
GetSegmentDetectionResult |
withVideoMetadata(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. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setJobStatus(String jobStatus)
Current status of the segment detection job.
jobStatus
- Current status of the segment detection job.VideoJobStatus
public String getJobStatus()
Current status of the segment detection job.
VideoJobStatus
public GetSegmentDetectionResult withJobStatus(String jobStatus)
Current status of the segment detection job.
jobStatus
- Current status of the segment detection job.VideoJobStatus
public GetSegmentDetectionResult withJobStatus(VideoJobStatus jobStatus)
Current status of the segment detection job.
jobStatus
- Current status of the segment detection job.VideoJobStatus
public void setStatusMessage(String statusMessage)
If the job fails, StatusMessage
provides a descriptive error message.
statusMessage
- If the job fails, StatusMessage
provides a descriptive error message.public String getStatusMessage()
If the job fails, StatusMessage
provides a descriptive error message.
StatusMessage
provides a descriptive error message.public GetSegmentDetectionResult withStatusMessage(String statusMessage)
If the job fails, StatusMessage
provides a descriptive error message.
statusMessage
- If the job fails, StatusMessage
provides a descriptive error message.public 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
.
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(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
.
NOTE: This method appends the values to the existing list (if any). Use
setVideoMetadata(java.util.Collection)
or withVideoMetadata(java.util.Collection)
if you want
to override the existing values.
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(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 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
.
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(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
.
NOTE: This method appends the values to the existing list (if any). Use
setAudioMetadata(java.util.Collection)
or withAudioMetadata(java.util.Collection)
if you want
to override the existing values.
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(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 void setNextToken(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.
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 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.
public GetSegmentDetectionResult withNextToken(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.
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 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.
SegmentTypes
input parameter of StartSegmentDetection
.
Within each segment type the array is sorted by timestamp values.public void setSegments(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.
NOTE: This method appends the values to the existing list (if any). Use
setSegments(java.util.Collection)
or withSegments(java.util.Collection)
if you want to override
the existing 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(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 List<SegmentTypeInfo> getSelectedSegmentTypes()
An array containing the segment types requested in the call to StartSegmentDetection
.
StartSegmentDetection
.public void setSelectedSegmentTypes(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
.
NOTE: This method appends the values to the existing list (if any). Use
setSelectedSegmentTypes(java.util.Collection)
or withSelectedSegmentTypes(java.util.Collection)
if you want to override the existing values.
selectedSegmentTypes
- An array containing the segment types requested in the call to StartSegmentDetection
.public GetSegmentDetectionResult withSelectedSegmentTypes(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 String toString()
toString
in class Object
Object.toString()
public GetSegmentDetectionResult clone()