AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename HttpMethodT = Aws::String>
60 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::forward<HttpMethodT>(value); }
61 template<typename HttpMethodT = Aws::String>
62 Method& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
64
66
72 inline const Aws::String& GetAuthorizationType() const { return m_authorizationType; }
73 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
74 template<typename AuthorizationTypeT = Aws::String>
75 void SetAuthorizationType(AuthorizationTypeT&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::forward<AuthorizationTypeT>(value); }
76 template<typename AuthorizationTypeT = Aws::String>
77 Method& WithAuthorizationType(AuthorizationTypeT&& value) { SetAuthorizationType(std::forward<AuthorizationTypeT>(value)); return *this;}
79
81
85 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
86 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
87 template<typename AuthorizerIdT = Aws::String>
88 void SetAuthorizerId(AuthorizerIdT&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
89 template<typename AuthorizerIdT = Aws::String>
90 Method& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
92
94
98 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
99 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
100 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
101 inline Method& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
103
105
108 inline const Aws::String& GetRequestValidatorId() const { return m_requestValidatorId; }
109 inline bool RequestValidatorIdHasBeenSet() const { return m_requestValidatorIdHasBeenSet; }
110 template<typename RequestValidatorIdT = Aws::String>
111 void SetRequestValidatorId(RequestValidatorIdT&& value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId = std::forward<RequestValidatorIdT>(value); }
112 template<typename RequestValidatorIdT = Aws::String>
113 Method& WithRequestValidatorId(RequestValidatorIdT&& value) { SetRequestValidatorId(std::forward<RequestValidatorIdT>(value)); return *this;}
115
117
122 inline const Aws::String& GetOperationName() const { return m_operationName; }
123 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
124 template<typename OperationNameT = Aws::String>
125 void SetOperationName(OperationNameT&& value) { m_operationNameHasBeenSet = true; m_operationName = std::forward<OperationNameT>(value); }
126 template<typename OperationNameT = Aws::String>
127 Method& WithOperationName(OperationNameT&& value) { SetOperationName(std::forward<OperationNameT>(value)); return *this;}
129
131
142 inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const { return m_requestParameters; }
143 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
144 template<typename RequestParametersT = Aws::Map<Aws::String, bool>>
145 void SetRequestParameters(RequestParametersT&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::forward<RequestParametersT>(value); }
146 template<typename RequestParametersT = Aws::Map<Aws::String, bool>>
147 Method& WithRequestParameters(RequestParametersT&& value) { SetRequestParameters(std::forward<RequestParametersT>(value)); return *this;}
148 inline Method& AddRequestParameters(Aws::String key, bool value) {
149 m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this;
150 }
152
154
159 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const { return m_requestModels; }
160 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
161 template<typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
162 void SetRequestModels(RequestModelsT&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::forward<RequestModelsT>(value); }
163 template<typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
164 Method& WithRequestModels(RequestModelsT&& value) { SetRequestModels(std::forward<RequestModelsT>(value)); return *this;}
165 template<typename RequestModelsKeyT = Aws::String, typename RequestModelsValueT = Aws::String>
166 Method& AddRequestModels(RequestModelsKeyT&& key, RequestModelsValueT&& value) {
167 m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value)); return *this;
168 }
170
172
175 inline const Aws::Map<Aws::String, MethodResponse>& GetMethodResponses() const { return m_methodResponses; }
176 inline bool MethodResponsesHasBeenSet() const { return m_methodResponsesHasBeenSet; }
177 template<typename MethodResponsesT = Aws::Map<Aws::String, MethodResponse>>
178 void SetMethodResponses(MethodResponsesT&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses = std::forward<MethodResponsesT>(value); }
179 template<typename MethodResponsesT = Aws::Map<Aws::String, MethodResponse>>
180 Method& WithMethodResponses(MethodResponsesT&& value) { SetMethodResponses(std::forward<MethodResponsesT>(value)); return *this;}
181 template<typename MethodResponsesKeyT = Aws::String, typename MethodResponsesValueT = MethodResponse>
182 Method& AddMethodResponses(MethodResponsesKeyT&& key, MethodResponsesValueT&& value) {
183 m_methodResponsesHasBeenSet = true; m_methodResponses.emplace(std::forward<MethodResponsesKeyT>(key), std::forward<MethodResponsesValueT>(value)); return *this;
184 }
186
188
193 inline const Integration& GetMethodIntegration() const { return m_methodIntegration; }
194 inline bool MethodIntegrationHasBeenSet() const { return m_methodIntegrationHasBeenSet; }
195 template<typename MethodIntegrationT = Integration>
196 void SetMethodIntegration(MethodIntegrationT&& value) { m_methodIntegrationHasBeenSet = true; m_methodIntegration = std::forward<MethodIntegrationT>(value); }
197 template<typename MethodIntegrationT = Integration>
198 Method& WithMethodIntegration(MethodIntegrationT&& value) { SetMethodIntegration(std::forward<MethodIntegrationT>(value)); return *this;}
200
202
212 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const { return m_authorizationScopes; }
213 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
214 template<typename AuthorizationScopesT = Aws::Vector<Aws::String>>
215 void SetAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::forward<AuthorizationScopesT>(value); }
216 template<typename AuthorizationScopesT = Aws::Vector<Aws::String>>
217 Method& WithAuthorizationScopes(AuthorizationScopesT&& value) { SetAuthorizationScopes(std::forward<AuthorizationScopesT>(value)); return *this;}
218 template<typename AuthorizationScopesT = Aws::String>
219 Method& AddAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value)); return *this; }
221
223
224 inline const Aws::String& GetRequestId() const { return m_requestId; }
225 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
226 template<typename RequestIdT = Aws::String>
227 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
228 template<typename RequestIdT = Aws::String>
229 Method& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
231 private:
232
233 Aws::String m_httpMethod;
234 bool m_httpMethodHasBeenSet = false;
235
236 Aws::String m_authorizationType;
237 bool m_authorizationTypeHasBeenSet = false;
238
239 Aws::String m_authorizerId;
240 bool m_authorizerIdHasBeenSet = false;
241
242 bool m_apiKeyRequired{false};
243 bool m_apiKeyRequiredHasBeenSet = false;
244
245 Aws::String m_requestValidatorId;
246 bool m_requestValidatorIdHasBeenSet = false;
247
248 Aws::String m_operationName;
249 bool m_operationNameHasBeenSet = false;
250
251 Aws::Map<Aws::String, bool> m_requestParameters;
252 bool m_requestParametersHasBeenSet = false;
253
255 bool m_requestModelsHasBeenSet = false;
256
258 bool m_methodResponsesHasBeenSet = false;
259
260 Integration m_methodIntegration;
261 bool m_methodIntegrationHasBeenSet = false;
262
263 Aws::Vector<Aws::String> m_authorizationScopes;
264 bool m_authorizationScopesHasBeenSet = false;
265
266 Aws::String m_requestId;
267 bool m_requestIdHasBeenSet = false;
268 };
269
270} // namespace Model
271} // namespace APIGateway
272} // namespace Aws
const Aws::String & GetRequestId() const
Definition Method.h:224
const Aws::String & GetHttpMethod() const
Definition Method.h:57
Method & WithRequestParameters(RequestParametersT &&value)
Definition Method.h:147
const Aws::String & GetRequestValidatorId() const
Definition Method.h:108
const Aws::String & GetAuthorizerId() const
Definition Method.h:85
Method & WithAuthorizationType(AuthorizationTypeT &&value)
Definition Method.h:77
Method & AddRequestParameters(Aws::String key, bool value)
Definition Method.h:148
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetOperationName() const
Definition Method.h:122
bool RequestModelsHasBeenSet() const
Definition Method.h:160
Method & WithMethodResponses(MethodResponsesT &&value)
Definition Method.h:180
void SetMethodIntegration(MethodIntegrationT &&value)
Definition Method.h:196
bool RequestIdHasBeenSet() const
Definition Method.h:225
bool HttpMethodHasBeenSet() const
Definition Method.h:58
Method & AddAuthorizationScopes(AuthorizationScopesT &&value)
Definition Method.h:219
void SetRequestParameters(RequestParametersT &&value)
Definition Method.h:145
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
Definition Method.h:212
void SetAuthorizerId(AuthorizerIdT &&value)
Definition Method.h:88
Method & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
Definition Method.h:166
bool RequestValidatorIdHasBeenSet() const
Definition Method.h:109
void SetRequestId(RequestIdT &&value)
Definition Method.h:227
Method & WithRequestValidatorId(RequestValidatorIdT &&value)
Definition Method.h:113
AWS_APIGATEWAY_API Method()=default
void SetHttpMethod(HttpMethodT &&value)
Definition Method.h:60
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
Definition Method.h:175
AWS_APIGATEWAY_API Method(Aws::Utils::Json::JsonView jsonValue)
void SetApiKeyRequired(bool value)
Definition Method.h:100
bool MethodIntegrationHasBeenSet() const
Definition Method.h:194
bool AuthorizerIdHasBeenSet() const
Definition Method.h:86
void SetAuthorizationScopes(AuthorizationScopesT &&value)
Definition Method.h:215
Method & WithHttpMethod(HttpMethodT &&value)
Definition Method.h:62
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
Definition Method.h:159
bool AuthorizationScopesHasBeenSet() const
Definition Method.h:213
Method & WithAuthorizerId(AuthorizerIdT &&value)
Definition Method.h:90
bool AuthorizationTypeHasBeenSet() const
Definition Method.h:73
void SetRequestValidatorId(RequestValidatorIdT &&value)
Definition Method.h:111
Method & WithApiKeyRequired(bool value)
Definition Method.h:101
Method & WithAuthorizationScopes(AuthorizationScopesT &&value)
Definition Method.h:217
const Aws::String & GetAuthorizationType() const
Definition Method.h:72
Method & WithRequestId(RequestIdT &&value)
Definition Method.h:229
Method & AddMethodResponses(MethodResponsesKeyT &&key, MethodResponsesValueT &&value)
Definition Method.h:182
const Integration & GetMethodIntegration() const
Definition Method.h:193
void SetMethodResponses(MethodResponsesT &&value)
Definition Method.h:178
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
Definition Method.h:142
Method & WithRequestModels(RequestModelsT &&value)
Definition Method.h:164
bool ApiKeyRequiredHasBeenSet() const
Definition Method.h:99
bool GetApiKeyRequired() const
Definition Method.h:98
void SetRequestModels(RequestModelsT &&value)
Definition Method.h:162
void SetOperationName(OperationNameT &&value)
Definition Method.h:125
bool RequestParametersHasBeenSet() const
Definition Method.h:143
AWS_APIGATEWAY_API Method & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MethodResponsesHasBeenSet() const
Definition Method.h:176
Method & WithOperationName(OperationNameT &&value)
Definition Method.h:127
void SetAuthorizationType(AuthorizationTypeT &&value)
Definition Method.h:75
bool OperationNameHasBeenSet() const
Definition Method.h:123
Method & WithMethodIntegration(MethodIntegrationT &&value)
Definition Method.h:198
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