AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateApiRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
8#include <aws/apigatewayv2/ApiGatewayV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigatewayv2/model/Cors.h>
11#include <aws/apigatewayv2/model/IpAddressType.h>
12#include <aws/apigatewayv2/model/ProtocolType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ApiGatewayV2
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_APIGATEWAYV2_API CreateApiRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateApi"; }
38
39 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
40
41
43
48 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
49 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
50 template<typename ApiKeySelectionExpressionT = Aws::String>
51 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value); }
52 template<typename ApiKeySelectionExpressionT = Aws::String>
53 CreateApiRequest& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value)); return *this;}
55
57
62 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
63 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
64 template<typename CorsConfigurationT = Cors>
65 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
66 template<typename CorsConfigurationT = Cors>
67 CreateApiRequest& WithCorsConfiguration(CorsConfigurationT&& value) { SetCorsConfiguration(std::forward<CorsConfigurationT>(value)); return *this;}
69
71
80 inline const Aws::String& GetCredentialsArn() const { return m_credentialsArn; }
81 inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; }
82 template<typename CredentialsArnT = Aws::String>
83 void SetCredentialsArn(CredentialsArnT&& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = std::forward<CredentialsArnT>(value); }
84 template<typename CredentialsArnT = Aws::String>
85 CreateApiRequest& WithCredentialsArn(CredentialsArnT&& value) { SetCredentialsArn(std::forward<CredentialsArnT>(value)); return *this;}
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template<typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
96 template<typename DescriptionT = Aws::String>
97 CreateApiRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
99
101
105 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
106 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
107 inline void SetDisableSchemaValidation(bool value) { m_disableSchemaValidationHasBeenSet = true; m_disableSchemaValidation = value; }
110
112
119 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
120 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
121 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
124
126
129 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
130 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
131 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
132 inline CreateApiRequest& WithIpAddressType(IpAddressType value) { SetIpAddressType(value); return *this;}
134
136
139 inline const Aws::String& GetName() const { return m_name; }
140 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
141 template<typename NameT = Aws::String>
142 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
143 template<typename NameT = Aws::String>
144 CreateApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
146
148
151 inline ProtocolType GetProtocolType() const { return m_protocolType; }
152 inline bool ProtocolTypeHasBeenSet() const { return m_protocolTypeHasBeenSet; }
153 inline void SetProtocolType(ProtocolType value) { m_protocolTypeHasBeenSet = true; m_protocolType = value; }
154 inline CreateApiRequest& WithProtocolType(ProtocolType value) { SetProtocolType(value); return *this;}
156
158
165 inline const Aws::String& GetRouteKey() const { return m_routeKey; }
166 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
167 template<typename RouteKeyT = Aws::String>
168 void SetRouteKey(RouteKeyT&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::forward<RouteKeyT>(value); }
169 template<typename RouteKeyT = Aws::String>
170 CreateApiRequest& WithRouteKey(RouteKeyT&& value) { SetRouteKey(std::forward<RouteKeyT>(value)); return *this;}
172
174
180 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
181 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
182 template<typename RouteSelectionExpressionT = Aws::String>
183 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value); }
184 template<typename RouteSelectionExpressionT = Aws::String>
185 CreateApiRequest& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) { SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value)); return *this;}
187
189
193 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
197 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 CreateApiRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
199 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
200 CreateApiRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
201 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
202 }
204
206
214 inline const Aws::String& GetTarget() const { return m_target; }
215 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
216 template<typename TargetT = Aws::String>
217 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
218 template<typename TargetT = Aws::String>
219 CreateApiRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
221
223
226 inline const Aws::String& GetVersion() const { return m_version; }
227 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
228 template<typename VersionT = Aws::String>
229 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
230 template<typename VersionT = Aws::String>
231 CreateApiRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
233 private:
234
235 Aws::String m_apiKeySelectionExpression;
236 bool m_apiKeySelectionExpressionHasBeenSet = false;
237
238 Cors m_corsConfiguration;
239 bool m_corsConfigurationHasBeenSet = false;
240
241 Aws::String m_credentialsArn;
242 bool m_credentialsArnHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 bool m_disableSchemaValidation{false};
248 bool m_disableSchemaValidationHasBeenSet = false;
249
250 bool m_disableExecuteApiEndpoint{false};
251 bool m_disableExecuteApiEndpointHasBeenSet = false;
252
253 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
254 bool m_ipAddressTypeHasBeenSet = false;
255
256 Aws::String m_name;
257 bool m_nameHasBeenSet = false;
258
259 ProtocolType m_protocolType{ProtocolType::NOT_SET};
260 bool m_protocolTypeHasBeenSet = false;
261
262 Aws::String m_routeKey;
263 bool m_routeKeyHasBeenSet = false;
264
265 Aws::String m_routeSelectionExpression;
266 bool m_routeSelectionExpressionHasBeenSet = false;
267
269 bool m_tagsHasBeenSet = false;
270
271 Aws::String m_target;
272 bool m_targetHasBeenSet = false;
273
274 Aws::String m_version;
275 bool m_versionHasBeenSet = false;
276 };
277
278} // namespace Model
279} // namespace ApiGatewayV2
280} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
const Aws::String & GetRouteSelectionExpression() const
CreateApiRequest & WithTarget(TargetT &&value)
CreateApiRequest & WithIpAddressType(IpAddressType value)
CreateApiRequest & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
CreateApiRequest & WithVersion(VersionT &&value)
CreateApiRequest & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
const Aws::String & GetApiKeySelectionExpression() const
const Aws::String & GetCredentialsArn() const
CreateApiRequest & WithDescription(DescriptionT &&value)
CreateApiRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApiRequest & WithDisableSchemaValidation(bool value)
CreateApiRequest & WithTags(TagsT &&value)
CreateApiRequest & WithCredentialsArn(CredentialsArnT &&value)
CreateApiRequest & WithCorsConfiguration(CorsConfigurationT &&value)
void SetCorsConfiguration(CorsConfigurationT &&value)
CreateApiRequest & WithDisableExecuteApiEndpoint(bool value)
AWS_APIGATEWAYV2_API CreateApiRequest()=default
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
CreateApiRequest & WithProtocolType(ProtocolType value)
CreateApiRequest & WithRouteKey(RouteKeyT &&value)
CreateApiRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::String & GetDescription() const
void SetCredentialsArn(CredentialsArnT &&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