AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
PersonMatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/rekognition/Rekognition_EXPORTS.h>
9#include <aws/rekognition/model/FaceMatch.h>
10#include <aws/rekognition/model/PersonDetail.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Rekognition {
22namespace Model {
23
35 public:
36 AWS_REKOGNITION_API PersonMatch() = default;
37 AWS_REKOGNITION_API PersonMatch(Aws::Utils::Json::JsonView jsonValue);
38 AWS_REKOGNITION_API PersonMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline long long GetTimestamp() const { return m_timestamp; }
47 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
48 inline void SetTimestamp(long long value) {
49 m_timestampHasBeenSet = true;
50 m_timestamp = value;
51 }
52 inline PersonMatch& WithTimestamp(long long value) {
53 SetTimestamp(value);
54 return *this;
55 }
57
59
62 inline const PersonDetail& GetPerson() const { return m_person; }
63 inline bool PersonHasBeenSet() const { return m_personHasBeenSet; }
64 template <typename PersonT = PersonDetail>
65 void SetPerson(PersonT&& value) {
66 m_personHasBeenSet = true;
67 m_person = std::forward<PersonT>(value);
68 }
69 template <typename PersonT = PersonDetail>
70 PersonMatch& WithPerson(PersonT&& value) {
71 SetPerson(std::forward<PersonT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
82 inline bool FaceMatchesHasBeenSet() const { return m_faceMatchesHasBeenSet; }
83 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
84 void SetFaceMatches(FaceMatchesT&& value) {
85 m_faceMatchesHasBeenSet = true;
86 m_faceMatches = std::forward<FaceMatchesT>(value);
87 }
88 template <typename FaceMatchesT = Aws::Vector<FaceMatch>>
89 PersonMatch& WithFaceMatches(FaceMatchesT&& value) {
90 SetFaceMatches(std::forward<FaceMatchesT>(value));
91 return *this;
92 }
93 template <typename FaceMatchesT = FaceMatch>
94 PersonMatch& AddFaceMatches(FaceMatchesT&& value) {
95 m_faceMatchesHasBeenSet = true;
96 m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value));
97 return *this;
98 }
100 private:
101 long long m_timestamp{0};
102 bool m_timestampHasBeenSet = false;
103
104 PersonDetail m_person;
105 bool m_personHasBeenSet = false;
106
107 Aws::Vector<FaceMatch> m_faceMatches;
108 bool m_faceMatchesHasBeenSet = false;
109};
110
111} // namespace Model
112} // namespace Rekognition
113} // namespace Aws
PersonMatch & WithPerson(PersonT &&value)
Definition PersonMatch.h:70
AWS_REKOGNITION_API PersonMatch(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(long long value)
Definition PersonMatch.h:48
PersonMatch & WithFaceMatches(FaceMatchesT &&value)
Definition PersonMatch.h:89
const PersonDetail & GetPerson() const
Definition PersonMatch.h:62
PersonMatch & AddFaceMatches(FaceMatchesT &&value)
Definition PersonMatch.h:94
PersonMatch & WithTimestamp(long long value)
Definition PersonMatch.h:52
void SetFaceMatches(FaceMatchesT &&value)
Definition PersonMatch.h:84
void SetPerson(PersonT &&value)
Definition PersonMatch.h:65
AWS_REKOGNITION_API PersonMatch()=default
const Aws::Vector< FaceMatch > & GetFaceMatches() const
Definition PersonMatch.h:81
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API PersonMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue