AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
CelebrityDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/rekognition/Rekognition_EXPORTS.h>
10#include <aws/rekognition/model/BoundingBox.h>
11#include <aws/rekognition/model/FaceDetail.h>
12#include <aws/rekognition/model/KnownGender.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Rekognition {
24namespace Model {
25
32 public:
33 AWS_REKOGNITION_API CelebrityDetail() = default;
34 AWS_REKOGNITION_API CelebrityDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_REKOGNITION_API CelebrityDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<Aws::String>& GetUrls() const { return m_urls; }
43 inline bool UrlsHasBeenSet() const { return m_urlsHasBeenSet; }
44 template <typename UrlsT = Aws::Vector<Aws::String>>
45 void SetUrls(UrlsT&& value) {
46 m_urlsHasBeenSet = true;
47 m_urls = std::forward<UrlsT>(value);
48 }
49 template <typename UrlsT = Aws::Vector<Aws::String>>
50 CelebrityDetail& WithUrls(UrlsT&& value) {
51 SetUrls(std::forward<UrlsT>(value));
52 return *this;
53 }
54 template <typename UrlsT = Aws::String>
55 CelebrityDetail& AddUrls(UrlsT&& value) {
56 m_urlsHasBeenSet = true;
57 m_urls.emplace_back(std::forward<UrlsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template <typename NameT = Aws::String>
69 void SetName(NameT&& value) {
70 m_nameHasBeenSet = true;
71 m_name = std::forward<NameT>(value);
72 }
73 template <typename NameT = Aws::String>
74 CelebrityDetail& WithName(NameT&& value) {
75 SetName(std::forward<NameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetId() const { return m_id; }
85 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
86 template <typename IdT = Aws::String>
87 void SetId(IdT&& value) {
88 m_idHasBeenSet = true;
89 m_id = std::forward<IdT>(value);
90 }
91 template <typename IdT = Aws::String>
92 CelebrityDetail& WithId(IdT&& value) {
93 SetId(std::forward<IdT>(value));
94 return *this;
95 }
97
99
103 inline double GetConfidence() const { return m_confidence; }
104 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
105 inline void SetConfidence(double value) {
106 m_confidenceHasBeenSet = true;
107 m_confidence = value;
108 }
109 inline CelebrityDetail& WithConfidence(double value) {
110 SetConfidence(value);
111 return *this;
112 }
114
116
119 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
120 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
121 template <typename BoundingBoxT = BoundingBox>
122 void SetBoundingBox(BoundingBoxT&& value) {
123 m_boundingBoxHasBeenSet = true;
124 m_boundingBox = std::forward<BoundingBoxT>(value);
125 }
126 template <typename BoundingBoxT = BoundingBox>
127 CelebrityDetail& WithBoundingBox(BoundingBoxT&& value) {
128 SetBoundingBox(std::forward<BoundingBoxT>(value));
129 return *this;
130 }
132
134
137 inline const FaceDetail& GetFace() const { return m_face; }
138 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
139 template <typename FaceT = FaceDetail>
140 void SetFace(FaceT&& value) {
141 m_faceHasBeenSet = true;
142 m_face = std::forward<FaceT>(value);
143 }
144 template <typename FaceT = FaceDetail>
145 CelebrityDetail& WithFace(FaceT&& value) {
146 SetFace(std::forward<FaceT>(value));
147 return *this;
148 }
150
152
155 inline const KnownGender& GetKnownGender() const { return m_knownGender; }
156 inline bool KnownGenderHasBeenSet() const { return m_knownGenderHasBeenSet; }
157 template <typename KnownGenderT = KnownGender>
158 void SetKnownGender(KnownGenderT&& value) {
159 m_knownGenderHasBeenSet = true;
160 m_knownGender = std::forward<KnownGenderT>(value);
161 }
162 template <typename KnownGenderT = KnownGender>
163 CelebrityDetail& WithKnownGender(KnownGenderT&& value) {
164 SetKnownGender(std::forward<KnownGenderT>(value));
165 return *this;
166 }
168 private:
170 bool m_urlsHasBeenSet = false;
171
172 Aws::String m_name;
173 bool m_nameHasBeenSet = false;
174
175 Aws::String m_id;
176 bool m_idHasBeenSet = false;
177
178 double m_confidence{0.0};
179 bool m_confidenceHasBeenSet = false;
180
181 BoundingBox m_boundingBox;
182 bool m_boundingBoxHasBeenSet = false;
183
184 FaceDetail m_face;
185 bool m_faceHasBeenSet = false;
186
187 KnownGender m_knownGender;
188 bool m_knownGenderHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace Rekognition
193} // namespace Aws
const Aws::String & GetName() const
CelebrityDetail & WithUrls(UrlsT &&value)
CelebrityDetail & WithKnownGender(KnownGenderT &&value)
AWS_REKOGNITION_API CelebrityDetail()=default
AWS_REKOGNITION_API CelebrityDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_REKOGNITION_API CelebrityDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
CelebrityDetail & WithBoundingBox(BoundingBoxT &&value)
const BoundingBox & GetBoundingBox() const
CelebrityDetail & WithConfidence(double value)
const Aws::Vector< Aws::String > & GetUrls() const
CelebrityDetail & WithFace(FaceT &&value)
void SetKnownGender(KnownGenderT &&value)
const KnownGender & GetKnownGender() const
CelebrityDetail & WithId(IdT &&value)
CelebrityDetail & WithName(NameT &&value)
void SetBoundingBox(BoundingBoxT &&value)
CelebrityDetail & AddUrls(UrlsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue