AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateRestApiRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.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{
18namespace APIGateway
19{
20namespace Model
21{
22
30 {
31 public:
32 AWS_APIGATEWAY_API CreateRestApiRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateRestApi"; }
39
40 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
41
42
44
47 inline const Aws::String& GetName() const{ return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline CreateRestApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline CreateRestApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline CreateRestApiRequest& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline const Aws::String& GetDescription() const{ return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
64 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
65 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
66 inline CreateRestApiRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
67 inline CreateRestApiRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
68 inline CreateRestApiRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
70
72
75 inline const Aws::String& GetVersion() const{ return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
78 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
79 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
80 inline CreateRestApiRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
81 inline CreateRestApiRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
82 inline CreateRestApiRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
84
86
89 inline const Aws::String& GetCloneFrom() const{ return m_cloneFrom; }
90 inline bool CloneFromHasBeenSet() const { return m_cloneFromHasBeenSet; }
91 inline void SetCloneFrom(const Aws::String& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = value; }
92 inline void SetCloneFrom(Aws::String&& value) { m_cloneFromHasBeenSet = true; m_cloneFrom = std::move(value); }
93 inline void SetCloneFrom(const char* value) { m_cloneFromHasBeenSet = true; m_cloneFrom.assign(value); }
94 inline CreateRestApiRequest& WithCloneFrom(const Aws::String& value) { SetCloneFrom(value); return *this;}
95 inline CreateRestApiRequest& WithCloneFrom(Aws::String&& value) { SetCloneFrom(std::move(value)); return *this;}
96 inline CreateRestApiRequest& WithCloneFrom(const char* value) { SetCloneFrom(value); return *this;}
98
100
104 inline const Aws::Vector<Aws::String>& GetBinaryMediaTypes() const{ return m_binaryMediaTypes; }
105 inline bool BinaryMediaTypesHasBeenSet() const { return m_binaryMediaTypesHasBeenSet; }
106 inline void SetBinaryMediaTypes(const Aws::Vector<Aws::String>& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes = value; }
107 inline void SetBinaryMediaTypes(Aws::Vector<Aws::String>&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes = std::move(value); }
110 inline CreateRestApiRequest& AddBinaryMediaTypes(const Aws::String& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(value); return *this; }
111 inline CreateRestApiRequest& AddBinaryMediaTypes(Aws::String&& value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(std::move(value)); return *this; }
112 inline CreateRestApiRequest& AddBinaryMediaTypes(const char* value) { m_binaryMediaTypesHasBeenSet = true; m_binaryMediaTypes.push_back(value); return *this; }
114
116
123 inline int GetMinimumCompressionSize() const{ return m_minimumCompressionSize; }
124 inline bool MinimumCompressionSizeHasBeenSet() const { return m_minimumCompressionSizeHasBeenSet; }
125 inline void SetMinimumCompressionSize(int value) { m_minimumCompressionSizeHasBeenSet = true; m_minimumCompressionSize = value; }
128
130
136 inline const ApiKeySourceType& GetApiKeySource() const{ return m_apiKeySource; }
137 inline bool ApiKeySourceHasBeenSet() const { return m_apiKeySourceHasBeenSet; }
138 inline void SetApiKeySource(const ApiKeySourceType& value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource = value; }
139 inline void SetApiKeySource(ApiKeySourceType&& value) { m_apiKeySourceHasBeenSet = true; m_apiKeySource = std::move(value); }
140 inline CreateRestApiRequest& WithApiKeySource(const ApiKeySourceType& value) { SetApiKeySource(value); return *this;}
141 inline CreateRestApiRequest& WithApiKeySource(ApiKeySourceType&& value) { SetApiKeySource(std::move(value)); return *this;}
143
145
149 inline const EndpointConfiguration& GetEndpointConfiguration() const{ return m_endpointConfiguration; }
150 inline bool EndpointConfigurationHasBeenSet() const { return m_endpointConfigurationHasBeenSet; }
151 inline void SetEndpointConfiguration(const EndpointConfiguration& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = value; }
152 inline void SetEndpointConfiguration(EndpointConfiguration&& value) { m_endpointConfigurationHasBeenSet = true; m_endpointConfiguration = std::move(value); }
156
158
162 inline const Aws::String& GetPolicy() const{ return m_policy; }
163 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
164 inline void SetPolicy(const Aws::String& value) { m_policyHasBeenSet = true; m_policy = value; }
165 inline void SetPolicy(Aws::String&& value) { m_policyHasBeenSet = true; m_policy = std::move(value); }
166 inline void SetPolicy(const char* value) { m_policyHasBeenSet = true; m_policy.assign(value); }
167 inline CreateRestApiRequest& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;}
168 inline CreateRestApiRequest& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;}
169 inline CreateRestApiRequest& WithPolicy(const char* value) { SetPolicy(value); return *this;}
171
173
178 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
181 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
182 inline CreateRestApiRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
183 inline CreateRestApiRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
184 inline CreateRestApiRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
185 inline CreateRestApiRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
186 inline CreateRestApiRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
187 inline CreateRestApiRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
188 inline CreateRestApiRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
189 inline CreateRestApiRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
190 inline CreateRestApiRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
192
194
201 inline bool GetDisableExecuteApiEndpoint() const{ return m_disableExecuteApiEndpoint; }
202 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
203 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
206 private:
207
208 Aws::String m_name;
209 bool m_nameHasBeenSet = false;
210
211 Aws::String m_description;
212 bool m_descriptionHasBeenSet = false;
213
214 Aws::String m_version;
215 bool m_versionHasBeenSet = false;
216
217 Aws::String m_cloneFrom;
218 bool m_cloneFromHasBeenSet = false;
219
220 Aws::Vector<Aws::String> m_binaryMediaTypes;
221 bool m_binaryMediaTypesHasBeenSet = false;
222
223 int m_minimumCompressionSize;
224 bool m_minimumCompressionSizeHasBeenSet = false;
225
226 ApiKeySourceType m_apiKeySource;
227 bool m_apiKeySourceHasBeenSet = false;
228
229 EndpointConfiguration m_endpointConfiguration;
230 bool m_endpointConfigurationHasBeenSet = false;
231
232 Aws::String m_policy;
233 bool m_policyHasBeenSet = false;
234
236 bool m_tagsHasBeenSet = false;
237
238 bool m_disableExecuteApiEndpoint;
239 bool m_disableExecuteApiEndpointHasBeenSet = false;
240 };
241
242} // namespace Model
243} // namespace APIGateway
244} // namespace Aws
CreateRestApiRequest & WithDescription(const Aws::String &value)
CreateRestApiRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRestApiRequest & WithCloneFrom(Aws::String &&value)
CreateRestApiRequest & WithApiKeySource(ApiKeySourceType &&value)
CreateRestApiRequest & WithEndpointConfiguration(const EndpointConfiguration &value)
CreateRestApiRequest & WithPolicy(const char *value)
CreateRestApiRequest & WithBinaryMediaTypes(Aws::Vector< Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetBinaryMediaTypes(const Aws::Vector< Aws::String > &value)
const ApiKeySourceType & GetApiKeySource() const
CreateRestApiRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRestApiRequest & AddTags(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRestApiRequest & WithName(const Aws::String &value)
void SetApiKeySource(const ApiKeySourceType &value)
const Aws::Vector< Aws::String > & GetBinaryMediaTypes() const
CreateRestApiRequest & WithVersion(const char *value)
CreateRestApiRequest & WithVersion(Aws::String &&value)
CreateRestApiRequest & WithBinaryMediaTypes(const Aws::Vector< Aws::String > &value)
CreateRestApiRequest & WithDescription(const char *value)
CreateRestApiRequest & WithName(const char *value)
CreateRestApiRequest & WithPolicy(const Aws::String &value)
CreateRestApiRequest & AddBinaryMediaTypes(Aws::String &&value)
CreateRestApiRequest & AddBinaryMediaTypes(const Aws::String &value)
CreateRestApiRequest & WithDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateRestApiRequest & WithName(Aws::String &&value)
CreateRestApiRequest & WithCloneFrom(const char *value)
CreateRestApiRequest & WithMinimumCompressionSize(int value)
void SetEndpointConfiguration(const EndpointConfiguration &value)
CreateRestApiRequest & WithApiKeySource(const ApiKeySourceType &value)
CreateRestApiRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetBinaryMediaTypes(Aws::Vector< Aws::String > &&value)
CreateRestApiRequest & WithDescription(Aws::String &&value)
CreateRestApiRequest & WithEndpointConfiguration(EndpointConfiguration &&value)
const EndpointConfiguration & GetEndpointConfiguration() const
CreateRestApiRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRestApiRequest & WithVersion(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRestApiRequest & WithCloneFrom(const Aws::String &value)
CreateRestApiRequest & WithPolicy(Aws::String &&value)
CreateRestApiRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetEndpointConfiguration(EndpointConfiguration &&value)
CreateRestApiRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRestApiRequest & AddBinaryMediaTypes(const char *value)
CreateRestApiRequest & AddTags(const char *key, const char *value)
CreateRestApiRequest & AddTags(const char *key, 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