AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UrlsT = Aws::Vector<Aws::String>>
51 void SetUrls(UrlsT&& value) { m_urlsHasBeenSet = true; m_urls = std::forward<UrlsT>(value); }
52 template<typename UrlsT = Aws::Vector<Aws::String>>
53 CelebrityDetail& WithUrls(UrlsT&& value) { SetUrls(std::forward<UrlsT>(value)); return *this;}
54 template<typename UrlsT = Aws::String>
55 CelebrityDetail& AddUrls(UrlsT&& value) { m_urlsHasBeenSet = true; m_urls.emplace_back(std::forward<UrlsT>(value)); return *this; }
57
59
62 inline const Aws::String& GetName() const { return m_name; }
63 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
64 template<typename NameT = Aws::String>
65 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
66 template<typename NameT = Aws::String>
67 CelebrityDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template<typename IdT = Aws::String>
77 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
78 template<typename IdT = Aws::String>
79 CelebrityDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
81
83
87 inline double GetConfidence() const { return m_confidence; }
88 inline bool ConfidenceHasBeenSet() const { return m_confidenceHasBeenSet; }
89 inline void SetConfidence(double value) { m_confidenceHasBeenSet = true; m_confidence = value; }
90 inline CelebrityDetail& WithConfidence(double value) { SetConfidence(value); return *this;}
92
94
97 inline const BoundingBox& GetBoundingBox() const { return m_boundingBox; }
98 inline bool BoundingBoxHasBeenSet() const { return m_boundingBoxHasBeenSet; }
99 template<typename BoundingBoxT = BoundingBox>
100 void SetBoundingBox(BoundingBoxT&& value) { m_boundingBoxHasBeenSet = true; m_boundingBox = std::forward<BoundingBoxT>(value); }
101 template<typename BoundingBoxT = BoundingBox>
102 CelebrityDetail& WithBoundingBox(BoundingBoxT&& value) { SetBoundingBox(std::forward<BoundingBoxT>(value)); return *this;}
104
106
109 inline const FaceDetail& GetFace() const { return m_face; }
110 inline bool FaceHasBeenSet() const { return m_faceHasBeenSet; }
111 template<typename FaceT = FaceDetail>
112 void SetFace(FaceT&& value) { m_faceHasBeenSet = true; m_face = std::forward<FaceT>(value); }
113 template<typename FaceT = FaceDetail>
114 CelebrityDetail& WithFace(FaceT&& value) { SetFace(std::forward<FaceT>(value)); return *this;}
116
118
121 inline const KnownGender& GetKnownGender() const { return m_knownGender; }
122 inline bool KnownGenderHasBeenSet() const { return m_knownGenderHasBeenSet; }
123 template<typename KnownGenderT = KnownGender>
124 void SetKnownGender(KnownGenderT&& value) { m_knownGenderHasBeenSet = true; m_knownGender = std::forward<KnownGenderT>(value); }
125 template<typename KnownGenderT = KnownGender>
126 CelebrityDetail& WithKnownGender(KnownGenderT&& value) { SetKnownGender(std::forward<KnownGenderT>(value)); return *this;}
128 private:
129
131 bool m_urlsHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_id;
137 bool m_idHasBeenSet = false;
138
139 double m_confidence{0.0};
140 bool m_confidenceHasBeenSet = false;
141
142 BoundingBox m_boundingBox;
143 bool m_boundingBoxHasBeenSet = false;
144
145 FaceDetail m_face;
146 bool m_faceHasBeenSet = false;
147
148 KnownGender m_knownGender;
149 bool m_knownGenderHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace Rekognition
154} // 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