Interface GetFaceDetectionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetFaceDetectionResponse.Builder,
,GetFaceDetectionResponse> RekognitionResponse.Builder
,SdkBuilder<GetFaceDetectionResponse.Builder,
,GetFaceDetectionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetFaceDetectionResponse
-
Method Summary
Modifier and TypeMethodDescriptionfaces
(Collection<FaceDetection> faces) An array of faces detected in the video.faces
(Consumer<FaceDetection.Builder>... faces) An array of faces detected in the video.faces
(FaceDetection... faces) An array of faces detected in the video.Job identifier for the face detection operation for which you want to obtain results.The current status of the face detection job.jobStatus
(VideoJobStatus jobStatus) The current status of the face detection job.A job identifier specified in the call to StartFaceDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.statusMessage
(String statusMessage) If the job fails,StatusMessage
provides a descriptive error message.default GetFaceDetectionResponse.Builder
video
(Consumer<Video.Builder> video) Sets the value of the Video property for this object.Sets the value of the Video property for this object.default GetFaceDetectionResponse.Builder
videoMetadata
(Consumer<VideoMetadata.Builder> videoMetadata) Information about a video that Amazon Rekognition Video analyzed.videoMetadata
(VideoMetadata videoMetadata) Information about a video that Amazon Rekognition Video analyzed.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
jobStatus
The current status of the face detection job.
- Parameters:
jobStatus
- The current status of the face detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobStatus
The current status of the face detection job.
- Parameters:
jobStatus
- The current status of the face detection job.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusMessage
If the job fails,
StatusMessage
provides a descriptive error message.- Parameters:
statusMessage
- If the job fails,StatusMessage
provides a descriptive error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoMetadata
Information about a video that Amazon Rekognition Video analyzed.
Videometadata
is returned in every page of paginated responses from a Amazon Rekognition video operation.- Parameters:
videoMetadata
- Information about a video that Amazon Rekognition Video analyzed.Videometadata
is returned in every page of paginated responses from a Amazon Rekognition video operation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
videoMetadata
default GetFaceDetectionResponse.Builder videoMetadata(Consumer<VideoMetadata.Builder> videoMetadata) Information about a video that Amazon Rekognition Video analyzed.
This is a convenience method that creates an instance of theVideometadata
is returned in every page of paginated responses from a Amazon Rekognition video operation.VideoMetadata.Builder
avoiding the need to create one manually viaVideoMetadata.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovideoMetadata(VideoMetadata)
.- Parameters:
videoMetadata
- a consumer that will call methods onVideoMetadata.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.
- Parameters:
nextToken
- If the response is truncated, Amazon Rekognition returns this token that you can use in the subsequent request to retrieve the next set of faces.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faces
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
- Parameters:
faces
- An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faces
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
- Parameters:
faces
- An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
faces
An array of faces detected in the video. Each element contains a detected face's details and the time, in milliseconds from the start of the video, the face was detected.
This is a convenience method that creates an instance of theFaceDetection.Builder
avoiding the need to create one manually viaFaceDetection.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofaces(List<FaceDetection>)
.- Parameters:
faces
- a consumer that will call methods onFaceDetection.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobId
Job identifier for the face detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartFaceDetection.
- Parameters:
jobId
- Job identifier for the face detection operation for which you want to obtain results. The job identifer is returned by an initial call to StartFaceDetection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
Sets the value of the Video property for this object.- Parameters:
video
- The new value for the Video property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
video
Sets the value of the Video property for this object. This is a convenience method that creates an instance of theVideo.Builder
avoiding the need to create one manually viaVideo.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tovideo(Video)
.- Parameters:
video
- a consumer that will call methods onVideo.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
jobTag
A job identifier specified in the call to StartFaceDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.
- Parameters:
jobTag
- A job identifier specified in the call to StartFaceDetection and returned in the job completion notification sent to your Amazon Simple Notification Service topic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-