AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComparedFace.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/rekognition/model/BoundingBox.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/model/Pose.h>
11#include <aws/rekognition/model/ImageQuality.h>
12#include <aws/rekognition/model/Smile.h>
13#include <aws/rekognition/model/Landmark.h>
14#include <aws/rekognition/model/Emotion.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace Rekognition
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_REKOGNITION_API ComparedFace() = default;
43 AWS_REKOGNITION_API ComparedFace(Aws::Utils::Json::JsonView jsonValue);
44 AWS_REKOGNITION_API ComparedFace& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
53 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
54 template<typename BoundingBoxT = BoundingBox>
55 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
56 template<typename BoundingBoxT = BoundingBox>
57 ComparedFace& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
59
61
64 inline double GetConfidence() const { return m_confidence; }
65 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
66 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
67 inline ComparedFace& WithConfidence(double value) { SetConfidence(value); return *this;}
69
71
74 inline const Aws::Vector<Landmark>& GetLandmarks() const { return m_landmarks; }
75 inline bool LandmarksHasBeenSet() const { return m_landmarksHasBeenSet; }
76 template<typename LandmarksT = Aws::Vector<Landmark>>
77 void SetLandmarks(LandmarksT&& value) { m_landmarksHasBeenSet = true; m_landmarks = std::forward<LandmarksT>(value); }
78 template<typename LandmarksT = Aws::Vector<Landmark>>
79 ComparedFace& WithLandmarks(LandmarksT&& value) { SetLandmarks(std::forward<LandmarksT>(value)); return *this;}
80 template<typename LandmarksT = Landmark>
81 ComparedFace& AddLandmarks(LandmarksT&& value) { m_landmarksHasBeenSet = true; m_landmarks.emplace_back(std::forward<LandmarksT>(value)); return *this; }
83
85
88 inline const Pose& GetPose() const { return m_pose; }
89 inline bool PoseHasBeenSet() const { return m_poseHasBeenSet; }
90 template<typename PoseT = Pose>
91 void SetPose(PoseT&& value) { m_poseHasBeenSet = true; m_pose = std::forward<PoseT>(value); }
92 template<typename PoseT = Pose>
93 ComparedFace& WithPose(PoseT&& value) { SetPose(std::forward<PoseT>(value)); return *this;}
95
97
100 inline const ImageQuality& GetQuality() const { return m_quality; }
101 inline bool QualityHasBeenSet() const { return m_qualityHasBeenSet; }
102 template<typename QualityT = ImageQuality>
103 void SetQuality(QualityT&& value) { m_qualityHasBeenSet = true; m_quality = std::forward<QualityT>(value); }
104 template<typename QualityT = ImageQuality>
105 ComparedFace& WithQuality(QualityT&& value) { SetQuality(std::forward<QualityT>(value)); return *this;}
107
109
114 inline const Aws::Vector<Emotion>& GetEmotions() const { return m_emotions; }
115 inline bool EmotionsHasBeenSet() const { return m_emotionsHasBeenSet; }
116 template<typename EmotionsT = Aws::Vector<Emotion>>
117 void SetEmotions(EmotionsT&& value) { m_emotionsHasBeenSet = true; m_emotions = std::forward<EmotionsT>(value); }
118 template<typename EmotionsT = Aws::Vector<Emotion>>
119 ComparedFace& WithEmotions(EmotionsT&& value) { SetEmotions(std::forward<EmotionsT>(value)); return *this;}
120 template<typename EmotionsT = Emotion>
121 ComparedFace& AddEmotions(EmotionsT&& value) { m_emotionsHasBeenSet = true; m_emotions.emplace_back(std::forward<EmotionsT>(value)); return *this; }
123
125
129 inline const Smile& GetSmile() const { return m_smile; }
130 inline bool SmileHasBeenSet() const { return m_smileHasBeenSet; }
131 template<typename SmileT = Smile>
132 void SetSmile(SmileT&& value) { m_smileHasBeenSet = true; m_smile = std::forward<SmileT>(value); }
133 template<typename SmileT = Smile>
134 ComparedFace& WithSmile(SmileT&& value) { SetSmile(std::forward<SmileT>(value)); return *this;}
136 private:
137
138 BoundingBox m_boundingBox;
139 bool m_boundingBoxHasBeenSet = false;
140
141 double m_confidence{0.0};
142 bool m_confidenceHasBeenSet = false;
143
144 Aws::Vector<Landmark> m_landmarks;
145 bool m_landmarksHasBeenSet = false;
146
147 Pose m_pose;
148 bool m_poseHasBeenSet = false;
149
150 ImageQuality m_quality;
151 bool m_qualityHasBeenSet = false;
152
153 Aws::Vector<Emotion> m_emotions;
154 bool m_emotionsHasBeenSet = false;
155
156 Smile m_smile;
157 bool m_smileHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Rekognition
162} // 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