Interface CelebrityRecognition.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CelebrityRecognition.Builder,
,CelebrityRecognition> SdkBuilder<CelebrityRecognition.Builder,
,CelebrityRecognition> SdkPojo
- Enclosing class:
CelebrityRecognition
@Mutable
@NotThreadSafe
public static interface CelebrityRecognition.Builder
extends SdkPojo, CopyableBuilder<CelebrityRecognition.Builder,CelebrityRecognition>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CelebrityRecognition.Builder
celebrity
(Consumer<CelebrityDetail.Builder> celebrity) Information about a recognized celebrity.celebrity
(CelebrityDetail celebrity) Information about a recognized celebrity.The time, in milliseconds from the start of the video, that the celebrity was recognized.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, sdkFieldNameToField, sdkFields
-
Method Details
-
timestamp
The time, in milliseconds from the start of the video, that the celebrity was recognized. Note that
Timestamp
is not guaranteed to be accurate to the individual frame where the celebrity first appears.- Parameters:
timestamp
- The time, in milliseconds from the start of the video, that the celebrity was recognized. Note thatTimestamp
is not guaranteed to be accurate to the individual frame where the celebrity first appears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
celebrity
Information about a recognized celebrity.
- Parameters:
celebrity
- Information about a recognized celebrity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
celebrity
Information about a recognized celebrity.
This is a convenience method that creates an instance of theCelebrityDetail.Builder
avoiding the need to create one manually viaCelebrityDetail.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocelebrity(CelebrityDetail)
.- Parameters:
celebrity
- a consumer that will call methods onCelebrityDetail.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-