AWS SDK for C++

AWS SDK for C++ Version 1.11.766

Loading...
Searching...
No Matches
GetApiKeyResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway {
26namespace Model {
36 public:
37 AWS_APIGATEWAY_API GetApiKeyResult() = default;
40
42
45 inline const Aws::String& GetId() const { return m_id; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 GetApiKeyResult& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetValue() const { return m_value; }
63 template <typename ValueT = Aws::String>
64 void SetValue(ValueT&& value) {
65 m_valueHasBeenSet = true;
66 m_value = std::forward<ValueT>(value);
67 }
68 template <typename ValueT = Aws::String>
69 GetApiKeyResult& WithValue(ValueT&& value) {
70 SetValue(std::forward<ValueT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetName() const { return m_name; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
86 GetApiKeyResult& WithName(NameT&& value) {
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetCustomerId() const { return m_customerId; }
98 template <typename CustomerIdT = Aws::String>
99 void SetCustomerId(CustomerIdT&& value) {
100 m_customerIdHasBeenSet = true;
101 m_customerId = std::forward<CustomerIdT>(value);
102 }
103 template <typename CustomerIdT = Aws::String>
104 GetApiKeyResult& WithCustomerId(CustomerIdT&& value) {
105 SetCustomerId(std::forward<CustomerIdT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 GetApiKeyResult& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline bool GetEnabled() const { return m_enabled; }
132 inline void SetEnabled(bool value) {
133 m_enabledHasBeenSet = true;
134 m_enabled = value;
135 }
136 inline GetApiKeyResult& WithEnabled(bool value) {
137 SetEnabled(value);
138 return *this;
139 }
141
143
146 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
147 template <typename CreatedDateT = Aws::Utils::DateTime>
148 void SetCreatedDate(CreatedDateT&& value) {
149 m_createdDateHasBeenSet = true;
150 m_createdDate = std::forward<CreatedDateT>(value);
151 }
152 template <typename CreatedDateT = Aws::Utils::DateTime>
153 GetApiKeyResult& WithCreatedDate(CreatedDateT&& value) {
154 SetCreatedDate(std::forward<CreatedDateT>(value));
155 return *this;
156 }
158
160
163 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
164 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
165 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
166 m_lastUpdatedDateHasBeenSet = true;
167 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
168 }
169 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
170 GetApiKeyResult& WithLastUpdatedDate(LastUpdatedDateT&& value) {
171 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
172 return *this;
173 }
175
177
180 inline const Aws::Vector<Aws::String>& GetStageKeys() const { return m_stageKeys; }
181 template <typename StageKeysT = Aws::Vector<Aws::String>>
182 void SetStageKeys(StageKeysT&& value) {
183 m_stageKeysHasBeenSet = true;
184 m_stageKeys = std::forward<StageKeysT>(value);
185 }
186 template <typename StageKeysT = Aws::Vector<Aws::String>>
187 GetApiKeyResult& WithStageKeys(StageKeysT&& value) {
188 SetStageKeys(std::forward<StageKeysT>(value));
189 return *this;
190 }
191 template <typename StageKeysT = Aws::String>
192 GetApiKeyResult& AddStageKeys(StageKeysT&& value) {
193 m_stageKeysHasBeenSet = true;
194 m_stageKeys.emplace_back(std::forward<StageKeysT>(value));
195 return *this;
196 }
198
200
204 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
205 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
206 void SetTags(TagsT&& value) {
207 m_tagsHasBeenSet = true;
208 m_tags = std::forward<TagsT>(value);
209 }
210 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
211 GetApiKeyResult& WithTags(TagsT&& value) {
212 SetTags(std::forward<TagsT>(value));
213 return *this;
214 }
215 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
216 GetApiKeyResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
217 m_tagsHasBeenSet = true;
218 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
219 return *this;
220 }
222
224
225 inline const Aws::String& GetRequestId() const { return m_requestId; }
226 template <typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) {
228 m_requestIdHasBeenSet = true;
229 m_requestId = std::forward<RequestIdT>(value);
230 }
231 template <typename RequestIdT = Aws::String>
232 GetApiKeyResult& WithRequestId(RequestIdT&& value) {
233 SetRequestId(std::forward<RequestIdT>(value));
234 return *this;
235 }
237 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
238
239 private:
240 Aws::String m_id;
241
242 Aws::String m_value;
243
244 Aws::String m_name;
245
246 Aws::String m_customerId;
247
248 Aws::String m_description;
249
250 bool m_enabled{false};
251
252 Aws::Utils::DateTime m_createdDate{};
253
254 Aws::Utils::DateTime m_lastUpdatedDate{};
255
256 Aws::Vector<Aws::String> m_stageKeys;
257
259
260 Aws::String m_requestId;
261 Aws::Http::HttpResponseCode m_HttpResponseCode;
262 bool m_idHasBeenSet = false;
263 bool m_valueHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_customerIdHasBeenSet = false;
266 bool m_descriptionHasBeenSet = false;
267 bool m_enabledHasBeenSet = false;
268 bool m_createdDateHasBeenSet = false;
269 bool m_lastUpdatedDateHasBeenSet = false;
270 bool m_stageKeysHasBeenSet = false;
271 bool m_tagsHasBeenSet = false;
272 bool m_requestIdHasBeenSet = false;
273};
274
275} // namespace Model
276} // namespace APIGateway
277} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedDate() const
GetApiKeyResult & WithDescription(DescriptionT &&value)
const Aws::String & GetName() const
const Aws::String & GetCustomerId() const
AWS_APIGATEWAY_API GetApiKeyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API GetApiKeyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
const Aws::String & GetValue() const
const Aws::Vector< Aws::String > & GetStageKeys() const
GetApiKeyResult & WithLastUpdatedDate(LastUpdatedDateT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetId() const
GetApiKeyResult & WithValue(ValueT &&value)
GetApiKeyResult & WithName(NameT &&value)
GetApiKeyResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetApiKeyResult & WithRequestId(RequestIdT &&value)
GetApiKeyResult & WithId(IdT &&value)
GetApiKeyResult & WithStageKeys(StageKeysT &&value)
void SetCreatedDate(CreatedDateT &&value)
GetApiKeyResult & AddStageKeys(StageKeysT &&value)
const Aws::String & GetDescription() const
GetApiKeyResult & WithTags(TagsT &&value)
GetApiKeyResult & WithCustomerId(CustomerIdT &&value)
GetApiKeyResult & WithEnabled(bool value)
GetApiKeyResult & WithCreatedDate(CreatedDateT &&value)
AWS_APIGATEWAY_API GetApiKeyResult()=default
const Aws::String & GetRequestId() const
void SetCustomerId(CustomerIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue