AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateApiRequest.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 <utility>
13
14namespace Aws
15{
16namespace ApiGatewayV2
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_APIGATEWAYV2_API UpdateApiRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateApi"; }
36
37 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetApiId() const { return m_apiId; }
45 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
46 template<typename ApiIdT = Aws::String>
47 void SetApiId(ApiIdT&& value) { m_apiIdHasBeenSet = true; m_apiId = std::forward<ApiIdT>(value); }
48 template<typename ApiIdT = Aws::String>
49 UpdateApiRequest& WithApiId(ApiIdT&& value) { SetApiId(std::forward<ApiIdT>(value)); return *this;}
51
53
58 inline const Aws::String& GetApiKeySelectionExpression() const { return m_apiKeySelectionExpression; }
59 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
60 template<typename ApiKeySelectionExpressionT = Aws::String>
61 void SetApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::forward<ApiKeySelectionExpressionT>(value); }
62 template<typename ApiKeySelectionExpressionT = Aws::String>
63 UpdateApiRequest& WithApiKeySelectionExpression(ApiKeySelectionExpressionT&& value) { SetApiKeySelectionExpression(std::forward<ApiKeySelectionExpressionT>(value)); return *this;}
65
67
70 inline const Cors& GetCorsConfiguration() const { return m_corsConfiguration; }
71 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
72 template<typename CorsConfigurationT = Cors>
73 void SetCorsConfiguration(CorsConfigurationT&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::forward<CorsConfigurationT>(value); }
74 template<typename CorsConfigurationT = Cors>
75 UpdateApiRequest& WithCorsConfiguration(CorsConfigurationT&& value) { SetCorsConfiguration(std::forward<CorsConfigurationT>(value)); return *this;}
77
79
90 inline const Aws::String& GetCredentialsArn() const { return m_credentialsArn; }
91 inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; }
92 template<typename CredentialsArnT = Aws::String>
93 void SetCredentialsArn(CredentialsArnT&& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = std::forward<CredentialsArnT>(value); }
94 template<typename CredentialsArnT = Aws::String>
95 UpdateApiRequest& WithCredentialsArn(CredentialsArnT&& value) { SetCredentialsArn(std::forward<CredentialsArnT>(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 UpdateApiRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
115 inline bool GetDisableSchemaValidation() const { return m_disableSchemaValidation; }
116 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
117 inline void SetDisableSchemaValidation(bool value) { m_disableSchemaValidationHasBeenSet = true; m_disableSchemaValidation = value; }
120
122
129 inline bool GetDisableExecuteApiEndpoint() const { return m_disableExecuteApiEndpoint; }
130 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
131 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
134
136
139 inline IpAddressType GetIpAddressType() const { return m_ipAddressType; }
140 inline bool IpAddressTypeHasBeenSet() const { return m_ipAddressTypeHasBeenSet; }
141 inline void SetIpAddressType(IpAddressType value) { m_ipAddressTypeHasBeenSet = true; m_ipAddressType = value; }
142 inline UpdateApiRequest& WithIpAddressType(IpAddressType value) { SetIpAddressType(value); return *this;}
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template<typename NameT = Aws::String>
152 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
153 template<typename NameT = Aws::String>
154 UpdateApiRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
156
158
164 inline const Aws::String& GetRouteKey() const { return m_routeKey; }
165 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
166 template<typename RouteKeyT = Aws::String>
167 void SetRouteKey(RouteKeyT&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::forward<RouteKeyT>(value); }
168 template<typename RouteKeyT = Aws::String>
169 UpdateApiRequest& WithRouteKey(RouteKeyT&& value) { SetRouteKey(std::forward<RouteKeyT>(value)); return *this;}
171
173
179 inline const Aws::String& GetRouteSelectionExpression() const { return m_routeSelectionExpression; }
180 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
181 template<typename RouteSelectionExpressionT = Aws::String>
182 void SetRouteSelectionExpression(RouteSelectionExpressionT&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::forward<RouteSelectionExpressionT>(value); }
183 template<typename RouteSelectionExpressionT = Aws::String>
184 UpdateApiRequest& WithRouteSelectionExpression(RouteSelectionExpressionT&& value) { SetRouteSelectionExpression(std::forward<RouteSelectionExpressionT>(value)); return *this;}
186
188
195 inline const Aws::String& GetTarget() const { return m_target; }
196 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
197 template<typename TargetT = Aws::String>
198 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
199 template<typename TargetT = Aws::String>
200 UpdateApiRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
202
204
207 inline const Aws::String& GetVersion() const { return m_version; }
208 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
209 template<typename VersionT = Aws::String>
210 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
211 template<typename VersionT = Aws::String>
212 UpdateApiRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
214 private:
215
216 Aws::String m_apiId;
217 bool m_apiIdHasBeenSet = false;
218
219 Aws::String m_apiKeySelectionExpression;
220 bool m_apiKeySelectionExpressionHasBeenSet = false;
221
222 Cors m_corsConfiguration;
223 bool m_corsConfigurationHasBeenSet = false;
224
225 Aws::String m_credentialsArn;
226 bool m_credentialsArnHasBeenSet = false;
227
228 Aws::String m_description;
229 bool m_descriptionHasBeenSet = false;
230
231 bool m_disableSchemaValidation{false};
232 bool m_disableSchemaValidationHasBeenSet = false;
233
234 bool m_disableExecuteApiEndpoint{false};
235 bool m_disableExecuteApiEndpointHasBeenSet = false;
236
237 IpAddressType m_ipAddressType{IpAddressType::NOT_SET};
238 bool m_ipAddressTypeHasBeenSet = false;
239
240 Aws::String m_name;
241 bool m_nameHasBeenSet = false;
242
243 Aws::String m_routeKey;
244 bool m_routeKeyHasBeenSet = false;
245
246 Aws::String m_routeSelectionExpression;
247 bool m_routeSelectionExpressionHasBeenSet = false;
248
249 Aws::String m_target;
250 bool m_targetHasBeenSet = false;
251
252 Aws::String m_version;
253 bool m_versionHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace ApiGatewayV2
258} // 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