AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15namespace ApiGatewayV2
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_APIGATEWAYV2_API UpdateApiRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateApi"; }
35
36 AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetApiId() const{ return m_apiId; }
44 inline bool ApiIdHasBeenSet() const { return m_apiIdHasBeenSet; }
45 inline void SetApiId(const Aws::String& value) { m_apiIdHasBeenSet = true; m_apiId = value; }
46 inline void SetApiId(Aws::String&& value) { m_apiIdHasBeenSet = true; m_apiId = std::move(value); }
47 inline void SetApiId(const char* value) { m_apiIdHasBeenSet = true; m_apiId.assign(value); }
48 inline UpdateApiRequest& WithApiId(const Aws::String& value) { SetApiId(value); return *this;}
49 inline UpdateApiRequest& WithApiId(Aws::String&& value) { SetApiId(std::move(value)); return *this;}
50 inline UpdateApiRequest& WithApiId(const char* value) { SetApiId(value); return *this;}
52
54
59 inline const Aws::String& GetApiKeySelectionExpression() const{ return m_apiKeySelectionExpression; }
60 inline bool ApiKeySelectionExpressionHasBeenSet() const { return m_apiKeySelectionExpressionHasBeenSet; }
61 inline void SetApiKeySelectionExpression(const Aws::String& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = value; }
62 inline void SetApiKeySelectionExpression(Aws::String&& value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression = std::move(value); }
63 inline void SetApiKeySelectionExpression(const char* value) { m_apiKeySelectionExpressionHasBeenSet = true; m_apiKeySelectionExpression.assign(value); }
66 inline UpdateApiRequest& WithApiKeySelectionExpression(const char* value) { SetApiKeySelectionExpression(value); return *this;}
68
70
73 inline const Cors& GetCorsConfiguration() const{ return m_corsConfiguration; }
74 inline bool CorsConfigurationHasBeenSet() const { return m_corsConfigurationHasBeenSet; }
75 inline void SetCorsConfiguration(const Cors& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = value; }
76 inline void SetCorsConfiguration(Cors&& value) { m_corsConfigurationHasBeenSet = true; m_corsConfiguration = std::move(value); }
77 inline UpdateApiRequest& WithCorsConfiguration(const Cors& value) { SetCorsConfiguration(value); return *this;}
78 inline UpdateApiRequest& WithCorsConfiguration(Cors&& value) { SetCorsConfiguration(std::move(value)); return *this;}
80
82
93 inline const Aws::String& GetCredentialsArn() const{ return m_credentialsArn; }
94 inline bool CredentialsArnHasBeenSet() const { return m_credentialsArnHasBeenSet; }
95 inline void SetCredentialsArn(const Aws::String& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = value; }
96 inline void SetCredentialsArn(Aws::String&& value) { m_credentialsArnHasBeenSet = true; m_credentialsArn = std::move(value); }
97 inline void SetCredentialsArn(const char* value) { m_credentialsArnHasBeenSet = true; m_credentialsArn.assign(value); }
98 inline UpdateApiRequest& WithCredentialsArn(const Aws::String& value) { SetCredentialsArn(value); return *this;}
99 inline UpdateApiRequest& WithCredentialsArn(Aws::String&& value) { SetCredentialsArn(std::move(value)); return *this;}
100 inline UpdateApiRequest& WithCredentialsArn(const char* value) { SetCredentialsArn(value); return *this;}
102
104
107 inline const Aws::String& GetDescription() const{ return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 inline UpdateApiRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 inline UpdateApiRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 inline UpdateApiRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
116
118
122 inline bool GetDisableSchemaValidation() const{ return m_disableSchemaValidation; }
123 inline bool DisableSchemaValidationHasBeenSet() const { return m_disableSchemaValidationHasBeenSet; }
124 inline void SetDisableSchemaValidation(bool value) { m_disableSchemaValidationHasBeenSet = true; m_disableSchemaValidation = value; }
127
129
136 inline bool GetDisableExecuteApiEndpoint() const{ return m_disableExecuteApiEndpoint; }
137 inline bool DisableExecuteApiEndpointHasBeenSet() const { return m_disableExecuteApiEndpointHasBeenSet; }
138 inline void SetDisableExecuteApiEndpoint(bool value) { m_disableExecuteApiEndpointHasBeenSet = true; m_disableExecuteApiEndpoint = value; }
141
143
146 inline const Aws::String& GetName() const{ return m_name; }
147 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
148 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
149 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
150 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
151 inline UpdateApiRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
152 inline UpdateApiRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
153 inline UpdateApiRequest& WithName(const char* value) { SetName(value); return *this;}
155
157
163 inline const Aws::String& GetRouteKey() const{ return m_routeKey; }
164 inline bool RouteKeyHasBeenSet() const { return m_routeKeyHasBeenSet; }
165 inline void SetRouteKey(const Aws::String& value) { m_routeKeyHasBeenSet = true; m_routeKey = value; }
166 inline void SetRouteKey(Aws::String&& value) { m_routeKeyHasBeenSet = true; m_routeKey = std::move(value); }
167 inline void SetRouteKey(const char* value) { m_routeKeyHasBeenSet = true; m_routeKey.assign(value); }
168 inline UpdateApiRequest& WithRouteKey(const Aws::String& value) { SetRouteKey(value); return *this;}
169 inline UpdateApiRequest& WithRouteKey(Aws::String&& value) { SetRouteKey(std::move(value)); return *this;}
170 inline UpdateApiRequest& WithRouteKey(const char* value) { SetRouteKey(value); return *this;}
172
174
180 inline const Aws::String& GetRouteSelectionExpression() const{ return m_routeSelectionExpression; }
181 inline bool RouteSelectionExpressionHasBeenSet() const { return m_routeSelectionExpressionHasBeenSet; }
182 inline void SetRouteSelectionExpression(const Aws::String& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = value; }
183 inline void SetRouteSelectionExpression(Aws::String&& value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression = std::move(value); }
184 inline void SetRouteSelectionExpression(const char* value) { m_routeSelectionExpressionHasBeenSet = true; m_routeSelectionExpression.assign(value); }
187 inline UpdateApiRequest& WithRouteSelectionExpression(const char* value) { SetRouteSelectionExpression(value); return *this;}
189
191
198 inline const Aws::String& GetTarget() const{ return m_target; }
199 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
200 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
201 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
202 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
203 inline UpdateApiRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
204 inline UpdateApiRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
205 inline UpdateApiRequest& WithTarget(const char* value) { SetTarget(value); return *this;}
207
209
212 inline const Aws::String& GetVersion() const{ return m_version; }
213 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
214 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
215 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
216 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
217 inline UpdateApiRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
218 inline UpdateApiRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
219 inline UpdateApiRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
221 private:
222
223 Aws::String m_apiId;
224 bool m_apiIdHasBeenSet = false;
225
226 Aws::String m_apiKeySelectionExpression;
227 bool m_apiKeySelectionExpressionHasBeenSet = false;
228
229 Cors m_corsConfiguration;
230 bool m_corsConfigurationHasBeenSet = false;
231
232 Aws::String m_credentialsArn;
233 bool m_credentialsArnHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 bool m_disableSchemaValidation;
239 bool m_disableSchemaValidationHasBeenSet = false;
240
241 bool m_disableExecuteApiEndpoint;
242 bool m_disableExecuteApiEndpointHasBeenSet = false;
243
244 Aws::String m_name;
245 bool m_nameHasBeenSet = false;
246
247 Aws::String m_routeKey;
248 bool m_routeKeyHasBeenSet = false;
249
250 Aws::String m_routeSelectionExpression;
251 bool m_routeSelectionExpressionHasBeenSet = false;
252
253 Aws::String m_target;
254 bool m_targetHasBeenSet = false;
255
256 Aws::String m_version;
257 bool m_versionHasBeenSet = false;
258 };
259
260} // namespace Model
261} // namespace ApiGatewayV2
262} // namespace Aws
const Aws::String & GetRouteSelectionExpression() const
UpdateApiRequest & WithTarget(Aws::String &&value)
void SetApiKeySelectionExpression(const Aws::String &value)
UpdateApiRequest & WithDescription(const Aws::String &value)
UpdateApiRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateApiRequest & WithCredentialsArn(Aws::String &&value)
UpdateApiRequest & WithVersion(const char *value)
void SetApiKeySelectionExpression(Aws::String &&value)
UpdateApiRequest & WithDisableExecuteApiEndpoint(bool value)
UpdateApiRequest & WithDisableSchemaValidation(bool value)
UpdateApiRequest & WithVersion(Aws::String &&value)
const Aws::String & GetCredentialsArn() const
UpdateApiRequest & WithRouteKey(const Aws::String &value)
UpdateApiRequest & WithApiKeySelectionExpression(const char *value)
UpdateApiRequest & WithRouteSelectionExpression(Aws::String &&value)
void SetRouteKey(const Aws::String &value)
AWS_APIGATEWAYV2_API Aws::String SerializePayload() const override
UpdateApiRequest & WithApiId(Aws::String &&value)
void SetRouteSelectionExpression(Aws::String &&value)
void SetVersion(const Aws::String &value)
UpdateApiRequest & WithDescription(Aws::String &&value)
UpdateApiRequest & WithName(Aws::String &&value)
UpdateApiRequest & WithCredentialsArn(const Aws::String &value)
UpdateApiRequest & WithRouteKey(Aws::String &&value)
void SetApiKeySelectionExpression(const char *value)
UpdateApiRequest & WithCorsConfiguration(const Cors &value)
void SetDescription(const Aws::String &value)
UpdateApiRequest & WithApiId(const Aws::String &value)
const Aws::String & GetApiKeySelectionExpression() const
UpdateApiRequest & WithApiId(const char *value)
UpdateApiRequest & WithRouteSelectionExpression(const char *value)
UpdateApiRequest & WithTarget(const Aws::String &value)
void SetRouteSelectionExpression(const char *value)
void SetTarget(const Aws::String &value)
UpdateApiRequest & WithCredentialsArn(const char *value)
UpdateApiRequest & WithName(const Aws::String &value)
void SetName(const Aws::String &value)
UpdateApiRequest & WithApiKeySelectionExpression(Aws::String &&value)
UpdateApiRequest & WithTarget(const char *value)
UpdateApiRequest & WithRouteKey(const char *value)
void SetCredentialsArn(const Aws::String &value)
void SetRouteSelectionExpression(const Aws::String &value)
UpdateApiRequest & WithVersion(const Aws::String &value)
UpdateApiRequest & WithCorsConfiguration(Cors &&value)
UpdateApiRequest & WithApiKeySelectionExpression(const Aws::String &value)
UpdateApiRequest & WithRouteSelectionExpression(const Aws::String &value)
UpdateApiRequest & WithDescription(const char *value)
void SetApiId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String