7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/model/Integration.h>
9#include <aws/apigateway/model/MethodResponse.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
42 AWS_APIGATEWAY_API
Method() =
default;
53 template <
typename HttpMethodT = Aws::String>
55 m_httpMethodHasBeenSet =
true;
56 m_httpMethod = std::forward<HttpMethodT>(value);
58 template <
typename HttpMethodT = Aws::String>
74 template <
typename AuthorizationTypeT = Aws::String>
76 m_authorizationTypeHasBeenSet =
true;
77 m_authorizationType = std::forward<AuthorizationTypeT>(value);
79 template <
typename AuthorizationTypeT = Aws::String>
93 template <
typename AuthorizerIdT = Aws::String>
95 m_authorizerIdHasBeenSet =
true;
96 m_authorizerId = std::forward<AuthorizerIdT>(value);
98 template <
typename AuthorizerIdT = Aws::String>
113 m_apiKeyRequiredHasBeenSet =
true;
114 m_apiKeyRequired = value;
128 template <
typename RequestVal
idatorIdT = Aws::String>
130 m_requestValidatorIdHasBeenSet =
true;
131 m_requestValidatorId = std::forward<RequestValidatorIdT>(value);
133 template <
typename RequestVal
idatorIdT = Aws::String>
148 template <
typename OperationNameT = Aws::String>
150 m_operationNameHasBeenSet =
true;
151 m_operationName = std::forward<OperationNameT>(value);
153 template <
typename OperationNameT = Aws::String>
174 template <
typename RequestParametersT = Aws::Map<Aws::String,
bool>>
176 m_requestParametersHasBeenSet =
true;
177 m_requestParameters = std::forward<RequestParametersT>(value);
179 template <
typename RequestParametersT = Aws::Map<Aws::String,
bool>>
185 m_requestParametersHasBeenSet =
true;
186 m_requestParameters.emplace(key, value);
199 template <
typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
201 m_requestModelsHasBeenSet =
true;
202 m_requestModels = std::forward<RequestModelsT>(value);
204 template <
typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
209 template <
typename RequestModelsKeyT = Aws::String,
typename RequestModelsValueT = Aws::String>
211 m_requestModelsHasBeenSet =
true;
212 m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value));
223 template <
typename MethodResponsesT = Aws::Map<Aws::String, MethodResponse>>
225 m_methodResponsesHasBeenSet =
true;
226 m_methodResponses = std::forward<MethodResponsesT>(value);
228 template <
typename MethodResponsesT = Aws::Map<Aws::String, MethodResponse>>
233 template <
typename MethodResponsesKeyT = Aws::String,
typename MethodResponsesValueT = MethodResponse>
235 m_methodResponsesHasBeenSet =
true;
236 m_methodResponses.emplace(std::forward<MethodResponsesKeyT>(key), std::forward<MethodResponsesValueT>(value));
249 template <
typename MethodIntegrationT = Integration>
251 m_methodIntegrationHasBeenSet =
true;
252 m_methodIntegration = std::forward<MethodIntegrationT>(value);
254 template <
typename MethodIntegrationT = Integration>
274 template <
typename AuthorizationScopesT = Aws::Vector<Aws::String>>
276 m_authorizationScopesHasBeenSet =
true;
277 m_authorizationScopes = std::forward<AuthorizationScopesT>(value);
279 template <
typename AuthorizationScopesT = Aws::Vector<Aws::String>>
284 template <
typename AuthorizationScopesT = Aws::String>
286 m_authorizationScopesHasBeenSet =
true;
287 m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value));
296 template <
typename RequestIdT = Aws::String>
298 m_requestIdHasBeenSet =
true;
299 m_requestId = std::forward<RequestIdT>(value);
301 template <
typename RequestIdT = Aws::String>
314 bool m_apiKeyRequired{
false};
326 Integration m_methodIntegration;
331 bool m_httpMethodHasBeenSet =
false;
332 bool m_authorizationTypeHasBeenSet =
false;
333 bool m_authorizerIdHasBeenSet =
false;
334 bool m_apiKeyRequiredHasBeenSet =
false;
335 bool m_requestValidatorIdHasBeenSet =
false;
336 bool m_operationNameHasBeenSet =
false;
337 bool m_requestParametersHasBeenSet =
false;
338 bool m_requestModelsHasBeenSet =
false;
339 bool m_methodResponsesHasBeenSet =
false;
340 bool m_methodIntegrationHasBeenSet =
false;
341 bool m_authorizationScopesHasBeenSet =
false;
342 bool m_requestIdHasBeenSet =
false;
const Aws::String & GetRequestId() const
const Aws::String & GetHttpMethod() const
Method & WithRequestParameters(RequestParametersT &&value)
const Aws::String & GetRequestValidatorId() const
const Aws::String & GetAuthorizerId() const
Method & WithAuthorizationType(AuthorizationTypeT &&value)
Method & AddRequestParameters(Aws::String key, bool value)
AWS_APIGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetOperationName() const
bool RequestModelsHasBeenSet() const
Method & WithMethodResponses(MethodResponsesT &&value)
void SetMethodIntegration(MethodIntegrationT &&value)
bool RequestIdHasBeenSet() const
bool HttpMethodHasBeenSet() const
Method & AddAuthorizationScopes(AuthorizationScopesT &&value)
void SetRequestParameters(RequestParametersT &&value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
void SetAuthorizerId(AuthorizerIdT &&value)
Method & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
bool RequestValidatorIdHasBeenSet() const
void SetRequestId(RequestIdT &&value)
Method & WithRequestValidatorId(RequestValidatorIdT &&value)
AWS_APIGATEWAY_API Method()=default
void SetHttpMethod(HttpMethodT &&value)
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
AWS_APIGATEWAY_API Method(Aws::Utils::Json::JsonView jsonValue)
void SetApiKeyRequired(bool value)
bool MethodIntegrationHasBeenSet() const
bool AuthorizerIdHasBeenSet() const
void SetAuthorizationScopes(AuthorizationScopesT &&value)
Method & WithHttpMethod(HttpMethodT &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
bool AuthorizationScopesHasBeenSet() const
Method & WithAuthorizerId(AuthorizerIdT &&value)
bool AuthorizationTypeHasBeenSet() const
void SetRequestValidatorId(RequestValidatorIdT &&value)
Method & WithApiKeyRequired(bool value)
Method & WithAuthorizationScopes(AuthorizationScopesT &&value)
const Aws::String & GetAuthorizationType() const
Method & WithRequestId(RequestIdT &&value)
Method & AddMethodResponses(MethodResponsesKeyT &&key, MethodResponsesValueT &&value)
const Integration & GetMethodIntegration() const
void SetMethodResponses(MethodResponsesT &&value)
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
Method & WithRequestModels(RequestModelsT &&value)
bool ApiKeyRequiredHasBeenSet() const
bool GetApiKeyRequired() const
void SetRequestModels(RequestModelsT &&value)
void SetOperationName(OperationNameT &&value)
bool RequestParametersHasBeenSet() const
AWS_APIGATEWAY_API Method & operator=(Aws::Utils::Json::JsonView jsonValue)
bool MethodResponsesHasBeenSet() const
Method & WithOperationName(OperationNameT &&value)
void SetAuthorizationType(AuthorizationTypeT &&value)
bool OperationNameHasBeenSet() const
Method & WithMethodIntegration(MethodIntegrationT &&value)
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