AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Method.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/apigateway/model/Integration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/apigateway/model/MethodResponse.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace APIGateway
26{
27namespace Model
28{
29
44 class Method
45 {
46 public:
47 AWS_APIGATEWAY_API Method();
48 AWS_APIGATEWAY_API Method(Aws::Utils::Json::JsonView jsonValue);
49 AWS_APIGATEWAY_API Method& operator=(Aws::Utils::Json::JsonView jsonValue);
50 AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
57 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
58 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
59 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
60 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
61 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
62 inline Method& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
63 inline Method& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
64 inline Method& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
66
68
74 inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
75 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
76 inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
77 inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
78 inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
79 inline Method& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
80 inline Method& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
81 inline Method& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
83
85
89 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
90 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
91 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
92 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
93 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
94 inline Method& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
95 inline Method& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
96 inline Method& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
98
100
104 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
105 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
106 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
107 inline Method& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
109
111
114 inline const Aws::String& GetRequestValidatorId() const{ return m_requestValidatorId; }
115 inline bool RequestValidatorIdHasBeenSet() const { return m_requestValidatorIdHasBeenSet; }
116 inline void SetRequestValidatorId(const Aws::String& value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId = value; }
117 inline void SetRequestValidatorId(Aws::String&& value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId = std::move(value); }
118 inline void SetRequestValidatorId(const char* value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId.assign(value); }
119 inline Method& WithRequestValidatorId(const Aws::String& value) { SetRequestValidatorId(value); return *this;}
120 inline Method& WithRequestValidatorId(Aws::String&& value) { SetRequestValidatorId(std::move(value)); return *this;}
121 inline Method& WithRequestValidatorId(const char* value) { SetRequestValidatorId(value); return *this;}
123
125
130 inline const Aws::String& GetOperationName() const{ return m_operationName; }
131 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
132 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
133 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
134 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
135 inline Method& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
136 inline Method& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
137 inline Method& WithOperationName(const char* value) { SetOperationName(value); return *this;}
139
141
152 inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const{ return m_requestParameters; }
153 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
154 inline void SetRequestParameters(const Aws::Map<Aws::String, bool>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
155 inline void SetRequestParameters(Aws::Map<Aws::String, bool>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::move(value); }
157 inline Method& WithRequestParameters(Aws::Map<Aws::String, bool>&& value) { SetRequestParameters(std::move(value)); return *this;}
158 inline Method& AddRequestParameters(const Aws::String& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
159 inline Method& AddRequestParameters(Aws::String&& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), value); return *this; }
160 inline Method& AddRequestParameters(const char* key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
162
164
169 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
170 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
171 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
172 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::move(value); }
174 inline Method& WithRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestModels(std::move(value)); return *this;}
175 inline Method& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
176 inline Method& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
177 inline Method& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
178 inline Method& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
179 inline Method& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
180 inline Method& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
181 inline Method& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
183
185
188 inline const Aws::Map<Aws::String, MethodResponse>& GetMethodResponses() const{ return m_methodResponses; }
189 inline bool MethodResponsesHasBeenSet() const { return m_methodResponsesHasBeenSet; }
190 inline void SetMethodResponses(const Aws::Map<Aws::String, MethodResponse>& value) { m_methodResponsesHasBeenSet = true; m_methodResponses = value; }
191 inline void SetMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses = std::move(value); }
193 inline Method& WithMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { SetMethodResponses(std::move(value)); return *this;}
194 inline Method& AddMethodResponses(const Aws::String& key, const MethodResponse& value) { m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(key, value); return *this; }
195 inline Method& AddMethodResponses(Aws::String&& key, const MethodResponse& value) { m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(std::move(key), value); return *this; }
196 inline Method& AddMethodResponses(const Aws::String& key, MethodResponse&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(key, std::move(value)); return *this; }
197 inline Method& AddMethodResponses(Aws::String&& key, MethodResponse&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(std::move(key), std::move(value)); return *this; }
198 inline Method& AddMethodResponses(const char* key, MethodResponse&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(key, std::move(value)); return *this; }
199 inline Method& AddMethodResponses(const char* key, const MethodResponse& value) { m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(key, value); return *this; }
201
203
208 inline const Integration& GetMethodIntegration() const{ return m_methodIntegration; }
209 inline bool MethodIntegrationHasBeenSet() const { return m_methodIntegrationHasBeenSet; }
210 inline void SetMethodIntegration(const Integration& value) { m_methodIntegrationHasBeenSet = true; m_methodIntegration = value; }
211 inline void SetMethodIntegration(Integration&& value) { m_methodIntegrationHasBeenSet = true; m_methodIntegration = std::move(value); }
212 inline Method& WithMethodIntegration(const Integration& value) { SetMethodIntegration(value); return *this;}
213 inline Method& WithMethodIntegration(Integration&& value) { SetMethodIntegration(std::move(value)); return *this;}
215
217
227 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
228 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
229 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = value; }
230 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::move(value); }
232 inline Method& WithAuthorizationScopes(Aws::Vector<Aws::String>&& value) { SetAuthorizationScopes(std::move(value)); return *this;}
233 inline Method& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
234 inline Method& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(std::move(value)); return *this; }
235 inline Method& AddAuthorizationScopes(const char* value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
237
239
240 inline const Aws::String& GetRequestId() const{ return m_requestId; }
241 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
242 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
243 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
244 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
245 inline Method& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
246 inline Method& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
247 inline Method& WithRequestId(const char* value) { SetRequestId(value); return *this;}
249 private:
250
251 Aws::String m_httpMethod;
252 bool m_httpMethodHasBeenSet = false;
253
254 Aws::String m_authorizationType;
255 bool m_authorizationTypeHasBeenSet = false;
256
257 Aws::String m_authorizerId;
258 bool m_authorizerIdHasBeenSet = false;
259
260 bool m_apiKeyRequired;
261 bool m_apiKeyRequiredHasBeenSet = false;
262
263 Aws::String m_requestValidatorId;
264 bool m_requestValidatorIdHasBeenSet = false;
265
266 Aws::String m_operationName;
267 bool m_operationNameHasBeenSet = false;
268
269 Aws::Map<Aws::String, bool> m_requestParameters;
270 bool m_requestParametersHasBeenSet = false;
271
273 bool m_requestModelsHasBeenSet = false;
274
276 bool m_methodResponsesHasBeenSet = false;
277
278 Integration m_methodIntegration;
279 bool m_methodIntegrationHasBeenSet = false;
280
281 Aws::Vector<Aws::String> m_authorizationScopes;
282 bool m_authorizationScopesHasBeenSet = false;
283
284 Aws::String m_requestId;
285 bool m_requestIdHasBeenSet = false;
286 };
287
288} // namespace Model
289} // namespace APIGateway
290} // namespace Aws
const Aws::String & GetRequestId() const
Definition Method.h:240
const Aws::String & GetHttpMethod() const
Definition Method.h:57
Method & WithAuthorizationType(Aws::String &&value)
Definition Method.h:80
Method & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition Method.h:174
Method & AddMethodResponses(Aws::String &&key, const MethodResponse &value)
Definition Method.h:195
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
Definition Method.h:155
void SetRequestId(const char *value)
Definition Method.h:244
Method & WithOperationName(const Aws::String &value)
Definition Method.h:135
Method & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition Method.h:173
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
Definition Method.h:154
Method & AddRequestModels(const Aws::String &key, const Aws::String &value)
Definition Method.h:175
Method & AddRequestParameters(const char *key, bool value)
Definition Method.h:160
Method & WithRequestId(const char *value)
Definition Method.h:247
const Aws::String & GetRequestValidatorId() const
Definition Method.h:114
void SetRequestValidatorId(const char *value)
Definition Method.h:118
Method & WithRequestId(Aws::String &&value)
Definition Method.h:246
const Aws::String & GetAuthorizerId() const
Definition Method.h:89
Method & AddRequestModels(Aws::String &&key, const Aws::String &value)
Definition Method.h:176
Method & AddRequestModels(Aws::String &&key, Aws::String &&value)
Definition Method.h:178
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
Method & AddMethodResponses(Aws::String &&key, MethodResponse &&value)
Definition Method.h:197
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
Definition Method.h:230
Method & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
Definition Method.h:232
const Aws::String & GetOperationName() const
Definition Method.h:130
Method & AddAuthorizationScopes(const Aws::String &value)
Definition Method.h:233
void SetMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
Definition Method.h:190
bool RequestModelsHasBeenSet() const
Definition Method.h:170
Method & WithRequestId(const Aws::String &value)
Definition Method.h:245
Method & AddMethodResponses(const char *key, MethodResponse &&value)
Definition Method.h:198
AWS_APIGATEWAY_API Method()
Method & AddRequestModels(Aws::String &&key, const char *value)
Definition Method.h:180
Method & WithMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
Definition Method.h:192
void SetAuthorizerId(const char *value)
Definition Method.h:93
Method & WithRequestValidatorId(Aws::String &&value)
Definition Method.h:120
Method & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
Definition Method.h:157
bool RequestIdHasBeenSet() const
Definition Method.h:241
void SetAuthorizationType(const Aws::String &value)
Definition Method.h:76
bool HttpMethodHasBeenSet() const
Definition Method.h:58
Method & WithMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
Definition Method.h:193
void SetRequestValidatorId(const Aws::String &value)
Definition Method.h:116
Method & WithHttpMethod(const Aws::String &value)
Definition Method.h:62
void SetOperationName(Aws::String &&value)
Definition Method.h:133
void SetAuthorizerId(Aws::String &&value)
Definition Method.h:92
void SetMethodIntegration(const Integration &value)
Definition Method.h:210
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
Definition Method.h:227
Method & WithMethodIntegration(const Integration &value)
Definition Method.h:212
Method & AddMethodResponses(const char *key, const MethodResponse &value)
Definition Method.h:199
void SetOperationName(const Aws::String &value)
Definition Method.h:132
bool RequestValidatorIdHasBeenSet() const
Definition Method.h:115
Method & WithHttpMethod(const char *value)
Definition Method.h:64
void SetAuthorizationType(Aws::String &&value)
Definition Method.h:77
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
Definition Method.h:229
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
Definition Method.h:188
AWS_APIGATEWAY_API Method(Aws::Utils::Json::JsonView jsonValue)
Method & AddRequestModels(const Aws::String &key, Aws::String &&value)
Definition Method.h:177
void SetApiKeyRequired(bool value)
Definition Method.h:106
bool MethodIntegrationHasBeenSet() const
Definition Method.h:209
Method & WithAuthorizerId(const char *value)
Definition Method.h:96
bool AuthorizerIdHasBeenSet() const
Definition Method.h:90
Method & WithAuthorizerId(Aws::String &&value)
Definition Method.h:95
Method & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
Definition Method.h:231
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
Definition Method.h:169
void SetHttpMethod(const Aws::String &value)
Definition Method.h:59
bool AuthorizationScopesHasBeenSet() const
Definition Method.h:228
Method & WithHttpMethod(Aws::String &&value)
Definition Method.h:63
Method & AddAuthorizationScopes(const char *value)
Definition Method.h:235
Method & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
Definition Method.h:156
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition Method.h:172
bool AuthorizationTypeHasBeenSet() const
Definition Method.h:75
Method & WithAuthorizationType(const char *value)
Definition Method.h:81
void SetAuthorizerId(const Aws::String &value)
Definition Method.h:91
Method & AddRequestModels(const char *key, Aws::String &&value)
Definition Method.h:179
Method & WithApiKeyRequired(bool value)
Definition Method.h:107
Method & AddMethodResponses(const Aws::String &key, const MethodResponse &value)
Definition Method.h:194
Method & AddMethodResponses(const Aws::String &key, MethodResponse &&value)
Definition Method.h:196
void SetRequestId(Aws::String &&value)
Definition Method.h:243
const Aws::String & GetAuthorizationType() const
Definition Method.h:74
void SetOperationName(const char *value)
Definition Method.h:134
Method & WithRequestValidatorId(const char *value)
Definition Method.h:121
void SetAuthorizationType(const char *value)
Definition Method.h:78
const Integration & GetMethodIntegration() const
Definition Method.h:208
Method & WithAuthorizerId(const Aws::String &value)
Definition Method.h:94
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
Definition Method.h:152
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition Method.h:171
void SetRequestId(const Aws::String &value)
Definition Method.h:242
bool ApiKeyRequiredHasBeenSet() const
Definition Method.h:105
bool GetApiKeyRequired() const
Definition Method.h:104
Method & WithAuthorizationType(const Aws::String &value)
Definition Method.h:79
bool RequestParametersHasBeenSet() const
Definition Method.h:153
AWS_APIGATEWAY_API Method & operator=(Aws::Utils::Json::JsonView jsonValue)
Method & WithRequestValidatorId(const Aws::String &value)
Definition Method.h:119
Method & AddRequestParameters(Aws::String &&key, bool value)
Definition Method.h:159
bool MethodResponsesHasBeenSet() const
Definition Method.h:189
Method & WithOperationName(const char *value)
Definition Method.h:137
Method & AddRequestParameters(const Aws::String &key, bool value)
Definition Method.h:158
Method & AddAuthorizationScopes(Aws::String &&value)
Definition Method.h:234
void SetMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
Definition Method.h:191
Method & WithMethodIntegration(Integration &&value)
Definition Method.h:213
Method & AddRequestModels(const char *key, const char *value)
Definition Method.h:181
bool OperationNameHasBeenSet() const
Definition Method.h:131
void SetRequestValidatorId(Aws::String &&value)
Definition Method.h:117
Method & WithOperationName(Aws::String &&value)
Definition Method.h:136
void SetHttpMethod(Aws::String &&value)
Definition Method.h:60
void SetHttpMethod(const char *value)
Definition Method.h:61
void SetMethodIntegration(Integration &&value)
Definition Method.h:211
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
Aws::Utils::Json::JsonValue JsonValue