Interface LabelDetection.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LabelDetection.Builder,
,LabelDetection> SdkBuilder<LabelDetection.Builder,
,LabelDetection> SdkPojo
- Enclosing class:
LabelDetection
public static interface LabelDetection.Builder
extends SdkPojo, CopyableBuilder<LabelDetection.Builder,LabelDetection>
-
Method Summary
Modifier and TypeMethodDescriptiondurationMillis
(Long durationMillis) The time duration of a segment in milliseconds, I.e.endTimestampMillis
(Long endTimestampMillis) The time in milliseconds defining the end of the timeline segment containing a continuously detected label.default LabelDetection.Builder
label
(Consumer<Label.Builder> label) Details about the detected label.Details about the detected label.startTimestampMillis
(Long startTimestampMillis) The time in milliseconds defining the start of the timeline segment containing a continuously detected label.Time, in milliseconds from the start of the video, that the label was detected.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
-
timestamp
Time, in milliseconds from the start of the video, that the label was detected. Note that
Timestamp
is not guaranteed to be accurate to the individual frame where the label first appears.- Parameters:
timestamp
- Time, in milliseconds from the start of the video, that the label was detected. Note thatTimestamp
is not guaranteed to be accurate to the individual frame where the label first appears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
label
Details about the detected label.
- Parameters:
label
- Details about the detected label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
label
Details about the detected label.
This is a convenience method that creates an instance of theLabel.Builder
avoiding the need to create one manually viaLabel.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolabel(Label)
.- Parameters:
label
- a consumer that will call methods onLabel.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
startTimestampMillis
The time in milliseconds defining the start of the timeline segment containing a continuously detected label.
- Parameters:
startTimestampMillis
- The time in milliseconds defining the start of the timeline segment containing a continuously detected label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTimestampMillis
The time in milliseconds defining the end of the timeline segment containing a continuously detected label.
- Parameters:
endTimestampMillis
- The time in milliseconds defining the end of the timeline segment containing a continuously detected label.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationMillis
The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.
- Parameters:
durationMillis
- The time duration of a segment in milliseconds, I.e. time elapsed from StartTimestampMillis to EndTimestampMillis.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-