Class SegmentDetection
- All Implemented Interfaces:
Serializable
,SdkPojo
,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.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SegmentDetection.Builder
builder()
final Long
The duration of a video segment, expressed in frames.final Long
The duration of the detected segment in milliseconds.final String
The duration of the timecode for the detected segment in SMPTE format.final Long
The frame number at the end of a video segment, using a frame index that starts with 0.final String
The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.final Long
The end time of the detected segment, in milliseconds, from the start of the video.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
static Class
<? extends SegmentDetection.Builder> final ShotSegment
If the segment is a shot detection, contains information about the shot detection.final Long
The frame number of the start of a video segment, using a frame index that starts with 0.final String
The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.final Long
The start time of the detected segment in milliseconds from the start of the video.final TechnicalCueSegment
If the segment is a technical cue, contains information about the technical cue.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final SegmentType
type()
The type of the segment.final String
The type of the segment.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
type
The type of the segment. Valid values are
TECHNICAL_CUE
andSHOT
.If the service returns an enum value that is not available in the current SDK version,
type
will 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_CUE
andSHOT
. - See Also:
-
typeAsString
The type of the segment. Valid values are
TECHNICAL_CUE
andSHOT
.If the service returns an enum value that is not available in the current SDK version,
type
will 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_CUE
andSHOT
. - See Also:
-
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
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
The duration of the detected segment in milliseconds.
- Returns:
- The duration of the detected segment in milliseconds.
-
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).- Returns:
- 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).
-
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).- Returns:
- 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).
-
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
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
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
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
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
The duration of a video segment, expressed in frames.
- Returns:
- The duration of a video segment, expressed in frames.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<SegmentDetection.Builder,
SegmentDetection> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
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. -
getValueForField
-
sdkFields
-