Class SegmentDetection
- java.lang.Object
-
- software.amazon.awssdk.services.rekognition.model.SegmentDetection
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SegmentDetection.Builder,SegmentDetection>
@Generated("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
SegmentDetectionobjects containing all segments detected in a stored video is returned by GetSegmentDetection.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSegmentDetection.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SegmentDetection.Builderbuilder()LongdurationFrames()The duration of a video segment, expressed in frames.LongdurationMillis()The duration of the detected segment in milliseconds.StringdurationSMPTE()The duration of the timecode for the detected segment in SMPTE format.LongendFrameNumber()The frame number at the end of a video segment, using a frame index that starts with 0.StringendTimecodeSMPTE()The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.LongendTimestampMillis()The end time of the detected segment, in milliseconds, from the start of the video.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends SegmentDetection.Builder>serializableBuilderClass()ShotSegmentshotSegment()If the segment is a shot detection, contains information about the shot detection.LongstartFrameNumber()The frame number of the start of a video segment, using a frame index that starts with 0.StringstartTimecodeSMPTE()The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.LongstartTimestampMillis()The start time of the detected segment in milliseconds from the start of the video.TechnicalCueSegmenttechnicalCueSegment()If the segment is a technical cue, contains information about the technical cue.SegmentDetection.BuildertoBuilder()StringtoString()Returns a string representation of this object.SegmentTypetype()The type of the segment.StringtypeAsString()The type of the segment.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
type
public final SegmentType type()
The type of the segment. Valid values are
TECHNICAL_CUEandSHOT.If the service returns an enum value that is not available in the current SDK version,
typewill returnSegmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the segment. Valid values are
TECHNICAL_CUEandSHOT. - See Also:
SegmentType
-
typeAsString
public final String typeAsString()
The type of the segment. Valid values are
TECHNICAL_CUEandSHOT.If the service returns an enum value that is not available in the current SDK version,
typewill returnSegmentType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of the segment. Valid values are
TECHNICAL_CUEandSHOT. - See Also:
SegmentType
-
startTimestampMillis
public 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.
- Returns:
- 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.
-
endTimestampMillis
public final Long endTimestampMillis()
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
- Returns:
- The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
-
durationMillis
public final Long durationMillis()
The duration of the detected segment in milliseconds.
- Returns:
- The duration of the detected segment in milliseconds.
-
startTimecodeSMPTE
public final String startTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.
StartTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).- Returns:
- The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.
StartTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).
-
endTimecodeSMPTE
public final String endTimecodeSMPTE()
The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.
EndTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).- Returns:
- The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.
EndTimecodeis in HH:MM:SS:fr format (and ;fr for drop frame-rates).
-
durationSMPTE
public final String durationSMPTE()
The duration of the timecode for the detected segment in SMPTE format.
- Returns:
- The duration of the timecode for the detected segment in SMPTE format.
-
technicalCueSegment
public final TechnicalCueSegment technicalCueSegment()
If the segment is a technical cue, contains information about the technical cue.
- Returns:
- If the segment is a technical cue, contains information about the technical cue.
-
shotSegment
public final ShotSegment shotSegment()
If the segment is a shot detection, contains information about the shot detection.
- Returns:
- If the segment is a shot detection, contains information about the shot detection.
-
startFrameNumber
public final Long startFrameNumber()
The frame number of the start of a video segment, using a frame index that starts with 0.
- Returns:
- The frame number of the start of a video segment, using a frame index that starts with 0.
-
endFrameNumber
public final Long endFrameNumber()
The frame number at the end of a video segment, using a frame index that starts with 0.
- Returns:
- The frame number at the end of a video segment, using a frame index that starts with 0.
-
durationFrames
public final Long durationFrames()
The duration of a video segment, expressed in frames.
- Returns:
- The duration of a video segment, expressed in frames.
-
toBuilder
public SegmentDetection.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SegmentDetection.Builder,SegmentDetection>
-
builder
public static SegmentDetection.Builder builder()
-
serializableBuilderClass
public static Class<? extends SegmentDetection.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-