Interface GetFaceLivenessSessionResultsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetFaceLivenessSessionResultsResponse.Builder,,GetFaceLivenessSessionResultsResponse> RekognitionResponse.Builder,SdkBuilder<GetFaceLivenessSessionResultsResponse.Builder,,GetFaceLivenessSessionResultsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetFaceLivenessSessionResultsResponse
-
Method Summary
Modifier and TypeMethodDescriptionauditImages(Collection<AuditImage> auditImages) A set of images from the Face Liveness video that can be used for audit purposes.auditImages(Consumer<AuditImage.Builder>... auditImages) A set of images from the Face Liveness video that can be used for audit purposes.auditImages(AuditImage... auditImages) A set of images from the Face Liveness video that can be used for audit purposes.challenge(Consumer<Challenge.Builder> challenge) Contains information regarding the challenge type used for the Face Liveness check.Contains information regarding the challenge type used for the Face Liveness check.confidence(Float confidence) Probabalistic confidence score for if the person in the given video was live, represented as a float value between 0 to 100.feedback(Collection<FeedbackItem> feedback) A list of conditions that were detected in the Face Liveness video and that contributed to the returnedConfidencescore.feedback(Consumer<FeedbackItem.Builder>... feedback) A list of conditions that were detected in the Face Liveness video and that contributed to the returnedConfidencescore.feedback(FeedbackItem... feedback) A list of conditions that were detected in the Face Liveness video and that contributed to the returnedConfidencescore.metadata(Consumer<SessionMetadata.Builder> metadata) Metadata about the client that streamed the video for the Face Liveness session.metadata(SessionMetadata metadata) Metadata about the client that streamed the video for the Face Liveness session.referenceImage(Consumer<AuditImage.Builder> referenceImage) A high-quality image from the Face Liveness video that can be used for face comparison or search.referenceImage(AuditImage referenceImage) A high-quality image from the Face Liveness video that can be used for face comparison or search.The sessionId for which this request was called.Represents a status corresponding to the state of the session.status(LivenessSessionStatus status) Represents a status corresponding to the state of the session.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.rekognition.model.RekognitionResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
sessionId
The sessionId for which this request was called.
- Parameters:
sessionId- The sessionId for which this request was called.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Represents a status corresponding to the state of the session. Possible statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.
- Parameters:
status- Represents a status corresponding to the state of the session. Possible statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
Represents a status corresponding to the state of the session. Possible statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.
- Parameters:
status- Represents a status corresponding to the state of the session. Possible statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
confidence
Probabalistic confidence score for if the person in the given video was live, represented as a float value between 0 to 100.
- Parameters:
confidence- Probabalistic confidence score for if the person in the given video was live, represented as a float value between 0 to 100.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceImage
A high-quality image from the Face Liveness video that can be used for face comparison or search. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. In case the reference image is not returned, it's recommended to retry the Liveness check.
- Parameters:
referenceImage- A high-quality image from the Face Liveness video that can be used for face comparison or search. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. In case the reference image is not returned, it's recommended to retry the Liveness check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
referenceImage
default GetFaceLivenessSessionResultsResponse.Builder referenceImage(Consumer<AuditImage.Builder> referenceImage) A high-quality image from the Face Liveness video that can be used for face comparison or search. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. In case the reference image is not returned, it's recommended to retry the Liveness check.
This is a convenience method that creates an instance of theAuditImage.Builderavoiding the need to create one manually viaAuditImage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreferenceImage(AuditImage).- Parameters:
referenceImage- a consumer that will call methods onAuditImage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
auditImages
A set of images from the Face Liveness video that can be used for audit purposes. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. If no Amazon S3 bucket is defined, raw bytes are sent instead.
- Parameters:
auditImages- A set of images from the Face Liveness video that can be used for audit purposes. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. If no Amazon S3 bucket is defined, raw bytes are sent instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
auditImages
A set of images from the Face Liveness video that can be used for audit purposes. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. If no Amazon S3 bucket is defined, raw bytes are sent instead.
- Parameters:
auditImages- A set of images from the Face Liveness video that can be used for audit purposes. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. If no Amazon S3 bucket is defined, raw bytes are sent instead.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
auditImages
GetFaceLivenessSessionResultsResponse.Builder auditImages(Consumer<AuditImage.Builder>... auditImages) A set of images from the Face Liveness video that can be used for audit purposes. It includes a bounding box of the face and the Base64-encoded bytes that return an image. If the CreateFaceLivenessSession request included an OutputConfig argument, the image will be uploaded to an S3Object specified in the output configuration. If no Amazon S3 bucket is defined, raw bytes are sent instead.
This is a convenience method that creates an instance of theAuditImage.Builderavoiding the need to create one manually viaAuditImage.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toauditImages(List<AuditImage>).- Parameters:
auditImages- a consumer that will call methods onAuditImage.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
challenge
Contains information regarding the challenge type used for the Face Liveness check.
- Parameters:
challenge- Contains information regarding the challenge type used for the Face Liveness check.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
challenge
default GetFaceLivenessSessionResultsResponse.Builder challenge(Consumer<Challenge.Builder> challenge) Contains information regarding the challenge type used for the Face Liveness check.
This is a convenience method that creates an instance of theChallenge.Builderavoiding the need to create one manually viaChallenge.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tochallenge(Challenge).- Parameters:
challenge- a consumer that will call methods onChallenge.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
feedback
A list of conditions that were detected in the Face Liveness video and that contributed to the returned
Confidencescore. Each item contains a code and a human-readable message. Feedback is returned only for sessions with aStatusofSUCCEEDED, and the list is empty when no such conditions were detected.- Parameters:
feedback- A list of conditions that were detected in the Face Liveness video and that contributed to the returnedConfidencescore. Each item contains a code and a human-readable message. Feedback is returned only for sessions with aStatusofSUCCEEDED, and the list is empty when no such conditions were detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feedback
A list of conditions that were detected in the Face Liveness video and that contributed to the returned
Confidencescore. Each item contains a code and a human-readable message. Feedback is returned only for sessions with aStatusofSUCCEEDED, and the list is empty when no such conditions were detected.- Parameters:
feedback- A list of conditions that were detected in the Face Liveness video and that contributed to the returnedConfidencescore. Each item contains a code and a human-readable message. Feedback is returned only for sessions with aStatusofSUCCEEDED, and the list is empty when no such conditions were detected.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
feedback
A list of conditions that were detected in the Face Liveness video and that contributed to the returned
This is a convenience method that creates an instance of theConfidencescore. Each item contains a code and a human-readable message. Feedback is returned only for sessions with aStatusofSUCCEEDED, and the list is empty when no such conditions were detected.FeedbackItem.Builderavoiding the need to create one manually viaFeedbackItem.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofeedback(List<FeedbackItem>).- Parameters:
feedback- a consumer that will call methods onFeedbackItem.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
metadata
Metadata about the client that streamed the video for the Face Liveness session.
- Parameters:
metadata- Metadata about the client that streamed the video for the Face Liveness session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
default GetFaceLivenessSessionResultsResponse.Builder metadata(Consumer<SessionMetadata.Builder> metadata) Metadata about the client that streamed the video for the Face Liveness session.
This is a convenience method that creates an instance of theSessionMetadata.Builderavoiding the need to create one manually viaSessionMetadata.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometadata(SessionMetadata).- Parameters:
metadata- a consumer that will call methods onSessionMetadata.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-