AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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