AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Celebrity.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/ComparedFace.h>
11#include <aws/rekognition/model/KnownGender.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Rekognition
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_REKOGNITION_API Celebrity();
39 AWS_REKOGNITION_API Celebrity(Aws::Utils::Json::JsonView jsonValue);
40 AWS_REKOGNITION_API Celebrity& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::Vector<Aws::String>& GetUrls() const{ return m_urls; }
50 inline bool UrlsHasBeenSet() const { return m_urlsHasBeenSet; }
51 inline void SetUrls(const Aws::Vector<Aws::String>& value) { m_urlsHasBeenSet = true; m_urls = value; }
52 inline void SetUrls(Aws::Vector<Aws::String>&& value) { m_urlsHasBeenSet = true; m_urls = std::move(value); }
53 inline Celebrity& WithUrls(const Aws::Vector<Aws::String>& value) { SetUrls(value); return *this;}
54 inline Celebrity& WithUrls(Aws::Vector<Aws::String>&& value) { SetUrls(std::move(value)); return *this;}
55 inline Celebrity& AddUrls(const Aws::String& value) { m_urlsHasBeenSet = true; m_urls.push_back(value); return *this; }
56 inline Celebrity& AddUrls(Aws::String&& value) { m_urlsHasBeenSet = true; m_urls.push_back(std::move(value)); return *this; }
57 inline Celebrity& AddUrls(const char* value) { m_urlsHasBeenSet = true; m_urls.push_back(value); return *this; }
59
61
64 inline const Aws::String& GetName() const{ return m_name; }
65 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
66 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
67 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
69 inline Celebrity& WithName(const Aws::String& value) { SetName(value); return *this;}
70 inline Celebrity& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
71 inline Celebrity& WithName(const char* value) { SetName(value); return *this;}
73
75
78 inline const Aws::String& GetId() const{ return m_id; }
79 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
80 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
81 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
82 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
83 inline Celebrity& WithId(const Aws::String& value) { SetId(value); return *this;}
84 inline Celebrity& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
85 inline Celebrity& WithId(const char* value) { SetId(value); return *this;}
87
89
93 inline const ComparedFace& GetFace() const{ return m_face; }
94 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
95 inline void SetFace(const ComparedFace& value) { m_faceHasBeenSet = true; m_face = value; }
96 inline void SetFace(ComparedFace&& value) { m_faceHasBeenSet = true; m_face = std::move(value); }
97 inline Celebrity& WithFace(const ComparedFace& value) { SetFace(value); return *this;}
98 inline Celebrity& WithFace(ComparedFace&& value) { SetFace(std::move(value)); return *this;}
100
102
106 inline double GetMatchConfidence() const{ return m_matchConfidence; }
107 inline bool MatchConfidenceHasBeenSet() const { return m_matchConfidenceHasBeenSet; }
108 inline void SetMatchConfidence(double value) { m_matchConfidenceHasBeenSet = true; m_matchConfidence = value; }
109 inline Celebrity& WithMatchConfidence(double value) { SetMatchConfidence(value); return *this;}
111
113
114 inline const KnownGender& GetKnownGender() const{ return m_knownGender; }
115 inline bool KnownGenderHasBeenSet() const { return m_knownGenderHasBeenSet; }
116 inline void SetKnownGender(const KnownGender& value) { m_knownGenderHasBeenSet = true; m_knownGender = value; }
117 inline void SetKnownGender(KnownGender&& value) { m_knownGenderHasBeenSet = true; m_knownGender = std::move(value); }
118 inline Celebrity& WithKnownGender(const KnownGender& value) { SetKnownGender(value); return *this;}
119 inline Celebrity& WithKnownGender(KnownGender&& value) { SetKnownGender(std::move(value)); return *this;}
121 private:
122
124 bool m_urlsHasBeenSet = false;
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 ComparedFace m_face;
133 bool m_faceHasBeenSet = false;
134
135 double m_matchConfidence;
136 bool m_matchConfidenceHasBeenSet = false;
137
138 KnownGender m_knownGender;
139 bool m_knownGenderHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Rekognition
144} // namespace Aws
Celebrity & WithKnownGender(const KnownGender &value)
Definition Celebrity.h:118
void SetName(const Aws::String &value)
Definition Celebrity.h:66
AWS_REKOGNITION_API Aws::Utils::Json::JsonValue Jsonize() const
void SetName(Aws::String &&value)
Definition Celebrity.h:67
void SetMatchConfidence(double value)
Definition Celebrity.h:108
Celebrity & WithFace(ComparedFace &&value)
Definition Celebrity.h:98
const Aws::String & GetName() const
Definition Celebrity.h:64
Celebrity & WithMatchConfidence(double value)
Definition Celebrity.h:109
const Aws::String & GetId() const
Definition Celebrity.h:78
Celebrity & WithName(const char *value)
Definition Celebrity.h:71
const ComparedFace & GetFace() const
Definition Celebrity.h:93
Celebrity & WithUrls(const Aws::Vector< Aws::String > &value)
Definition Celebrity.h:53
Celebrity & WithId(Aws::String &&value)
Definition Celebrity.h:84
Celebrity & AddUrls(const char *value)
Definition Celebrity.h:57
void SetName(const char *value)
Definition Celebrity.h:68
Celebrity & WithFace(const ComparedFace &value)
Definition Celebrity.h:97
void SetId(Aws::String &&value)
Definition Celebrity.h:81
AWS_REKOGNITION_API Celebrity()
Celebrity & WithUrls(Aws::Vector< Aws::String > &&value)
Definition Celebrity.h:54
Celebrity & AddUrls(Aws::String &&value)
Definition Celebrity.h:56
Celebrity & WithName(const Aws::String &value)
Definition Celebrity.h:69
Celebrity & WithName(Aws::String &&value)
Definition Celebrity.h:70
Celebrity & WithKnownGender(KnownGender &&value)
Definition Celebrity.h:119
void SetUrls(const Aws::Vector< Aws::String > &value)
Definition Celebrity.h:51
void SetFace(const ComparedFace &value)
Definition Celebrity.h:95
void SetId(const Aws::String &value)
Definition Celebrity.h:80
Celebrity & AddUrls(const Aws::String &value)
Definition Celebrity.h:55
AWS_REKOGNITION_API Celebrity(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition Celebrity.h:82
const KnownGender & GetKnownGender() const
Definition Celebrity.h:114
void SetKnownGender(const KnownGender &value)
Definition Celebrity.h:116
Celebrity & WithId(const Aws::String &value)
Definition Celebrity.h:83
void SetUrls(Aws::Vector< Aws::String > &&value)
Definition Celebrity.h:52
void SetFace(ComparedFace &&value)
Definition Celebrity.h:96
AWS_REKOGNITION_API Celebrity & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKnownGender(KnownGender &&value)
Definition Celebrity.h:117
Celebrity & WithId(const char *value)
Definition Celebrity.h:85
const Aws::Vector< Aws::String > & GetUrls() const
Definition Celebrity.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue