Struct aws_sdk_rekognition::model::segment_detection::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for SegmentDetection.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn type(self, input: SegmentType) -> Self
pub fn type(self, input: SegmentType) -> Self
The type of the segment. Valid values are TECHNICAL_CUE and SHOT.
sourcepub fn set_type(self, input: Option<SegmentType>) -> Self
pub fn set_type(self, input: Option<SegmentType>) -> Self
The type of the segment. Valid values are TECHNICAL_CUE and SHOT.
sourcepub fn start_timestamp_millis(self, input: i64) -> Self
pub fn start_timestamp_millis(self, input: i64) -> Self
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.
sourcepub fn set_start_timestamp_millis(self, input: Option<i64>) -> Self
pub fn set_start_timestamp_millis(self, input: Option<i64>) -> Self
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.
sourcepub fn end_timestamp_millis(self, input: i64) -> Self
pub fn end_timestamp_millis(self, input: i64) -> Self
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
sourcepub fn set_end_timestamp_millis(self, input: Option<i64>) -> Self
pub fn set_end_timestamp_millis(self, input: Option<i64>) -> Self
The end time of the detected segment, in milliseconds, from the start of the video. This value is rounded down.
sourcepub fn duration_millis(self, input: i64) -> Self
pub fn duration_millis(self, input: i64) -> Self
The duration of the detected segment in milliseconds.
sourcepub fn set_duration_millis(self, input: Option<i64>) -> Self
pub fn set_duration_millis(self, input: Option<i64>) -> Self
The duration of the detected segment in milliseconds.
sourcepub fn start_timecode_smpte(self, input: impl Into<String>) -> Self
pub fn start_timecode_smpte(self, input: impl Into<String>) -> Self
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).
sourcepub fn set_start_timecode_smpte(self, input: Option<String>) -> Self
pub fn set_start_timecode_smpte(self, input: Option<String>) -> Self
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).
sourcepub fn end_timecode_smpte(self, input: impl Into<String>) -> Self
pub fn end_timecode_smpte(self, input: impl Into<String>) -> Self
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).
sourcepub fn set_end_timecode_smpte(self, input: Option<String>) -> Self
pub fn set_end_timecode_smpte(self, input: Option<String>) -> Self
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).
sourcepub fn duration_smpte(self, input: impl Into<String>) -> Self
pub fn duration_smpte(self, input: impl Into<String>) -> Self
The duration of the timecode for the detected segment in SMPTE format.
sourcepub fn set_duration_smpte(self, input: Option<String>) -> Self
pub fn set_duration_smpte(self, input: Option<String>) -> Self
The duration of the timecode for the detected segment in SMPTE format.
sourcepub fn technical_cue_segment(self, input: TechnicalCueSegment) -> Self
pub fn technical_cue_segment(self, input: TechnicalCueSegment) -> Self
If the segment is a technical cue, contains information about the technical cue.
sourcepub fn set_technical_cue_segment(
self,
input: Option<TechnicalCueSegment>
) -> Self
pub fn set_technical_cue_segment(
self,
input: Option<TechnicalCueSegment>
) -> Self
If the segment is a technical cue, contains information about the technical cue.
sourcepub fn shot_segment(self, input: ShotSegment) -> Self
pub fn shot_segment(self, input: ShotSegment) -> Self
If the segment is a shot detection, contains information about the shot detection.
sourcepub fn set_shot_segment(self, input: Option<ShotSegment>) -> Self
pub fn set_shot_segment(self, input: Option<ShotSegment>) -> Self
If the segment is a shot detection, contains information about the shot detection.
sourcepub fn start_frame_number(self, input: i64) -> Self
pub fn start_frame_number(self, input: i64) -> Self
The frame number of the start of a video segment, using a frame index that starts with 0.
sourcepub fn set_start_frame_number(self, input: Option<i64>) -> Self
pub fn set_start_frame_number(self, input: Option<i64>) -> Self
The frame number of the start of a video segment, using a frame index that starts with 0.
sourcepub fn end_frame_number(self, input: i64) -> Self
pub fn end_frame_number(self, input: i64) -> Self
The frame number at the end of a video segment, using a frame index that starts with 0.
sourcepub fn set_end_frame_number(self, input: Option<i64>) -> Self
pub fn set_end_frame_number(self, input: Option<i64>) -> Self
The frame number at the end of a video segment, using a frame index that starts with 0.
sourcepub fn duration_frames(self, input: i64) -> Self
pub fn duration_frames(self, input: i64) -> Self
The duration of a video segment, expressed in frames.
sourcepub fn set_duration_frames(self, input: Option<i64>) -> Self
pub fn set_duration_frames(self, input: Option<i64>) -> Self
The duration of a video segment, expressed in frames.
sourcepub fn build(self) -> SegmentDetection
pub fn build(self) -> SegmentDetection
Consumes the builder and constructs a SegmentDetection.