@Generated(value="software.amazon.awssdk:codegen") public final class SegmentDetection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SegmentDetection.Builder,SegmentDetection>
A technical cue or shot detection segment detected in a video. An array of SegmentDetection objects
containing all segments detected in a stored video is returned by GetSegmentDetection.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SegmentDetection.Builder |
| Modifier and Type | Method and Description |
|---|---|
static SegmentDetection.Builder |
builder() |
Long |
durationMillis()
The duration of the detected segment in milliseconds.
|
String |
durationSMPTE()
The duration of the timecode for the detected segment in SMPTE format.
|
String |
endTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.
|
Long |
endTimestampMillis()
The end time of the detected segment, in milliseconds, from the start of the video.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends SegmentDetection.Builder> |
serializableBuilderClass() |
ShotSegment |
shotSegment()
If the segment is a shot detection, contains information about the shot detection.
|
String |
startTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.
|
Long |
startTimestampMillis()
The start time of the detected segment in milliseconds from the start of the video.
|
TechnicalCueSegment |
technicalCueSegment()
If the segment is a technical cue, contains information about the technical cue.
|
SegmentDetection.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
SegmentType |
type()
The type of the segment.
|
String |
typeAsString()
The type of the segment.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final SegmentType type()
The type of the segment. Valid values are TECHNICAL_CUE and SHOT.
If the service returns an enum value that is not available in the current SDK version, type will return
SegmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
TECHNICAL_CUE and SHOT.SegmentTypepublic final String typeAsString()
The type of the segment. Valid values are TECHNICAL_CUE and SHOT.
If the service returns an enum value that is not available in the current SDK version, type will return
SegmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
TECHNICAL_CUE and SHOT.SegmentTypepublic final Long startTimestampMillis()
The start time of the detected segment in milliseconds from the start of the video. This value is rounded down. For example, if the actual timestamp is 100.6667 milliseconds, Amazon Rekognition Video returns a value of 100 millis.
public final Long endTimestampMillis()
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
public final Long durationMillis()
The duration of the detected segment in milliseconds.
public final String startTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.
StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).
StartTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).public final String endTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.
EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).
EndTimecode is in HH:MM:SS:fr format (and ;fr for drop frame-rates).public final String durationSMPTE()
The duration of the timecode for the detected segment in SMPTE format.
public final TechnicalCueSegment technicalCueSegment()
If the segment is a technical cue, contains information about the technical cue.
public final ShotSegment shotSegment()
If the segment is a shot detection, contains information about the shot detection.
public SegmentDetection.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SegmentDetection.Builder,SegmentDetection>public static SegmentDetection.Builder builder()
public static Class<? extends SegmentDetection.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.