Interface CelebrityRecognition.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<CelebrityRecognition.Builder,CelebrityRecognition>,SdkBuilder<CelebrityRecognition.Builder,CelebrityRecognition>,SdkPojo
- Enclosing class:
- CelebrityRecognition
public static interface CelebrityRecognition.Builder extends SdkPojo, CopyableBuilder<CelebrityRecognition.Builder,CelebrityRecognition>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CelebrityRecognition.Buildercelebrity(Consumer<CelebrityDetail.Builder> celebrity)Information about a recognized celebrity.CelebrityRecognition.Buildercelebrity(CelebrityDetail celebrity)Information about a recognized celebrity.CelebrityRecognition.Buildertimestamp(Long timestamp)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, sdkFields
-
-
-
-
Method Detail
-
timestamp
CelebrityRecognition.Builder timestamp(Long timestamp)
The time, in milliseconds from the start of the video, that the celebrity was recognized. Note that
Timestampis 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 thatTimestampis 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
CelebrityRecognition.Builder celebrity(CelebrityDetail 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
default CelebrityRecognition.Builder celebrity(Consumer<CelebrityDetail.Builder> celebrity)
Information about a recognized celebrity.
This is a convenience method that creates an instance of theCelebrityDetail.Builderavoiding the need to create one manually viaCelebrityDetail.builder().When the
Consumercompletes,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:
celebrity(CelebrityDetail)
-
-