AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FaceDetail.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.h>
9#include <aws/rekognition/model/AgeRange.h>
10#include <aws/rekognition/model/Smile.h>
11#include <aws/rekognition/model/Eyeglasses.h>
12#include <aws/rekognition/model/Sunglasses.h>
13#include <aws/rekognition/model/Gender.h>
14#include <aws/rekognition/model/Beard.h>
15#include <aws/rekognition/model/Mustache.h>
16#include <aws/rekognition/model/EyeOpen.h>
17#include <aws/rekognition/model/MouthOpen.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/rekognition/model/Pose.h>
20#include <aws/rekognition/model/ImageQuality.h>
21#include <aws/rekognition/model/FaceOccluded.h>
22#include <aws/rekognition/model/EyeDirection.h>
23#include <aws/rekognition/model/Emotion.h>
24#include <aws/rekognition/model/Landmark.h>
25#include <utility>
26
27namespace Aws
28{
29namespace Utils
30{
31namespace Json
32{
33 class JsonValue;
34 class JsonView;
35} // namespace Json
36} // namespace Utils
37namespace Rekognition
38{
39namespace Model
40{
41
65 {
66 public:
67 AWS_REKOGNITION_API FaceDetail();
68 AWS_REKOGNITION_API FaceDetail(Aws::Utils::Json::JsonView jsonValue);
69 AWS_REKOGNITION_API FaceDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
70 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
71
72
74
77 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
78 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
79 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
80 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
81 inline FaceDetail& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
82 inline FaceDetail& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
84
86
90 inline const AgeRange& GetAgeRange() const{ return m_ageRange; }
91 inline bool AgeRangeHasBeenSet() const { return m_ageRangeHasBeenSet; }
92 inline void SetAgeRange(const AgeRange& value) { m_ageRangeHasBeenSet = true; m_ageRange = value; }
93 inline void SetAgeRange(AgeRange&& value) { m_ageRangeHasBeenSet = true; m_ageRange = std::move(value); }
94 inline FaceDetail& WithAgeRange(const AgeRange& value) { SetAgeRange(value); return *this;}
95 inline FaceDetail& WithAgeRange(AgeRange&& value) { SetAgeRange(std::move(value)); return *this;}
97
99
103 inline const Smile& GetSmile() const{ return m_smile; }
104 inline bool SmileHasBeenSet() const { return m_smileHasBeenSet; }
105 inline void SetSmile(const Smile& value) { m_smileHasBeenSet = true; m_smile = value; }
106 inline void SetSmile(Smile&& value) { m_smileHasBeenSet = true; m_smile = std::move(value); }
107 inline FaceDetail& WithSmile(const Smile& value) { SetSmile(value); return *this;}
108 inline FaceDetail& WithSmile(Smile&& value) { SetSmile(std::move(value)); return *this;}
110
112
116 inline const Eyeglasses& GetEyeglasses() const{ return m_eyeglasses; }
117 inline bool EyeglassesHasBeenSet() const { return m_eyeglassesHasBeenSet; }
118 inline void SetEyeglasses(const Eyeglasses& value) { m_eyeglassesHasBeenSet = true; m_eyeglasses = value; }
119 inline void SetEyeglasses(Eyeglasses&& value) { m_eyeglassesHasBeenSet = true; m_eyeglasses = std::move(value); }
120 inline FaceDetail& WithEyeglasses(const Eyeglasses& value) { SetEyeglasses(value); return *this;}
121 inline FaceDetail& WithEyeglasses(Eyeglasses&& value) { SetEyeglasses(std::move(value)); return *this;}
123
125
129 inline const Sunglasses& GetSunglasses() const{ return m_sunglasses; }
130 inline bool SunglassesHasBeenSet() const { return m_sunglassesHasBeenSet; }
131 inline void SetSunglasses(const Sunglasses& value) { m_sunglassesHasBeenSet = true; m_sunglasses = value; }
132 inline void SetSunglasses(Sunglasses&& value) { m_sunglassesHasBeenSet = true; m_sunglasses = std::move(value); }
133 inline FaceDetail& WithSunglasses(const Sunglasses& value) { SetSunglasses(value); return *this;}
134 inline FaceDetail& WithSunglasses(Sunglasses&& value) { SetSunglasses(std::move(value)); return *this;}
136
138
141 inline const Gender& GetGender() const{ return m_gender; }
142 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
143 inline void SetGender(const Gender& value) { m_genderHasBeenSet = true; m_gender = value; }
144 inline void SetGender(Gender&& value) { m_genderHasBeenSet = true; m_gender = std::move(value); }
145 inline FaceDetail& WithGender(const Gender& value) { SetGender(value); return *this;}
146 inline FaceDetail& WithGender(Gender&& value) { SetGender(std::move(value)); return *this;}
148
150
154 inline const Beard& GetBeard() const{ return m_beard; }
155 inline bool BeardHasBeenSet() const { return m_beardHasBeenSet; }
156 inline void SetBeard(const Beard& value) { m_beardHasBeenSet = true; m_beard = value; }
157 inline void SetBeard(Beard&& value) { m_beardHasBeenSet = true; m_beard = std::move(value); }
158 inline FaceDetail& WithBeard(const Beard& value) { SetBeard(value); return *this;}
159 inline FaceDetail& WithBeard(Beard&& value) { SetBeard(std::move(value)); return *this;}
161
163
167 inline const Mustache& GetMustache() const{ return m_mustache; }
168 inline bool MustacheHasBeenSet() const { return m_mustacheHasBeenSet; }
169 inline void SetMustache(const Mustache& value) { m_mustacheHasBeenSet = true; m_mustache = value; }
170 inline void SetMustache(Mustache&& value) { m_mustacheHasBeenSet = true; m_mustache = std::move(value); }
171 inline FaceDetail& WithMustache(const Mustache& value) { SetMustache(value); return *this;}
172 inline FaceDetail& WithMustache(Mustache&& value) { SetMustache(std::move(value)); return *this;}
174
176
180 inline const EyeOpen& GetEyesOpen() const{ return m_eyesOpen; }
181 inline bool EyesOpenHasBeenSet() const { return m_eyesOpenHasBeenSet; }
182 inline void SetEyesOpen(const EyeOpen& value) { m_eyesOpenHasBeenSet = true; m_eyesOpen = value; }
183 inline void SetEyesOpen(EyeOpen&& value) { m_eyesOpenHasBeenSet = true; m_eyesOpen = std::move(value); }
184 inline FaceDetail& WithEyesOpen(const EyeOpen& value) { SetEyesOpen(value); return *this;}
185 inline FaceDetail& WithEyesOpen(EyeOpen&& value) { SetEyesOpen(std::move(value)); return *this;}
187
189
193 inline const MouthOpen& GetMouthOpen() const{ return m_mouthOpen; }
194 inline bool MouthOpenHasBeenSet() const { return m_mouthOpenHasBeenSet; }
195 inline void SetMouthOpen(const MouthOpen& value) { m_mouthOpenHasBeenSet = true; m_mouthOpen = value; }
196 inline void SetMouthOpen(MouthOpen&& value) { m_mouthOpenHasBeenSet = true; m_mouthOpen = std::move(value); }
197 inline FaceDetail& WithMouthOpen(const MouthOpen& value) { SetMouthOpen(value); return *this;}
198 inline FaceDetail& WithMouthOpen(MouthOpen&& value) { SetMouthOpen(std::move(value)); return *this;}
200
202
210 inline const Aws::Vector<Emotion>& GetEmotions() const{ return m_emotions; }
211 inline bool EmotionsHasBeenSet() const { return m_emotionsHasBeenSet; }
212 inline void SetEmotions(const Aws::Vector<Emotion>& value) { m_emotionsHasBeenSet = true; m_emotions = value; }
213 inline void SetEmotions(Aws::Vector<Emotion>&& value) { m_emotionsHasBeenSet = true; m_emotions = std::move(value); }
214 inline FaceDetail& WithEmotions(const Aws::Vector<Emotion>& value) { SetEmotions(value); return *this;}
215 inline FaceDetail& WithEmotions(Aws::Vector<Emotion>&& value) { SetEmotions(std::move(value)); return *this;}
216 inline FaceDetail& AddEmotions(const Emotion& value) { m_emotionsHasBeenSet = true; m_emotions.push_back(value); return *this; }
217 inline FaceDetail& AddEmotions(Emotion&& value) { m_emotionsHasBeenSet = true; m_emotions.push_back(std::move(value)); return *this; }
219
221
224 inline const Aws::Vector<Landmark>& GetLandmarks() const{ return m_landmarks; }
225 inline bool LandmarksHasBeenSet() const { return m_landmarksHasBeenSet; }
226 inline void SetLandmarks(const Aws::Vector<Landmark>& value) { m_landmarksHasBeenSet = true; m_landmarks = value; }
227 inline void SetLandmarks(Aws::Vector<Landmark>&& value) { m_landmarksHasBeenSet = true; m_landmarks = std::move(value); }
228 inline FaceDetail& WithLandmarks(const Aws::Vector<Landmark>& value) { SetLandmarks(value); return *this;}
229 inline FaceDetail& WithLandmarks(Aws::Vector<Landmark>&& value) { SetLandmarks(std::move(value)); return *this;}
230 inline FaceDetail& AddLandmarks(const Landmark& value) { m_landmarksHasBeenSet = true; m_landmarks.push_back(value); return *this; }
231 inline FaceDetail& AddLandmarks(Landmark&& value) { m_landmarksHasBeenSet = true; m_landmarks.push_back(std::move(value)); return *this; }
233
235
239 inline const Pose& GetPose() const{ return m_pose; }
240 inline bool PoseHasBeenSet() const { return m_poseHasBeenSet; }
241 inline void SetPose(const Pose& value) { m_poseHasBeenSet = true; m_pose = value; }
242 inline void SetPose(Pose&& value) { m_poseHasBeenSet = true; m_pose = std::move(value); }
243 inline FaceDetail& WithPose(const Pose& value) { SetPose(value); return *this;}
244 inline FaceDetail& WithPose(Pose&& value) { SetPose(std::move(value)); return *this;}
246
248
251 inline const ImageQuality& GetQuality() const{ return m_quality; }
252 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
253 inline void SetQuality(const ImageQuality& value) { m_qualityHasBeenSet = true; m_quality = value; }
254 inline void SetQuality(ImageQuality&& value) { m_qualityHasBeenSet = true; m_quality = std::move(value); }
255 inline FaceDetail& WithQuality(const ImageQuality& value) { SetQuality(value); return *this;}
256 inline FaceDetail& WithQuality(ImageQuality&& value) { SetQuality(std::move(value)); return *this;}
258
260
264 inline double GetConfidence() const{ return m_confidence; }
265 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
266 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
267 inline FaceDetail& WithConfidence(double value) { SetConfidence(value); return *this;}
269
271
279 inline const FaceOccluded& GetFaceOccluded() const{ return m_faceOccluded; }
280 inline bool FaceOccludedHasBeenSet() const { return m_faceOccludedHasBeenSet; }
281 inline void SetFaceOccluded(const FaceOccluded& value) { m_faceOccludedHasBeenSet = true; m_faceOccluded = value; }
282 inline void SetFaceOccluded(FaceOccluded&& value) { m_faceOccludedHasBeenSet = true; m_faceOccluded = std::move(value); }
283 inline FaceDetail& WithFaceOccluded(const FaceOccluded& value) { SetFaceOccluded(value); return *this;}
284 inline FaceDetail& WithFaceOccluded(FaceOccluded&& value) { SetFaceOccluded(std::move(value)); return *this;}
286
288
292 inline const EyeDirection& GetEyeDirection() const{ return m_eyeDirection; }
293 inline bool EyeDirectionHasBeenSet() const { return m_eyeDirectionHasBeenSet; }
294 inline void SetEyeDirection(const EyeDirection& value) { m_eyeDirectionHasBeenSet = true; m_eyeDirection = value; }
295 inline void SetEyeDirection(EyeDirection&& value) { m_eyeDirectionHasBeenSet = true; m_eyeDirection = std::move(value); }
296 inline FaceDetail& WithEyeDirection(const EyeDirection& value) { SetEyeDirection(value); return *this;}
297 inline FaceDetail& WithEyeDirection(EyeDirection&& value) { SetEyeDirection(std::move(value)); return *this;}
299 private:
300
301 BoundingBox m_boundingBox;
302 bool m_boundingBoxHasBeenSet = false;
303
304 AgeRange m_ageRange;
305 bool m_ageRangeHasBeenSet = false;
306
307 Smile m_smile;
308 bool m_smileHasBeenSet = false;
309
310 Eyeglasses m_eyeglasses;
311 bool m_eyeglassesHasBeenSet = false;
312
313 Sunglasses m_sunglasses;
314 bool m_sunglassesHasBeenSet = false;
315
316 Gender m_gender;
317 bool m_genderHasBeenSet = false;
318
319 Beard m_beard;
320 bool m_beardHasBeenSet = false;
321
322 Mustache m_mustache;
323 bool m_mustacheHasBeenSet = false;
324
325 EyeOpen m_eyesOpen;
326 bool m_eyesOpenHasBeenSet = false;
327
328 MouthOpen m_mouthOpen;
329 bool m_mouthOpenHasBeenSet = false;
330
331 Aws::Vector<Emotion> m_emotions;
332 bool m_emotionsHasBeenSet = false;
333
334 Aws::Vector<Landmark> m_landmarks;
335 bool m_landmarksHasBeenSet = false;
336
337 Pose m_pose;
338 bool m_poseHasBeenSet = false;
339
340 ImageQuality m_quality;
341 bool m_qualityHasBeenSet = false;
342
343 double m_confidence;
344 bool m_confidenceHasBeenSet = false;
345
346 FaceOccluded m_faceOccluded;
347 bool m_faceOccludedHasBeenSet = false;
348
349 EyeDirection m_eyeDirection;
350 bool m_eyeDirectionHasBeenSet = false;
351 };
352
353} // namespace Model
354} // namespace Rekognition
355} // namespace Aws
FaceDetail & WithSunglasses(const Sunglasses &value)
Definition FaceDetail.h:133
void SetSunglasses(const Sunglasses &value)
Definition FaceDetail.h:131
const Gender & GetGender() const
Definition FaceDetail.h:141
void SetFaceOccluded(const FaceOccluded &value)
Definition FaceDetail.h:281
const ImageQuality & GetQuality() const
Definition FaceDetail.h:251
FaceDetail & WithBoundingBox(const BoundingBox &value)
Definition FaceDetail.h:81
FaceDetail & WithEyeglasses(const Eyeglasses &value)
Definition FaceDetail.h:120
FaceDetail & WithMustache(const Mustache &value)
Definition FaceDetail.h:171
FaceDetail & WithMouthOpen(MouthOpen &&value)
Definition FaceDetail.h:198
FaceDetail & WithQuality(const ImageQuality &value)
Definition FaceDetail.h:255
FaceDetail & WithFaceOccluded(FaceOccluded &&value)
Definition FaceDetail.h:284
FaceDetail & WithSmile(const Smile &value)
Definition FaceDetail.h:107
void SetEyeDirection(EyeDirection &&value)
Definition FaceDetail.h:295
FaceDetail & WithEyeDirection(EyeDirection &&value)
Definition FaceDetail.h:297
const FaceOccluded & GetFaceOccluded() const
Definition FaceDetail.h:279
void SetEyesOpen(const EyeOpen &value)
Definition FaceDetail.h:182
void SetGender(const Gender &value)
Definition FaceDetail.h:143
const BoundingBox & GetBoundingBox() const
Definition FaceDetail.h:77
FaceDetail & AddEmotions(const Emotion &value)
Definition FaceDetail.h:216
void SetSmile(const Smile &value)
Definition FaceDetail.h:105
FaceDetail & WithAgeRange(AgeRange &&value)
Definition FaceDetail.h:95
const Beard & GetBeard() const
Definition FaceDetail.h:154
void SetEmotions(const Aws::Vector< Emotion > &value)
Definition FaceDetail.h:212
void SetQuality(const ImageQuality &value)
Definition FaceDetail.h:253
void SetMouthOpen(const MouthOpen &value)
Definition FaceDetail.h:195
void SetEyesOpen(EyeOpen &&value)
Definition FaceDetail.h:183
FaceDetail & WithEyesOpen(const EyeOpen &value)
Definition FaceDetail.h:184
const Aws::Vector< Emotion > & GetEmotions() const
Definition FaceDetail.h:210
FaceDetail & WithBeard(const Beard &value)
Definition FaceDetail.h:158
const EyeDirection & GetEyeDirection() const
Definition FaceDetail.h:292
FaceDetail & WithGender(const Gender &value)
Definition FaceDetail.h:145
FaceDetail & AddLandmarks(const Landmark &value)
Definition FaceDetail.h:230
FaceDetail & WithBeard(Beard &&value)
Definition FaceDetail.h:159
const AgeRange & GetAgeRange() const
Definition FaceDetail.h:90
void SetAgeRange(AgeRange &&value)
Definition FaceDetail.h:93
const Aws::Vector< Landmark > & GetLandmarks() const
Definition FaceDetail.h:224
FaceDetail & WithPose(const Pose &value)
Definition FaceDetail.h:243
void SetMustache(Mustache &&value)
Definition FaceDetail.h:170
FaceDetail & WithEyesOpen(EyeOpen &&value)
Definition FaceDetail.h:185
AWS_REKOGNITION_API FaceDetail(Aws::Utils::Json::JsonView jsonValue)
const Smile & GetSmile() const
Definition FaceDetail.h:103
void SetBoundingBox(BoundingBox &&value)
Definition FaceDetail.h:80
FaceDetail & WithAgeRange(const AgeRange &value)
Definition FaceDetail.h:94
FaceDetail & WithEmotions(const Aws::Vector< Emotion > &value)
Definition FaceDetail.h:214
AWS_REKOGNITION_API FaceDetail()
const EyeOpen & GetEyesOpen() const
Definition FaceDetail.h:180
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLandmarks(const Aws::Vector< Landmark > &value)
Definition FaceDetail.h:226
FaceDetail & WithMustache(Mustache &&value)
Definition FaceDetail.h:172
void SetQuality(ImageQuality &&value)
Definition FaceDetail.h:254
FaceDetail & WithSmile(Smile &&value)
Definition FaceDetail.h:108
FaceDetail & WithEmotions(Aws::Vector< Emotion > &&value)
Definition FaceDetail.h:215
FaceDetail & WithConfidence(double value)
Definition FaceDetail.h:267
void SetEyeglasses(Eyeglasses &&value)
Definition FaceDetail.h:119
FaceDetail & AddEmotions(Emotion &&value)
Definition FaceDetail.h:217
AWS_REKOGNITION_API FaceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSunglasses(Sunglasses &&value)
Definition FaceDetail.h:132
FaceDetail & WithPose(Pose &&value)
Definition FaceDetail.h:244
const MouthOpen & GetMouthOpen() const
Definition FaceDetail.h:193
void SetMouthOpen(MouthOpen &&value)
Definition FaceDetail.h:196
void SetFaceOccluded(FaceOccluded &&value)
Definition FaceDetail.h:282
void SetAgeRange(const AgeRange &value)
Definition FaceDetail.h:92
FaceDetail & WithFaceOccluded(const FaceOccluded &value)
Definition FaceDetail.h:283
void SetBeard(const Beard &value)
Definition FaceDetail.h:156
const Sunglasses & GetSunglasses() const
Definition FaceDetail.h:129
FaceDetail & WithBoundingBox(BoundingBox &&value)
Definition FaceDetail.h:82
void SetEyeglasses(const Eyeglasses &value)
Definition FaceDetail.h:118
FaceDetail & WithLandmarks(Aws::Vector< Landmark > &&value)
Definition FaceDetail.h:229
FaceDetail & WithLandmarks(const Aws::Vector< Landmark > &value)
Definition FaceDetail.h:228
FaceDetail & WithGender(Gender &&value)
Definition FaceDetail.h:146
void SetBoundingBox(const BoundingBox &value)
Definition FaceDetail.h:79
void SetMustache(const Mustache &value)
Definition FaceDetail.h:169
FaceDetail & WithSunglasses(Sunglasses &&value)
Definition FaceDetail.h:134
FaceDetail & AddLandmarks(Landmark &&value)
Definition FaceDetail.h:231
void SetPose(const Pose &value)
Definition FaceDetail.h:241
void SetEyeDirection(const EyeDirection &value)
Definition FaceDetail.h:294
const Eyeglasses & GetEyeglasses() const
Definition FaceDetail.h:116
FaceDetail & WithQuality(ImageQuality &&value)
Definition FaceDetail.h:256
void SetEmotions(Aws::Vector< Emotion > &&value)
Definition FaceDetail.h:213
void SetLandmarks(Aws::Vector< Landmark > &&value)
Definition FaceDetail.h:227
const Mustache & GetMustache() const
Definition FaceDetail.h:167
FaceDetail & WithEyeglasses(Eyeglasses &&value)
Definition FaceDetail.h:121
FaceDetail & WithMouthOpen(const MouthOpen &value)
Definition FaceDetail.h:197
FaceDetail & WithEyeDirection(const EyeDirection &value)
Definition FaceDetail.h:296
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue