Interface SegmentDetection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SegmentDetection.Builder,
,SegmentDetection> SdkBuilder<SegmentDetection.Builder,
,SegmentDetection> SdkPojo
- Enclosing class:
SegmentDetection
-
Method Summary
Modifier and TypeMethodDescriptiondurationFrames
(Long durationFrames) The duration of a video segment, expressed in frames.durationMillis
(Long durationMillis) The duration of the detected segment in milliseconds.durationSMPTE
(String durationSMPTE) The duration of the timecode for the detected segment in SMPTE format.endFrameNumber
(Long endFrameNumber) The frame number at the end of a video segment, using a frame index that starts with 0.endTimecodeSMPTE
(String endTimecodeSMPTE) The frame-accurate SMPTE timecode, from the start of a video, for the end of a detected segment.endTimestampMillis
(Long endTimestampMillis) The end time of the detected segment, in milliseconds, from the start of the video.default SegmentDetection.Builder
shotSegment
(Consumer<ShotSegment.Builder> shotSegment) If the segment is a shot detection, contains information about the shot detection.shotSegment
(ShotSegment shotSegment) If the segment is a shot detection, contains information about the shot detection.startFrameNumber
(Long startFrameNumber) The frame number of the start of a video segment, using a frame index that starts with 0.startTimecodeSMPTE
(String startTimecodeSMPTE) The frame-accurate SMPTE timecode, from the start of a video, for the start of a detected segment.startTimestampMillis
(Long startTimestampMillis) The start time of the detected segment in milliseconds from the start of the video.default SegmentDetection.Builder
technicalCueSegment
(Consumer<TechnicalCueSegment.Builder> technicalCueSegment) If the segment is a technical cue, contains information about the technical cue.technicalCueSegment
(TechnicalCueSegment technicalCueSegment) If the segment is a technical cue, contains information about the technical cue.The type of the segment.type
(SegmentType type) The type of the segment.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
type
The type of the segment. Valid values are
TECHNICAL_CUE
andSHOT
.- Parameters:
type
- The type of the segment. Valid values areTECHNICAL_CUE
andSHOT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
type
The type of the segment. Valid values are
TECHNICAL_CUE
andSHOT
.- Parameters:
type
- The type of the segment. Valid values areTECHNICAL_CUE
andSHOT
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- 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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestampMillis
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
- Parameters:
endTimestampMillis
- The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationMillis
The duration of the detected segment in milliseconds.
- Parameters:
durationMillis
- The duration of the detected segment in milliseconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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).- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
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).- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
durationSMPTE
The duration of the timecode for the detected segment in SMPTE format.
- Parameters:
durationSMPTE
- The duration of the timecode for the detected segment in SMPTE format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
technicalCueSegment
If the segment is a technical cue, contains information about the technical cue.
- Parameters:
technicalCueSegment
- If the segment is a technical cue, contains information about the technical cue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
technicalCueSegment
default SegmentDetection.Builder technicalCueSegment(Consumer<TechnicalCueSegment.Builder> technicalCueSegment) If the segment is a technical cue, contains information about the technical cue.
This is a convenience method that creates an instance of theTechnicalCueSegment.Builder
avoiding the need to create one manually viaTechnicalCueSegment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totechnicalCueSegment(TechnicalCueSegment)
.- Parameters:
technicalCueSegment
- a consumer that will call methods onTechnicalCueSegment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
shotSegment
If the segment is a shot detection, contains information about the shot detection.
- Parameters:
shotSegment
- If the segment is a shot detection, contains information about the shot detection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shotSegment
If the segment is a shot detection, contains information about the shot detection.
This is a convenience method that creates an instance of theShotSegment.Builder
avoiding the need to create one manually viaShotSegment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toshotSegment(ShotSegment)
.- Parameters:
shotSegment
- a consumer that will call methods onShotSegment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startFrameNumber
The frame number of the start of a video segment, using a frame index that starts with 0.
- Parameters:
startFrameNumber
- The frame number of the start of a video segment, using a frame index that starts with 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endFrameNumber
The frame number at the end of a video segment, using a frame index that starts with 0.
- Parameters:
endFrameNumber
- The frame number at the end of a video segment, using a frame index that starts with 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationFrames
The duration of a video segment, expressed in frames.
- Parameters:
durationFrames
- The duration of a video segment, expressed in frames.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-