AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImportRestApiResult.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/apigateway/model/ApiKeySourceType.h>
12#include <aws/apigateway/model/EndpointConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace APIGateway
29{
30namespace Model
31{
38 {
39 public:
40 AWS_APIGATEWAY_API ImportRestApiResult();
43
44
46
50 inline const Aws::String& GetId() const{ return m_id; }
51 inline void SetId(const Aws::String& value) { m_id = value; }
52 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
53 inline void SetId(const char* value) { m_id.assign(value); }
54 inline ImportRestApiResult& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline ImportRestApiResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline ImportRestApiResult& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetName() const{ return m_name; }
64 inline void SetName(const Aws::String& value) { m_name = value; }
65 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
66 inline void SetName(const char* value) { m_name.assign(value); }
67 inline ImportRestApiResult& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline ImportRestApiResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline ImportRestApiResult& WithName(const char* value) { SetName(value); return *this;}
71
73
76 inline const Aws::String& GetDescription() const{ return m_description; }
77 inline void SetDescription(const Aws::String& value) { m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_description.assign(value); }
80 inline ImportRestApiResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline ImportRestApiResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline ImportRestApiResult& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
89 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
90 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDate = value; }
91 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDate = std::move(value); }
92 inline ImportRestApiResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
93 inline ImportRestApiResult& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetVersion() const{ return m_version; }
101 inline void SetVersion(const Aws::String& value) { m_version = value; }
102 inline void SetVersion(Aws::String&& value) { m_version = std::move(value); }
103 inline void SetVersion(const char* value) { m_version.assign(value); }
104 inline ImportRestApiResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
105 inline ImportRestApiResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
106 inline ImportRestApiResult& WithVersion(const char* value) { SetVersion(value); return *this;}
108
110
114 inline const Aws::Vector<Aws::String>& GetWarnings() const{ return m_warnings; }
115 inline void SetWarnings(const Aws::Vector<Aws::String>& value) { m_warnings = value; }
116 inline void SetWarnings(Aws::Vector<Aws::String>&& value) { m_warnings = std::move(value); }
117 inline ImportRestApiResult& WithWarnings(const Aws::Vector<Aws::String>& value) { SetWarnings(value); return *this;}
118 inline ImportRestApiResult& WithWarnings(Aws::Vector<Aws::String>&& value) { SetWarnings(std::move(value)); return *this;}
119 inline ImportRestApiResult& AddWarnings(const Aws::String& value) { m_warnings.push_back(value); return *this; }
120 inline ImportRestApiResult& AddWarnings(Aws::String&& value) { m_warnings.push_back(std::move(value)); return *this; }
121 inline ImportRestApiResult& AddWarnings(const char* value) { m_warnings.push_back(value); return *this; }
123
125
129 inline const Aws::Vector<Aws::String>& GetBinaryMediaTypes() const{ return m_binaryMediaTypes; }
130 inline void SetBinaryMediaTypes(const Aws::Vector<Aws::String>& value) { m_binaryMediaTypes = value; }
131 inline void SetBinaryMediaTypes(Aws::Vector<Aws::String>&& value) { m_binaryMediaTypes = std::move(value); }
134 inline ImportRestApiResult& AddBinaryMediaTypes(const Aws::String& value) { m_binaryMediaTypes.push_back(value); return *this; }
135 inline ImportRestApiResult& AddBinaryMediaTypes(Aws::String&& value) { m_binaryMediaTypes.push_back(std::move(value)); return *this; }
136 inline ImportRestApiResult& AddBinaryMediaTypes(const char* value) { m_binaryMediaTypes.push_back(value); return *this; }
138
140
147 inline int GetMinimumCompressionSize() const{ return m_minimumCompressionSize; }
148 inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSize = value; }
151
153
159 inline const ApiKeySourceType& GetApiKeySource() const{ return m_apiKeySource; }
160 inline void SetApiKeySource(const ApiKeySourceType& value) { m_apiKeySource = value; }
161 inline void SetApiKeySource(ApiKeySourceType&& value) { m_apiKeySource = std::move(value); }
162 inline ImportRestApiResult& WithApiKeySource(const ApiKeySourceType& value) { SetApiKeySource(value); return *this;}
163 inline ImportRestApiResult& WithApiKeySource(ApiKeySourceType&& value) { SetApiKeySource(std::move(value)); return *this;}
165
167
171 inline const EndpointConfiguration& GetEndpointConfiguration() const{ return m_endpointConfiguration; }
172 inline void SetEndpointConfiguration(const EndpointConfiguration& value) { m_endpointConfiguration = value; }
173 inline void SetEndpointConfiguration(EndpointConfiguration&& value) { m_endpointConfiguration = std::move(value); }
177
179
183 inline const Aws::String& GetPolicy() const{ return m_policy; }
184 inline void SetPolicy(const Aws::String& value) { m_policy = value; }
185 inline void SetPolicy(Aws::String&& value) { m_policy = std::move(value); }
186 inline void SetPolicy(const char* value) { m_policy.assign(value); }
187 inline ImportRestApiResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
188 inline ImportRestApiResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
189 inline ImportRestApiResult& WithPolicy(const char* value) { SetPolicy(value); return *this;}
191
193
197 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
198 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
199 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
200 inline ImportRestApiResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
201 inline ImportRestApiResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
202 inline ImportRestApiResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
203 inline ImportRestApiResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
204 inline ImportRestApiResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
205 inline ImportRestApiResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
206 inline ImportRestApiResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
207 inline ImportRestApiResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
208 inline ImportRestApiResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
210
212
219 inline bool GetDisableExecuteApiEndpoint() const{ return m_disableExecuteApiEndpoint; }
220 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpoint = value; }
223
225
228 inline const Aws::String& GetRootResourceId() const{ return m_rootResourceId; }
229 inline void SetRootResourceId(const Aws::String& value) { m_rootResourceId = value; }
230 inline void SetRootResourceId(Aws::String&& value) { m_rootResourceId = std::move(value); }
231 inline void SetRootResourceId(const char* value) { m_rootResourceId.assign(value); }
232 inline ImportRestApiResult& WithRootResourceId(const Aws::String& value) { SetRootResourceId(value); return *this;}
233 inline ImportRestApiResult& WithRootResourceId(Aws::String&& value) { SetRootResourceId(std::move(value)); return *this;}
234 inline ImportRestApiResult& WithRootResourceId(const char* value) { SetRootResourceId(value); return *this;}
236
238
239 inline const Aws::String& GetRequestId() const{ return m_requestId; }
240 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
241 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
242 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
243 inline ImportRestApiResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
244 inline ImportRestApiResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
245 inline ImportRestApiResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
247 private:
248
249 Aws::String m_id;
250
251 Aws::String m_name;
252
253 Aws::String m_description;
254
255 Aws::Utils::DateTime m_createdDate;
256
257 Aws::String m_version;
258
259 Aws::Vector<Aws::String> m_warnings;
260
261 Aws::Vector<Aws::String> m_binaryMediaTypes;
262
263 int m_minimumCompressionSize;
264
265 ApiKeySourceType m_apiKeySource;
266
267 EndpointConfiguration m_endpointConfiguration;
268
269 Aws::String m_policy;
270
272
273 bool m_disableExecuteApiEndpoint;
274
275 Aws::String m_rootResourceId;
276
277 Aws::String m_requestId;
278 };
279
280} // namespace Model
281} // namespace APIGateway
282} // namespace Aws
ImportRestApiResult & WithVersion(Aws::String &&value)
ImportRestApiResult & AddTags(Aws::String &&key, const char *value)
ImportRestApiResult & WithVersion(const char *value)
void SetApiKeySource(const ApiKeySourceType &value)
ImportRestApiResult & WithRootResourceId(const Aws::String &value)
void SetEndpointConfiguration(EndpointConfiguration &&value)
ImportRestApiResult & WithDescription(Aws::String &&value)
void SetWarnings(const Aws::Vector< Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
ImportRestApiResult & AddBinaryMediaTypes(Aws::String &&value)
ImportRestApiResult & AddTags(const Aws::String &key, Aws::String &&value)
ImportRestApiResult & WithCreatedDate(const Aws::Utils::DateTime &value)
ImportRestApiResult & WithVersion(const Aws::String &value)
ImportRestApiResult & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
ImportRestApiResult & WithApiKeySource(ApiKeySourceType &&value)
ImportRestApiResult & WithEndpointConfiguration(const EndpointConfiguration &value)
ImportRestApiResult & AddBinaryMediaTypes(const char *value)
const Aws::Vector< Aws::String > & GetWarnings() const
void SetRootResourceId(const Aws::String &value)
ImportRestApiResult & WithRootResourceId(Aws::String &&value)
void SetEndpointConfiguration(const EndpointConfiguration &value)
ImportRestApiResult & WithBinaryMediaTypes(const Aws::Vector< Aws::String > &value)
ImportRestApiResult & WithApiKeySource(const ApiKeySourceType &value)
ImportRestApiResult & WithBinaryMediaTypes(Aws::Vector< Aws::String > &&value)
AWS_APIGATEWAY_API ImportRestApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportRestApiResult & AddTags(const char *key, const char *value)
ImportRestApiResult & WithRequestId(const Aws::String &value)
ImportRestApiResult & AddWarnings(const char *value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
ImportRestApiResult & WithName(Aws::String &&value)
ImportRestApiResult & WithRootResourceId(const char *value)
ImportRestApiResult & WithId(const Aws::String &value)
void SetDescription(const Aws::String &value)
ImportRestApiResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
ImportRestApiResult & AddTags(Aws::String &&key, Aws::String &&value)
ImportRestApiResult & WithId(Aws::String &&value)
ImportRestApiResult & WithId(const char *value)
ImportRestApiResult & WithDisableExecuteApiEndpoint(bool value)
ImportRestApiResult & AddTags(Aws::String &&key, const Aws::String &value)
ImportRestApiResult & WithPolicy(Aws::String &&value)
ImportRestApiResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetBinaryMediaTypes(const Aws::Vector< Aws::String > &value)
AWS_APIGATEWAY_API ImportRestApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ImportRestApiResult & WithEndpointConfiguration(EndpointConfiguration &&value)
ImportRestApiResult & WithRequestId(Aws::String &&value)
ImportRestApiResult & WithWarnings(Aws::Vector< Aws::String > &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
ImportRestApiResult & WithRequestId(const char *value)
void SetApiKeySource(ApiKeySourceType &&value)
const ApiKeySourceType & GetApiKeySource() const
ImportRestApiResult & WithDescription(const char *value)
void SetBinaryMediaTypes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
ImportRestApiResult & AddTags(const Aws::String &key, const Aws::String &value)
ImportRestApiResult & AddWarnings(const Aws::String &value)
const EndpointConfiguration & GetEndpointConfiguration() const
ImportRestApiResult & WithWarnings(const Aws::Vector< Aws::String > &value)
const Aws::Utils::DateTime & GetCreatedDate() const
ImportRestApiResult & WithPolicy(const char *value)
ImportRestApiResult & WithName(const Aws::String &value)
ImportRestApiResult & WithPolicy(const Aws::String &value)
ImportRestApiResult & WithDescription(const Aws::String &value)
ImportRestApiResult & AddTags(const char *key, Aws::String &&value)
ImportRestApiResult & AddBinaryMediaTypes(const Aws::String &value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
void SetWarnings(Aws::Vector< Aws::String > &&value)
ImportRestApiResult & WithMinimumCompressionSize(int value)
ImportRestApiResult & AddWarnings(Aws::String &&value)
ImportRestApiResult & WithName(const char *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