AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PersonMatch.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/PersonDetail.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/FaceMatch.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition
24{
25namespace Model
26{
27
39 {
40 public:
41 AWS_REKOGNITION_API PersonMatch() = default;
42 AWS_REKOGNITION_API PersonMatch(Aws::Utils::Json::JsonView jsonValue);
43 AWS_REKOGNITION_API PersonMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline long long GetTimestamp() const { return m_timestamp; }
53 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
54 inline void SetTimestamp(long long value) { m_timestampHasBeenSet = true; m_timestamp = value; }
55 inline PersonMatch& WithTimestamp(long long value) { SetTimestamp(value); return *this;}
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) { m_personHasBeenSet = true; m_person = std::forward<PersonT>(value); }
66 template<typename PersonT = PersonDetail>
67 PersonMatch& WithPerson(PersonT&& value) { SetPerson(std::forward<PersonT>(value)); return *this;}
69
71
75 inline const Aws::Vector<FaceMatch>& GetFaceMatches() const { return m_faceMatches; }
76 inline bool FaceMatchesHasBeenSet() const { return m_faceMatchesHasBeenSet; }
77 template<typename FaceMatchesT = Aws::Vector<FaceMatch>>
78 void SetFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches = std::forward<FaceMatchesT>(value); }
79 template<typename FaceMatchesT = Aws::Vector<FaceMatch>>
80 PersonMatch& WithFaceMatches(FaceMatchesT&& value) { SetFaceMatches(std::forward<FaceMatchesT>(value)); return *this;}
81 template<typename FaceMatchesT = FaceMatch>
82 PersonMatch& AddFaceMatches(FaceMatchesT&& value) { m_faceMatchesHasBeenSet = true; m_faceMatches.emplace_back(std::forward<FaceMatchesT>(value)); return *this; }
84 private:
85
86 long long m_timestamp{0};
87 bool m_timestampHasBeenSet = false;
88
89 PersonDetail m_person;
90 bool m_personHasBeenSet = false;
91
92 Aws::Vector<FaceMatch> m_faceMatches;
93 bool m_faceMatchesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace Rekognition
98} // namespace Aws
PersonMatch & WithPerson(PersonT &&value)
Definition PersonMatch.h:67
AWS_REKOGNITION_API PersonMatch(Aws::Utils::Json::JsonView jsonValue)
void SetTimestamp(long long value)
Definition PersonMatch.h:54
PersonMatch & WithFaceMatches(FaceMatchesT &&value)
Definition PersonMatch.h:80
const PersonDetail & GetPerson() const
Definition PersonMatch.h:62
PersonMatch & AddFaceMatches(FaceMatchesT &&value)
Definition PersonMatch.h:82
PersonMatch & WithTimestamp(long long value)
Definition PersonMatch.h:55
void SetFaceMatches(FaceMatchesT &&value)
Definition PersonMatch.h:78
void SetPerson(PersonT &&value)
Definition PersonMatch.h:65
AWS_REKOGNITION_API PersonMatch()=default
const Aws::Vector< FaceMatch > & GetFaceMatches() const
Definition PersonMatch.h:75
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