AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ComparedFace.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/BoundingBox.h>
10#include <aws/rekognition/model/Emotion.h>
11#include <aws/rekognition/model/ImageQuality.h>
12#include <aws/rekognition/model/Landmark.h>
13#include <aws/rekognition/model/Pose.h>
14#include <aws/rekognition/model/Smile.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition {
26namespace Model {
27
36 public:
37 AWS_REKOGNITION_API ComparedFace() = default;
38 AWS_REKOGNITION_API ComparedFace(Aws::Utils::Json::JsonView jsonValue);
39 AWS_REKOGNITION_API ComparedFace& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
47 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
48 template <typename BoundingBoxT = BoundingBox>
49 void SetBoundingBox(BoundingBoxT&& value) {
50 m_boundingBoxHasBeenSet = true;
51 m_boundingBox = std::forward<BoundingBoxT>(value);
52 }
53 template <typename BoundingBoxT = BoundingBox>
54 ComparedFace& WithBoundingBox(BoundingBoxT&& value) {
55 SetBoundingBox(std::forward<BoundingBoxT>(value));
56 return *this;
57 }
59
61
64 inline double GetConfidence() const { return m_confidence; }
65 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
66 inline void SetConfidence(double value) {
67 m_confidenceHasBeenSet = true;
68 m_confidence = value;
69 }
70 inline ComparedFace& WithConfidence(double value) {
71 SetConfidence(value);
72 return *this;
73 }
75
77
80 inline const Aws::Vector<Landmark>& GetLandmarks() const { return m_landmarks; }
81 inline bool LandmarksHasBeenSet() const { return m_landmarksHasBeenSet; }
82 template <typename LandmarksT = Aws::Vector<Landmark>>
83 void SetLandmarks(LandmarksT&& value) {
84 m_landmarksHasBeenSet = true;
85 m_landmarks = std::forward<LandmarksT>(value);
86 }
87 template <typename LandmarksT = Aws::Vector<Landmark>>
88 ComparedFace& WithLandmarks(LandmarksT&& value) {
89 SetLandmarks(std::forward<LandmarksT>(value));
90 return *this;
91 }
92 template <typename LandmarksT = Landmark>
93 ComparedFace& AddLandmarks(LandmarksT&& value) {
94 m_landmarksHasBeenSet = true;
95 m_landmarks.emplace_back(std::forward<LandmarksT>(value));
96 return *this;
97 }
99
101
104 inline const Pose& GetPose() const { return m_pose; }
105 inline bool PoseHasBeenSet() const { return m_poseHasBeenSet; }
106 template <typename PoseT = Pose>
107 void SetPose(PoseT&& value) {
108 m_poseHasBeenSet = true;
109 m_pose = std::forward<PoseT>(value);
110 }
111 template <typename PoseT = Pose>
112 ComparedFace& WithPose(PoseT&& value) {
113 SetPose(std::forward<PoseT>(value));
114 return *this;
115 }
117
119
122 inline const ImageQuality& GetQuality() const { return m_quality; }
123 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
124 template <typename QualityT = ImageQuality>
125 void SetQuality(QualityT&& value) {
126 m_qualityHasBeenSet = true;
127 m_quality = std::forward<QualityT>(value);
128 }
129 template <typename QualityT = ImageQuality>
130 ComparedFace& WithQuality(QualityT&& value) {
131 SetQuality(std::forward<QualityT>(value));
132 return *this;
133 }
135
137
142 inline const Aws::Vector<Emotion>& GetEmotions() const { return m_emotions; }
143 inline bool EmotionsHasBeenSet() const { return m_emotionsHasBeenSet; }
144 template <typename EmotionsT = Aws::Vector<Emotion>>
145 void SetEmotions(EmotionsT&& value) {
146 m_emotionsHasBeenSet = true;
147 m_emotions = std::forward<EmotionsT>(value);
148 }
149 template <typename EmotionsT = Aws::Vector<Emotion>>
150 ComparedFace& WithEmotions(EmotionsT&& value) {
151 SetEmotions(std::forward<EmotionsT>(value));
152 return *this;
153 }
154 template <typename EmotionsT = Emotion>
155 ComparedFace& AddEmotions(EmotionsT&& value) {
156 m_emotionsHasBeenSet = true;
157 m_emotions.emplace_back(std::forward<EmotionsT>(value));
158 return *this;
159 }
161
163
167 inline const Smile& GetSmile() const { return m_smile; }
168 inline bool SmileHasBeenSet() const { return m_smileHasBeenSet; }
169 template <typename SmileT = Smile>
170 void SetSmile(SmileT&& value) {
171 m_smileHasBeenSet = true;
172 m_smile = std::forward<SmileT>(value);
173 }
174 template <typename SmileT = Smile>
175 ComparedFace& WithSmile(SmileT&& value) {
176 SetSmile(std::forward<SmileT>(value));
177 return *this;
178 }
180 private:
181 BoundingBox m_boundingBox;
182
183 double m_confidence{0.0};
184
185 Aws::Vector<Landmark> m_landmarks;
186
187 Pose m_pose;
188
189 ImageQuality m_quality;
190
191 Aws::Vector<Emotion> m_emotions;
192
193 Smile m_smile;
194 bool m_boundingBoxHasBeenSet = false;
195 bool m_confidenceHasBeenSet = false;
196 bool m_landmarksHasBeenSet = false;
197 bool m_poseHasBeenSet = false;
198 bool m_qualityHasBeenSet = false;
199 bool m_emotionsHasBeenSet = false;
200 bool m_smileHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Rekognition
205} // namespace Aws
const ImageQuality & GetQuality() const
ComparedFace & WithBoundingBox(BoundingBoxT &&value)
ComparedFace & WithSmile(SmileT &&value)
const Aws::Vector< Landmark > & GetLandmarks() const
AWS_REKOGNITION_API ComparedFace()=default
ComparedFace & WithQuality(QualityT &&value)
ComparedFace & WithLandmarks(LandmarksT &&value)
ComparedFace & AddLandmarks(LandmarksT &&value)
AWS_REKOGNITION_API ComparedFace & operator=(Aws::Utils::Json::JsonView jsonValue)
ComparedFace & WithPose(PoseT &&value)
void SetEmotions(EmotionsT &&value)
ComparedFace & AddEmotions(EmotionsT &&value)
ComparedFace & WithEmotions(EmotionsT &&value)
const BoundingBox & GetBoundingBox() const
AWS_REKOGNITION_API ComparedFace(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBoundingBox(BoundingBoxT &&value)
void SetLandmarks(LandmarksT &&value)
const Aws::Vector< Emotion > & GetEmotions() const
ComparedFace & WithConfidence(double value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue