AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename BoundingBoxT = BoundingBox>
80 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
81 template<typename BoundingBoxT = BoundingBox>
82 FaceDetail& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
84
86
90 inline const AgeRange& GetAgeRange() const { return m_ageRange; }
91 inline bool AgeRangeHasBeenSet() const { return m_ageRangeHasBeenSet; }
92 template<typename AgeRangeT = AgeRange>
93 void SetAgeRange(AgeRangeT&& value) { m_ageRangeHasBeenSet = true; m_ageRange = std::forward<AgeRangeT>(value); }
94 template<typename AgeRangeT = AgeRange>
95 FaceDetail& WithAgeRange(AgeRangeT&& value) { SetAgeRange(std::forward<AgeRangeT>(value)); return *this;}
97
99
103 inline const Smile& GetSmile() const { return m_smile; }
104 inline bool SmileHasBeenSet() const { return m_smileHasBeenSet; }
105 template<typename SmileT = Smile>
106 void SetSmile(SmileT&& value) { m_smileHasBeenSet = true; m_smile = std::forward<SmileT>(value); }
107 template<typename SmileT = Smile>
108 FaceDetail& WithSmile(SmileT&& value) { SetSmile(std::forward<SmileT>(value)); return *this;}
110
112
116 inline const Eyeglasses& GetEyeglasses() const { return m_eyeglasses; }
117 inline bool EyeglassesHasBeenSet() const { return m_eyeglassesHasBeenSet; }
118 template<typename EyeglassesT = Eyeglasses>
119 void SetEyeglasses(EyeglassesT&& value) { m_eyeglassesHasBeenSet = true; m_eyeglasses = std::forward<EyeglassesT>(value); }
120 template<typename EyeglassesT = Eyeglasses>
121 FaceDetail& WithEyeglasses(EyeglassesT&& value) { SetEyeglasses(std::forward<EyeglassesT>(value)); return *this;}
123
125
129 inline const Sunglasses& GetSunglasses() const { return m_sunglasses; }
130 inline bool SunglassesHasBeenSet() const { return m_sunglassesHasBeenSet; }
131 template<typename SunglassesT = Sunglasses>
132 void SetSunglasses(SunglassesT&& value) { m_sunglassesHasBeenSet = true; m_sunglasses = std::forward<SunglassesT>(value); }
133 template<typename SunglassesT = Sunglasses>
134 FaceDetail& WithSunglasses(SunglassesT&& value) { SetSunglasses(std::forward<SunglassesT>(value)); return *this;}
136
138
141 inline const Gender& GetGender() const { return m_gender; }
142 inline bool GenderHasBeenSet() const { return m_genderHasBeenSet; }
143 template<typename GenderT = Gender>
144 void SetGender(GenderT&& value) { m_genderHasBeenSet = true; m_gender = std::forward<GenderT>(value); }
145 template<typename GenderT = Gender>
146 FaceDetail& WithGender(GenderT&& value) { SetGender(std::forward<GenderT>(value)); return *this;}
148
150
154 inline const Beard& GetBeard() const { return m_beard; }
155 inline bool BeardHasBeenSet() const { return m_beardHasBeenSet; }
156 template<typename BeardT = Beard>
157 void SetBeard(BeardT&& value) { m_beardHasBeenSet = true; m_beard = std::forward<BeardT>(value); }
158 template<typename BeardT = Beard>
159 FaceDetail& WithBeard(BeardT&& value) { SetBeard(std::forward<BeardT>(value)); return *this;}
161
163
167 inline const Mustache& GetMustache() const { return m_mustache; }
168 inline bool MustacheHasBeenSet() const { return m_mustacheHasBeenSet; }
169 template<typename MustacheT = Mustache>
170 void SetMustache(MustacheT&& value) { m_mustacheHasBeenSet = true; m_mustache = std::forward<MustacheT>(value); }
171 template<typename MustacheT = Mustache>
172 FaceDetail& WithMustache(MustacheT&& value) { SetMustache(std::forward<MustacheT>(value)); return *this;}
174
176
180 inline const EyeOpen& GetEyesOpen() const { return m_eyesOpen; }
181 inline bool EyesOpenHasBeenSet() const { return m_eyesOpenHasBeenSet; }
182 template<typename EyesOpenT = EyeOpen>
183 void SetEyesOpen(EyesOpenT&& value) { m_eyesOpenHasBeenSet = true; m_eyesOpen = std::forward<EyesOpenT>(value); }
184 template<typename EyesOpenT = EyeOpen>
185 FaceDetail& WithEyesOpen(EyesOpenT&& value) { SetEyesOpen(std::forward<EyesOpenT>(value)); return *this;}
187
189
193 inline const MouthOpen& GetMouthOpen() const { return m_mouthOpen; }
194 inline bool MouthOpenHasBeenSet() const { return m_mouthOpenHasBeenSet; }
195 template<typename MouthOpenT = MouthOpen>
196 void SetMouthOpen(MouthOpenT&& value) { m_mouthOpenHasBeenSet = true; m_mouthOpen = std::forward<MouthOpenT>(value); }
197 template<typename MouthOpenT = MouthOpen>
198 FaceDetail& WithMouthOpen(MouthOpenT&& value) { SetMouthOpen(std::forward<MouthOpenT>(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 template<typename EmotionsT = Aws::Vector<Emotion>>
213 void SetEmotions(EmotionsT&& value) { m_emotionsHasBeenSet = true; m_emotions = std::forward<EmotionsT>(value); }
214 template<typename EmotionsT = Aws::Vector<Emotion>>
215 FaceDetail& WithEmotions(EmotionsT&& value) { SetEmotions(std::forward<EmotionsT>(value)); return *this;}
216 template<typename EmotionsT = Emotion>
217 FaceDetail& AddEmotions(EmotionsT&& value) { m_emotionsHasBeenSet = true; m_emotions.emplace_back(std::forward<EmotionsT>(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 template<typename LandmarksT = Aws::Vector<Landmark>>
227 void SetLandmarks(LandmarksT&& value) { m_landmarksHasBeenSet = true; m_landmarks = std::forward<LandmarksT>(value); }
228 template<typename LandmarksT = Aws::Vector<Landmark>>
229 FaceDetail& WithLandmarks(LandmarksT&& value) { SetLandmarks(std::forward<LandmarksT>(value)); return *this;}
230 template<typename LandmarksT = Landmark>
231 FaceDetail& AddLandmarks(LandmarksT&& value) { m_landmarksHasBeenSet = true; m_landmarks.emplace_back(std::forward<LandmarksT>(value)); return *this; }
233
235
239 inline const Pose& GetPose() const { return m_pose; }
240 inline bool PoseHasBeenSet() const { return m_poseHasBeenSet; }
241 template<typename PoseT = Pose>
242 void SetPose(PoseT&& value) { m_poseHasBeenSet = true; m_pose = std::forward<PoseT>(value); }
243 template<typename PoseT = Pose>
244 FaceDetail& WithPose(PoseT&& value) { SetPose(std::forward<PoseT>(value)); return *this;}
246
248
251 inline const ImageQuality& GetQuality() const { return m_quality; }
252 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
253 template<typename QualityT = ImageQuality>
254 void SetQuality(QualityT&& value) { m_qualityHasBeenSet = true; m_quality = std::forward<QualityT>(value); }
255 template<typename QualityT = ImageQuality>
256 FaceDetail& WithQuality(QualityT&& value) { SetQuality(std::forward<QualityT>(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 template<typename FaceOccludedT = FaceOccluded>
282 void SetFaceOccluded(FaceOccludedT&& value) { m_faceOccludedHasBeenSet = true; m_faceOccluded = std::forward<FaceOccludedT>(value); }
283 template<typename FaceOccludedT = FaceOccluded>
284 FaceDetail& WithFaceOccluded(FaceOccludedT&& value) { SetFaceOccluded(std::forward<FaceOccludedT>(value)); return *this;}
286
288
292 inline const EyeDirection& GetEyeDirection() const { return m_eyeDirection; }
293 inline bool EyeDirectionHasBeenSet() const { return m_eyeDirectionHasBeenSet; }
294 template<typename EyeDirectionT = EyeDirection>
295 void SetEyeDirection(EyeDirectionT&& value) { m_eyeDirectionHasBeenSet = true; m_eyeDirection = std::forward<EyeDirectionT>(value); }
296 template<typename EyeDirectionT = EyeDirection>
297 FaceDetail& WithEyeDirection(EyeDirectionT&& value) { SetEyeDirection(std::forward<EyeDirectionT>(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{0.0};
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
void SetGender(GenderT &&value)
Definition FaceDetail.h:144
FaceDetail & WithLandmarks(LandmarksT &&value)
Definition FaceDetail.h:229
void SetAgeRange(AgeRangeT &&value)
Definition FaceDetail.h:93
const Gender & GetGender() const
Definition FaceDetail.h:141
const ImageQuality & GetQuality() const
Definition FaceDetail.h:251
FaceDetail & WithEyeDirection(EyeDirectionT &&value)
Definition FaceDetail.h:297
FaceDetail & WithBeard(BeardT &&value)
Definition FaceDetail.h:159
FaceDetail & WithBoundingBox(BoundingBoxT &&value)
Definition FaceDetail.h:82
void SetQuality(QualityT &&value)
Definition FaceDetail.h:254
const FaceOccluded & GetFaceOccluded() const
Definition FaceDetail.h:279
void SetFaceOccluded(FaceOccludedT &&value)
Definition FaceDetail.h:282
FaceDetail & WithGender(GenderT &&value)
Definition FaceDetail.h:146
const BoundingBox & GetBoundingBox() const
Definition FaceDetail.h:77
const Beard & GetBeard() const
Definition FaceDetail.h:154
void SetEmotions(EmotionsT &&value)
Definition FaceDetail.h:213
const Aws::Vector< Emotion > & GetEmotions() const
Definition FaceDetail.h:210
const EyeDirection & GetEyeDirection() const
Definition FaceDetail.h:292
void SetSunglasses(SunglassesT &&value)
Definition FaceDetail.h:132
const AgeRange & GetAgeRange() const
Definition FaceDetail.h:90
FaceDetail & AddEmotions(EmotionsT &&value)
Definition FaceDetail.h:217
FaceDetail & WithEyesOpen(EyesOpenT &&value)
Definition FaceDetail.h:185
FaceDetail & WithMouthOpen(MouthOpenT &&value)
Definition FaceDetail.h:198
const Aws::Vector< Landmark > & GetLandmarks() const
Definition FaceDetail.h:224
FaceDetail & WithPose(PoseT &&value)
Definition FaceDetail.h:244
void SetEyesOpen(EyesOpenT &&value)
Definition FaceDetail.h:183
void SetEyeglasses(EyeglassesT &&value)
Definition FaceDetail.h:119
void SetEyeDirection(EyeDirectionT &&value)
Definition FaceDetail.h:295
AWS_REKOGNITION_API FaceDetail(Aws::Utils::Json::JsonView jsonValue)
const Smile & GetSmile() const
Definition FaceDetail.h:103
void SetMustache(MustacheT &&value)
Definition FaceDetail.h:170
const EyeOpen & GetEyesOpen() const
Definition FaceDetail.h:180
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
FaceDetail & AddLandmarks(LandmarksT &&value)
Definition FaceDetail.h:231
AWS_REKOGNITION_API FaceDetail()=default
FaceDetail & WithEyeglasses(EyeglassesT &&value)
Definition FaceDetail.h:121
FaceDetail & WithSunglasses(SunglassesT &&value)
Definition FaceDetail.h:134
FaceDetail & WithConfidence(double value)
Definition FaceDetail.h:267
FaceDetail & WithSmile(SmileT &&value)
Definition FaceDetail.h:108
FaceDetail & WithMustache(MustacheT &&value)
Definition FaceDetail.h:172
FaceDetail & WithFaceOccluded(FaceOccludedT &&value)
Definition FaceDetail.h:284
AWS_REKOGNITION_API FaceDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const MouthOpen & GetMouthOpen() const
Definition FaceDetail.h:193
FaceDetail & WithEmotions(EmotionsT &&value)
Definition FaceDetail.h:215
const Sunglasses & GetSunglasses() const
Definition FaceDetail.h:129
FaceDetail & WithAgeRange(AgeRangeT &&value)
Definition FaceDetail.h:95
void SetLandmarks(LandmarksT &&value)
Definition FaceDetail.h:227
void SetMouthOpen(MouthOpenT &&value)
Definition FaceDetail.h:196
const Eyeglasses & GetEyeglasses() const
Definition FaceDetail.h:116
FaceDetail & WithQuality(QualityT &&value)
Definition FaceDetail.h:256
const Mustache & GetMustache() const
Definition FaceDetail.h:167
void SetBoundingBox(BoundingBoxT &&value)
Definition FaceDetail.h:80
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue