/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { class GetFaceLivenessSessionResultsResult { public: AWS_REKOGNITION_API GetFaceLivenessSessionResultsResult(); AWS_REKOGNITION_API GetFaceLivenessSessionResultsResult(const Aws::AmazonWebServiceResult& result); AWS_REKOGNITION_API GetFaceLivenessSessionResultsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The sessionId for which this request was called.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

The sessionId for which this request was called.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionId = value; } /** *

The sessionId for which this request was called.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); } /** *

The sessionId for which this request was called.

*/ inline void SetSessionId(const char* value) { m_sessionId.assign(value); } /** *

The sessionId for which this request was called.

*/ inline GetFaceLivenessSessionResultsResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

The sessionId for which this request was called.

*/ inline GetFaceLivenessSessionResultsResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

The sessionId for which this request was called.

*/ inline GetFaceLivenessSessionResultsResult& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

Represents a status corresponding to the state of the session. Possible * statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.

*/ inline const LivenessSessionStatus& GetStatus() const{ return m_status; } /** *

Represents a status corresponding to the state of the session. Possible * statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.

*/ inline void SetStatus(const LivenessSessionStatus& value) { m_status = value; } /** *

Represents a status corresponding to the state of the session. Possible * statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.

*/ inline void SetStatus(LivenessSessionStatus&& value) { m_status = std::move(value); } /** *

Represents a status corresponding to the state of the session. Possible * statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.

*/ inline GetFaceLivenessSessionResultsResult& WithStatus(const LivenessSessionStatus& value) { SetStatus(value); return *this;} /** *

Represents a status corresponding to the state of the session. Possible * statuses are: CREATED, IN_PROGRESS, SUCCEEDED, FAILED, EXPIRED.

*/ inline GetFaceLivenessSessionResultsResult& WithStatus(LivenessSessionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Probabalistic confidence score for if the person in the given video was live, * represented as a float value between 0 to 100.

*/ inline double GetConfidence() const{ return m_confidence; } /** *

Probabalistic confidence score for if the person in the given video was live, * represented as a float value between 0 to 100.

*/ inline void SetConfidence(double value) { m_confidence = value; } /** *

Probabalistic confidence score for if the person in the given video was live, * represented as a float value between 0 to 100.

*/ inline GetFaceLivenessSessionResultsResult& WithConfidence(double value) { SetConfidence(value); return *this;} /** *

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.

*/ inline const AuditImage& GetReferenceImage() const{ return m_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.

*/ inline void SetReferenceImage(const AuditImage& value) { m_referenceImage = value; } /** *

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.

*/ inline void SetReferenceImage(AuditImage&& value) { m_referenceImage = std::move(value); } /** *

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.

*/ inline GetFaceLivenessSessionResultsResult& WithReferenceImage(const AuditImage& value) { SetReferenceImage(value); return *this;} /** *

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.

*/ inline GetFaceLivenessSessionResultsResult& WithReferenceImage(AuditImage&& value) { SetReferenceImage(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Vector& GetAuditImages() const{ return m_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.

*/ inline void SetAuditImages(const Aws::Vector& value) { m_auditImages = value; } /** *

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.

*/ inline void SetAuditImages(Aws::Vector&& value) { m_auditImages = std::move(value); } /** *

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.

*/ inline GetFaceLivenessSessionResultsResult& WithAuditImages(const Aws::Vector& value) { SetAuditImages(value); return *this;} /** *

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.

*/ inline GetFaceLivenessSessionResultsResult& WithAuditImages(Aws::Vector&& value) { SetAuditImages(std::move(value)); return *this;} /** *

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.

*/ inline GetFaceLivenessSessionResultsResult& AddAuditImages(const AuditImage& value) { m_auditImages.push_back(value); return *this; } /** *

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.

*/ inline GetFaceLivenessSessionResultsResult& AddAuditImages(AuditImage&& value) { m_auditImages.push_back(std::move(value)); return *this; } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetFaceLivenessSessionResultsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFaceLivenessSessionResultsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFaceLivenessSessionResultsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_sessionId; LivenessSessionStatus m_status; double m_confidence; AuditImage m_referenceImage; Aws::Vector m_auditImages; Aws::String m_requestId; }; } // namespace Model } // namespace Rekognition } // namespace Aws