AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateRestApiResult.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 UpdateRestApiResult();
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 UpdateRestApiResult& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline UpdateRestApiResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithName(const Aws::String& value) { SetName(value); return *this;}
68 inline UpdateRestApiResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
69 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline UpdateRestApiResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
93 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
105 inline UpdateRestApiResult& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
106 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithWarnings(const Aws::Vector<Aws::String>& value) { SetWarnings(value); return *this;}
118 inline UpdateRestApiResult& WithWarnings(Aws::Vector<Aws::String>&& value) { SetWarnings(std::move(value)); return *this;}
119 inline UpdateRestApiResult& AddWarnings(const Aws::String& value) { m_warnings.push_back(value); return *this; }
120 inline UpdateRestApiResult& AddWarnings(Aws::String&& value) { m_warnings.push_back(std::move(value)); return *this; }
121 inline UpdateRestApiResult& 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 UpdateRestApiResult& AddBinaryMediaTypes(const Aws::String& value) { m_binaryMediaTypes.push_back(value); return *this; }
135 inline UpdateRestApiResult& AddBinaryMediaTypes(Aws::String&& value) { m_binaryMediaTypes.push_back(std::move(value)); return *this; }
136 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithApiKeySource(const ApiKeySourceType& value) { SetApiKeySource(value); return *this;}
163 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
188 inline UpdateRestApiResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
189 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
201 inline UpdateRestApiResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
202 inline UpdateRestApiResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
203 inline UpdateRestApiResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
204 inline UpdateRestApiResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
205 inline UpdateRestApiResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
206 inline UpdateRestApiResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
207 inline UpdateRestApiResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
208 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithRootResourceId(const Aws::String& value) { SetRootResourceId(value); return *this;}
233 inline UpdateRestApiResult& WithRootResourceId(Aws::String&& value) { SetRootResourceId(std::move(value)); return *this;}
234 inline UpdateRestApiResult& 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 UpdateRestApiResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
244 inline UpdateRestApiResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
245 inline UpdateRestApiResult& 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
UpdateRestApiResult & WithBinaryMediaTypes(const Aws::Vector< Aws::String > &value)
void SetCreatedDate(const Aws::Utils::DateTime &value)
void SetBinaryMediaTypes(Aws::Vector< Aws::String > &&value)
UpdateRestApiResult & WithId(const char *value)
UpdateRestApiResult & WithWarnings(const Aws::Vector< Aws::String > &value)
UpdateRestApiResult & AddBinaryMediaTypes(const Aws::String &value)
UpdateRestApiResult & WithApiKeySource(ApiKeySourceType &&value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
const Aws::Utils::DateTime & GetCreatedDate() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_APIGATEWAY_API UpdateRestApiResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRestApiResult & WithRequestId(Aws::String &&value)
UpdateRestApiResult & WithRequestId(const char *value)
void SetApiKeySource(ApiKeySourceType &&value)
UpdateRestApiResult & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
UpdateRestApiResult & WithDescription(const Aws::String &value)
const ApiKeySourceType & GetApiKeySource() const
UpdateRestApiResult & AddTags(const char *key, const char *value)
UpdateRestApiResult & WithCreatedDate(const Aws::Utils::DateTime &value)
UpdateRestApiResult & WithDescription(const char *value)
UpdateRestApiResult & WithRootResourceId(const Aws::String &value)
void SetEndpointConfiguration(EndpointConfiguration &&value)
void SetBinaryMediaTypes(const Aws::Vector< Aws::String > &value)
UpdateRestApiResult & AddWarnings(const Aws::String &value)
UpdateRestApiResult & WithPolicy(const Aws::String &value)
UpdateRestApiResult & WithRootResourceId(Aws::String &&value)
void SetWarnings(const Aws::Vector< Aws::String > &value)
UpdateRestApiResult & WithEndpointConfiguration(const EndpointConfiguration &value)
UpdateRestApiResult & WithRootResourceId(const char *value)
const EndpointConfiguration & GetEndpointConfiguration() const
void SetRootResourceId(const Aws::String &value)
UpdateRestApiResult & WithCreatedDate(Aws::Utils::DateTime &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetEndpointConfiguration(const EndpointConfiguration &value)
UpdateRestApiResult & AddTags(Aws::String &&key, const char *value)
UpdateRestApiResult & WithVersion(Aws::String &&value)
UpdateRestApiResult & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
UpdateRestApiResult & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_APIGATEWAY_API UpdateRestApiResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRestApiResult & WithMinimumCompressionSize(int value)
UpdateRestApiResult & WithName(Aws::String &&value)
UpdateRestApiResult & WithBinaryMediaTypes(Aws::Vector< Aws::String > &&value)
UpdateRestApiResult & WithRequestId(const Aws::String &value)
UpdateRestApiResult & WithId(const Aws::String &value)
UpdateRestApiResult & WithDisableExecuteApiEndpoint(bool value)
void SetApiKeySource(const ApiKeySourceType &value)
void SetWarnings(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetWarnings() const
UpdateRestApiResult & AddTags(Aws::String &&key, const Aws::String &value)
UpdateRestApiResult & WithName(const char *value)
UpdateRestApiResult & WithVersion(const char *value)
UpdateRestApiResult & AddWarnings(const char *value)
UpdateRestApiResult & WithApiKeySource(const ApiKeySourceType &value)
UpdateRestApiResult & AddTags(const Aws::String &key, const Aws::String &value)
UpdateRestApiResult & AddTags(Aws::String &&key, Aws::String &&value)
UpdateRestApiResult & AddBinaryMediaTypes(Aws::String &&value)
UpdateRestApiResult & WithEndpointConfiguration(EndpointConfiguration &&value)
UpdateRestApiResult & WithId(Aws::String &&value)
UpdateRestApiResult & WithPolicy(Aws::String &&value)
UpdateRestApiResult & WithDescription(Aws::String &&value)
void SetCreatedDate(Aws::Utils::DateTime &&value)
UpdateRestApiResult & WithName(const Aws::String &value)
UpdateRestApiResult & WithVersion(const Aws::String &value)
UpdateRestApiResult & WithWarnings(Aws::Vector< Aws::String > &&value)
UpdateRestApiResult & AddTags(const char *key, Aws::String &&value)
UpdateRestApiResult & AddWarnings(Aws::String &&value)
void SetDescription(const Aws::String &value)
UpdateRestApiResult & WithPolicy(const char *value)
UpdateRestApiResult & AddBinaryMediaTypes(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