AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CelebrityDetail.h
1
6#pragma once
7#include <aws/rekognition/Rekognition_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/rekognition/model/BoundingBox.h>
11#include <aws/rekognition/model/FaceDetail.h>
12#include <aws/rekognition/model/KnownGender.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Rekognition
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_REKOGNITION_API CelebrityDetail();
39 AWS_REKOGNITION_API CelebrityDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API CelebrityDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<Aws::String>& GetUrls() const{ return m_urls; }
49 inline bool UrlsHasBeenSet() const { return m_urlsHasBeenSet; }
50 inline void SetUrls(const Aws::Vector<Aws::String>& value) { m_urlsHasBeenSet = true; m_urls = value; }
51 inline void SetUrls(Aws::Vector<Aws::String>&& value) { m_urlsHasBeenSet = true; m_urls = std::move(value); }
52 inline CelebrityDetail& WithUrls(const Aws::Vector<Aws::String>& value) { SetUrls(value); return *this;}
53 inline CelebrityDetail& WithUrls(Aws::Vector<Aws::String>&& value) { SetUrls(std::move(value)); return *this;}
54 inline CelebrityDetail& AddUrls(const Aws::String& value) { m_urlsHasBeenSet = true; m_urls.push_back(value); return *this; }
55 inline CelebrityDetail& AddUrls(Aws::String&& value) { m_urlsHasBeenSet = true; m_urls.push_back(std::move(value)); return *this; }
56 inline CelebrityDetail& AddUrls(const char* value) { m_urlsHasBeenSet = true; m_urls.push_back(value); return *this; }
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
66 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
68 inline CelebrityDetail& WithName(const Aws::String& value) { SetName(value); return *this;}
69 inline CelebrityDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 inline CelebrityDetail& WithName(const char* value) { SetName(value); return *this;}
72
74
77 inline const Aws::String& GetId() const{ return m_id; }
78 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
79 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
80 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
81 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
82 inline CelebrityDetail& WithId(const Aws::String& value) { SetId(value); return *this;}
83 inline CelebrityDetail& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
84 inline CelebrityDetail& WithId(const char* value) { SetId(value); return *this;}
86
88
92 inline double GetConfidence() const{ return m_confidence; }
93 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
94 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
95 inline CelebrityDetail& WithConfidence(double value) { SetConfidence(value); return *this;}
97
99
102 inline const BoundingBox& GetBoundingBox() const{ return m_boundingBox; }
103 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
104 inline void SetBoundingBox(const BoundingBox& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = value; }
105 inline void SetBoundingBox(BoundingBox&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::move(value); }
106 inline CelebrityDetail& WithBoundingBox(const BoundingBox& value) { SetBoundingBox(value); return *this;}
107 inline CelebrityDetail& WithBoundingBox(BoundingBox&& value) { SetBoundingBox(std::move(value)); return *this;}
109
111
114 inline const FaceDetail& GetFace() const{ return m_face; }
115 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
116 inline void SetFace(const FaceDetail& value) { m_faceHasBeenSet = true; m_face = value; }
117 inline void SetFace(FaceDetail&& value) { m_faceHasBeenSet = true; m_face = std::move(value); }
118 inline CelebrityDetail& WithFace(const FaceDetail& value) { SetFace(value); return *this;}
119 inline CelebrityDetail& WithFace(FaceDetail&& value) { SetFace(std::move(value)); return *this;}
121
123
126 inline const KnownGender& GetKnownGender() const{ return m_knownGender; }
127 inline bool KnownGenderHasBeenSet() const { return m_knownGenderHasBeenSet; }
128 inline void SetKnownGender(const KnownGender& value) { m_knownGenderHasBeenSet = true; m_knownGender = value; }
129 inline void SetKnownGender(KnownGender&& value) { m_knownGenderHasBeenSet = true; m_knownGender = std::move(value); }
130 inline CelebrityDetail& WithKnownGender(const KnownGender& value) { SetKnownGender(value); return *this;}
131 inline CelebrityDetail& WithKnownGender(KnownGender&& value) { SetKnownGender(std::move(value)); return *this;}
133 private:
134
136 bool m_urlsHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
141 Aws::String m_id;
142 bool m_idHasBeenSet = false;
143
144 double m_confidence;
145 bool m_confidenceHasBeenSet = false;
146
147 BoundingBox m_boundingBox;
148 bool m_boundingBoxHasBeenSet = false;
149
150 FaceDetail m_face;
151 bool m_faceHasBeenSet = false;
152
153 KnownGender m_knownGender;
154 bool m_knownGenderHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace Rekognition
159} // namespace Aws
CelebrityDetail & WithFace(FaceDetail &&value)
const Aws::String & GetName() const
CelebrityDetail & AddUrls(const Aws::String &value)
CelebrityDetail & WithId(const char *value)
CelebrityDetail & WithId(const Aws::String &value)
void SetName(const Aws::String &value)
CelebrityDetail & WithKnownGender(const KnownGender &value)
CelebrityDetail & WithBoundingBox(BoundingBox &&value)
CelebrityDetail & WithName(const Aws::String &value)
void SetBoundingBox(const BoundingBox &value)
AWS_REKOGNITION_API CelebrityDetail(Aws::Utils::Json::JsonView jsonValue)
CelebrityDetail & WithKnownGender(KnownGender &&value)
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
CelebrityDetail & AddUrls(Aws::String &&value)
AWS_REKOGNITION_API CelebrityDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
const BoundingBox & GetBoundingBox() const
CelebrityDetail & WithConfidence(double value)
const Aws::Vector< Aws::String > & GetUrls() const
void SetUrls(Aws::Vector< Aws::String > &&value)
CelebrityDetail & WithUrls(const Aws::Vector< Aws::String > &value)
CelebrityDetail & WithId(Aws::String &&value)
CelebrityDetail & WithName(Aws::String &&value)
void SetKnownGender(const KnownGender &value)
const KnownGender & GetKnownGender() const
CelebrityDetail & WithUrls(Aws::Vector< Aws::String > &&value)
CelebrityDetail & WithFace(const FaceDetail &value)
CelebrityDetail & WithName(const char *value)
void SetId(const Aws::String &value)
void SetFace(const FaceDetail &value)
CelebrityDetail & AddUrls(const char *value)
void SetUrls(const Aws::Vector< Aws::String > &value)
CelebrityDetail & WithBoundingBox(const BoundingBox &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