AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateApiRequest.h
1
6#pragma once
7#include <aws/apigatewayv2/ApiGatewayV2Request.h>
8#include <aws/apigatewayv2/ApiGatewayV2_EXPORTS.h>
9#include <aws/apigatewayv2/model/Cors.h>
10#include <aws/apigatewayv2/model/IpAddressType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ApiGatewayV2 {
17namespace Model {
18
25 public:
26 AWS_APIGATEWAYV2_API UpdateApiRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateApi"; }
33
34 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetApiId() const { return m_apiId; }
41 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
42 template <typename ApiIdT = Aws::String>
43 void SetApiId(ApiIdT&& value) {
44 m_apiIdHasBeenSet = true;
45 m_apiId = std::forward<ApiIdT>(value);
46 }
47 template <typename ApiIdT = Aws::String>
48 UpdateApiRequest& WithApiId(ApiIdT&& value) {
49 SetApiId(std::forward<ApiIdT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
61 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
62 template <typename ApiKeySelectionExpressionT = Aws::String>
63 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
64 m_apiKeySelectionExpressionHasBeenSet = true;
65 m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value);
66 }
67 template <typename ApiKeySelectionExpressionT = Aws::String>
68 UpdateApiRequest& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) {
69 SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value));
70 return *this;
71 }
73
75
78 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
79 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
80 template <typename CorsConfigurationT = Cors>
81 void SetCorsConfiguration(CorsConfigurationT&& value) {
82 m_corsConfigurationHasBeenSet = true;
83 m_corsConfiguration = std::forward<CorsConfigurationT>(value);
84 }
85 template <typename CorsConfigurationT = Cors>
86 UpdateApiRequest& WithCorsConfiguration(CorsConfigurationT&& value) {
87 SetCorsConfiguration(std::forward<CorsConfigurationT>(value));
88 return *this;
89 }
91
93
104 inline const Aws::String& GetCredentialsArn() const { return m_credentialsArn; }
105 inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; }
106 template <typename CredentialsArnT = Aws::String>
107 void SetCredentialsArn(CredentialsArnT&& value) {
108 m_credentialsArnHasBeenSet = true;
109 m_credentialsArn = std::forward<CredentialsArnT>(value);
110 }
111 template <typename CredentialsArnT = Aws::String>
112 UpdateApiRequest& WithCredentialsArn(CredentialsArnT&& value) {
113 SetCredentialsArn(std::forward<CredentialsArnT>(value));
114 return *this;
115 }
117
119
122 inline const Aws::String& GetDescription() const { return m_description; }
123 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
124 template <typename DescriptionT = Aws::String>
125 void SetDescription(DescriptionT&& value) {
126 m_descriptionHasBeenSet = true;
127 m_description = std::forward<DescriptionT>(value);
128 }
129 template <typename DescriptionT = Aws::String>
130 UpdateApiRequest& WithDescription(DescriptionT&& value) {
131 SetDescription(std::forward<DescriptionT>(value));
132 return *this;
133 }
135
137
141 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
142 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
143 inline void SetDisableSchemaValidation(bool value) {
144 m_disableSchemaValidationHasBeenSet = true;
145 m_disableSchemaValidation = value;
146 }
149 return *this;
150 }
152
154
161 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
162 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
163 inline void SetDisableExecuteApiEndpoint(bool value) {
164 m_disableExecuteApiEndpointHasBeenSet = true;
165 m_disableExecuteApiEndpoint = value;
166 }
169 return *this;
170 }
172
174
177 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
178 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
179 inline void SetIpAddressType(IpAddressType value) {
180 m_ipAddressTypeHasBeenSet = true;
181 m_ipAddressType = value;
182 }
184 SetIpAddressType(value);
185 return *this;
186 }
188
190
193 inline const Aws::String& GetName() const { return m_name; }
194 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
195 template <typename NameT = Aws::String>
196 void SetName(NameT&& value) {
197 m_nameHasBeenSet = true;
198 m_name = std::forward<NameT>(value);
199 }
200 template <typename NameT = Aws::String>
201 UpdateApiRequest& WithName(NameT&& value) {
202 SetName(std::forward<NameT>(value));
203 return *this;
204 }
206
208
214 inline const Aws::String& GetRouteKey() const { return m_routeKey; }
215 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
216 template <typename RouteKeyT = Aws::String>
217 void SetRouteKey(RouteKeyT&& value) {
218 m_routeKeyHasBeenSet = true;
219 m_routeKey = std::forward<RouteKeyT>(value);
220 }
221 template <typename RouteKeyT = Aws::String>
222 UpdateApiRequest& WithRouteKey(RouteKeyT&& value) {
223 SetRouteKey(std::forward<RouteKeyT>(value));
224 return *this;
225 }
227
229
235 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
236 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
237 template <typename RouteSelectionExpressionT = Aws::String>
238 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) {
239 m_routeSelectionExpressionHasBeenSet = true;
240 m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value);
241 }
242 template <typename RouteSelectionExpressionT = Aws::String>
243 UpdateApiRequest& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) {
244 SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value));
245 return *this;
246 }
248
250
257 inline const Aws::String& GetTarget() const { return m_target; }
258 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
259 template <typename TargetT = Aws::String>
260 void SetTarget(TargetT&& value) {
261 m_targetHasBeenSet = true;
262 m_target = std::forward<TargetT>(value);
263 }
264 template <typename TargetT = Aws::String>
265 UpdateApiRequest& WithTarget(TargetT&& value) {
266 SetTarget(std::forward<TargetT>(value));
267 return *this;
268 }
270
272
275 inline const Aws::String& GetVersion() const { return m_version; }
276 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
277 template <typename VersionT = Aws::String>
278 void SetVersion(VersionT&& value) {
279 m_versionHasBeenSet = true;
280 m_version = std::forward<VersionT>(value);
281 }
282 template <typename VersionT = Aws::String>
283 UpdateApiRequest& WithVersion(VersionT&& value) {
284 SetVersion(std::forward<VersionT>(value));
285 return *this;
286 }
288 private:
289 Aws::String m_apiId;
290
291 Aws::String m_apiKeySelectionExpression;
292
293 Cors m_corsConfiguration;
294
295 Aws::String m_credentialsArn;
296
297 Aws::String m_description;
298
299 bool m_disableSchemaValidation{false};
300
301 bool m_disableExecuteApiEndpoint{false};
302
303 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
304
305 Aws::String m_name;
306
307 Aws::String m_routeKey;
308
309 Aws::String m_routeSelectionExpression;
310
311 Aws::String m_target;
312
313 Aws::String m_version;
314 bool m_apiIdHasBeenSet = false;
315 bool m_apiKeySelectionExpressionHasBeenSet = false;
316 bool m_corsConfigurationHasBeenSet = false;
317 bool m_credentialsArnHasBeenSet = false;
318 bool m_descriptionHasBeenSet = false;
319 bool m_disableSchemaValidationHasBeenSet = false;
320 bool m_disableExecuteApiEndpointHasBeenSet = false;
321 bool m_ipAddressTypeHasBeenSet = false;
322 bool m_nameHasBeenSet = false;
323 bool m_routeKeyHasBeenSet = false;
324 bool m_routeSelectionExpressionHasBeenSet = false;
325 bool m_targetHasBeenSet = false;
326 bool m_versionHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace ApiGatewayV2
331} // namespace Aws
UpdateApiRequest & WithCorsConfiguration(CorsConfigurationT &&value)
const Aws::String & GetRouteSelectionExpression() const
virtual const char * GetServiceRequestName() const override
UpdateApiRequest & WithVersion(VersionT &&value)
UpdateApiRequest & WithDisableExecuteApiEndpoint(bool value)
UpdateApiRequest & WithDisableSchemaValidation(bool value)
const Aws::String & GetCredentialsArn() const
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateApiRequest & WithCredentialsArn(CredentialsArnT &&value)
void SetRouteSelectionExpression(RouteSelectionExpressionT &&value)
void SetCorsConfiguration(CorsConfigurationT &&value)
UpdateApiRequest & WithRouteKey(RouteKeyT &&value)
UpdateApiRequest & WithDescription(DescriptionT &&value)
UpdateApiRequest & WithName(NameT &&value)
UpdateApiRequest & WithIpAddressType(IpAddressType value)
const Aws::String & GetApiKeySelectionExpression() const
UpdateApiRequest & WithApiId(ApiIdT &&value)
UpdateApiRequest & WithRouteSelectionExpression(RouteSelectionExpressionT &&value)
UpdateApiRequest & WithApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
void SetApiKeySelectionExpression(ApiKeySelectionExpressionT &&value)
AWS_APIGATEWAYV2_API UpdateApiRequest()=default
UpdateApiRequest & WithTarget(TargetT &&value)
void SetCredentialsArn(CredentialsArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String