Interface FaceDetection.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<FaceDetection.Builder,,FaceDetection> SdkBuilder<FaceDetection.Builder,,FaceDetection> SdkPojo
- Enclosing class:
FaceDetection
public static interface FaceDetection.Builder
extends SdkPojo, CopyableBuilder<FaceDetection.Builder,FaceDetection>
-
Method Summary
Modifier and TypeMethodDescriptiondefault FaceDetection.Builderface(Consumer<FaceDetail.Builder> face) The face properties for the detected face.face(FaceDetail face) The face properties for the detected face.Time, in milliseconds from the start of the video, that the face was detected.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
timestamp
Time, in milliseconds from the start of the video, that the face was detected. Note that
Timestampis not guaranteed to be accurate to the individual frame where the face first appears.- Parameters:
timestamp- Time, in milliseconds from the start of the video, that the face was detected. Note thatTimestampis not guaranteed to be accurate to the individual frame where the face first appears.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
face
The face properties for the detected face.
- Parameters:
face- The face properties for the detected face.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
face
The face properties for the detected face.
This is a convenience method that creates an instance of theFaceDetail.Builderavoiding the need to create one manually viaFaceDetail.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toface(FaceDetail).- Parameters:
face- a consumer that will call methods onFaceDetail.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-