AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
GetCelebrityInfoResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/rekognition/Rekognition_EXPORTS.h>
11#include <aws/rekognition/model/KnownGender.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Rekognition {
25namespace Model {
27 public:
28 AWS_REKOGNITION_API GetCelebrityInfoResult() = default;
31
33
36 inline const Aws::Vector<Aws::String>& GetUrls() const { return m_urls; }
37 template <typename UrlsT = Aws::Vector<Aws::String>>
38 void SetUrls(UrlsT&& value) {
39 m_urlsHasBeenSet = true;
40 m_urls = std::forward<UrlsT>(value);
41 }
42 template <typename UrlsT = Aws::Vector<Aws::String>>
44 SetUrls(std::forward<UrlsT>(value));
45 return *this;
46 }
47 template <typename UrlsT = Aws::String>
49 m_urlsHasBeenSet = true;
50 m_urls.emplace_back(std::forward<UrlsT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline const KnownGender& GetKnownGender() const { return m_knownGender; }
77 template <typename KnownGenderT = KnownGender>
78 void SetKnownGender(KnownGenderT&& value) {
79 m_knownGenderHasBeenSet = true;
80 m_knownGender = std::forward<KnownGenderT>(value);
81 }
82 template <typename KnownGenderT = KnownGender>
83 GetCelebrityInfoResult& WithKnownGender(KnownGenderT&& value) {
84 SetKnownGender(std::forward<KnownGenderT>(value));
85 return *this;
86 }
88
90
91 inline const Aws::String& GetRequestId() const { return m_requestId; }
92 template <typename RequestIdT = Aws::String>
93 void SetRequestId(RequestIdT&& value) {
94 m_requestIdHasBeenSet = true;
95 m_requestId = std::forward<RequestIdT>(value);
96 }
97 template <typename RequestIdT = Aws::String>
99 SetRequestId(std::forward<RequestIdT>(value));
100 return *this;
101 }
103 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
104
105 private:
107
108 Aws::String m_name;
109
110 KnownGender m_knownGender;
111
112 Aws::String m_requestId;
113 Aws::Http::HttpResponseCode m_HttpResponseCode;
114 bool m_urlsHasBeenSet = false;
115 bool m_nameHasBeenSet = false;
116 bool m_knownGenderHasBeenSet = false;
117 bool m_requestIdHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Rekognition
122} // namespace Aws
GetCelebrityInfoResult & WithKnownGender(KnownGenderT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_REKOGNITION_API GetCelebrityInfoResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_REKOGNITION_API GetCelebrityInfoResult()=default
GetCelebrityInfoResult & WithRequestId(RequestIdT &&value)
GetCelebrityInfoResult & WithName(NameT &&value)
GetCelebrityInfoResult & AddUrls(UrlsT &&value)
AWS_REKOGNITION_API GetCelebrityInfoResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCelebrityInfoResult & WithUrls(UrlsT &&value)
const Aws::Vector< Aws::String > & GetUrls() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue