/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Rekognition { namespace Model { /** *

Information about a person whose face matches a face(s) in an Amazon * Rekognition collection. Includes information about the faces in the Amazon * Rekognition collection (FaceMatch), information about the person * (PersonDetail), and the time stamp for when the person was detected in a * video. An array of PersonMatch objects is returned by * GetFaceSearch.

See Also:

AWS * API Reference

*/ class PersonMatch { public: AWS_REKOGNITION_API PersonMatch(); AWS_REKOGNITION_API PersonMatch(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API PersonMatch& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The time, in milliseconds from the beginning of the video, that the person * was matched in the video.

*/ inline long long GetTimestamp() const{ return m_timestamp; } /** *

The time, in milliseconds from the beginning of the video, that the person * was matched in the video.

*/ inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; } /** *

The time, in milliseconds from the beginning of the video, that the person * was matched in the video.

*/ inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; } /** *

The time, in milliseconds from the beginning of the video, that the person * was matched in the video.

*/ inline PersonMatch& WithTimestamp(long long value) { SetTimestamp(value); return *this;} /** *

Information about the matched person.

*/ inline const PersonDetail& GetPerson() const{ return m_person; } /** *

Information about the matched person.

*/ inline bool PersonHasBeenSet() const { return m_personHasBeenSet; } /** *

Information about the matched person.

*/ inline void SetPerson(const PersonDetail& value) { m_personHasBeenSet = true; m_person = value; } /** *

Information about the matched person.

*/ inline void SetPerson(PersonDetail&& value) { m_personHasBeenSet = true; m_person = std::move(value); } /** *

Information about the matched person.

*/ inline PersonMatch& WithPerson(const PersonDetail& value) { SetPerson(value); return *this;} /** *

Information about the matched person.

*/ inline PersonMatch& WithPerson(PersonDetail&& value) { SetPerson(std::move(value)); return *this;} /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline const Aws::Vector& GetFaceMatches() const{ return m_faceMatches; } /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline bool FaceMatchesHasBeenSet() const { return m_faceMatchesHasBeenSet; } /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline void SetFaceMatches(const Aws::Vector& value) { m_faceMatchesHasBeenSet = true; m_faceMatches = value; } /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline void SetFaceMatches(Aws::Vector&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches = std::move(value); } /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline PersonMatch& WithFaceMatches(const Aws::Vector& value) { SetFaceMatches(value); return *this;} /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline PersonMatch& WithFaceMatches(Aws::Vector&& value) { SetFaceMatches(std::move(value)); return *this;} /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline PersonMatch& AddFaceMatches(const FaceMatch& value) { m_faceMatchesHasBeenSet = true; m_faceMatches.push_back(value); return *this; } /** *

Information about the faces in the input collection that match the face of a * person in the video.

*/ inline PersonMatch& AddFaceMatches(FaceMatch&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches.push_back(std::move(value)); return *this; } private: long long m_timestamp; bool m_timestampHasBeenSet = false; PersonDetail m_person; bool m_personHasBeenSet = false; Aws::Vector m_faceMatches; bool m_faceMatchesHasBeenSet = false; }; } // namespace Model } // namespace Rekognition } // namespace Aws