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>
47 AWS_APIGATEWAY_API
Method() =
default;
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>
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>
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>
100 inline void SetApiKeyRequired(
bool value) { m_apiKeyRequiredHasBeenSet =
true; m_apiKeyRequired = value; }
110 template<
typename RequestVal
idatorIdT = Aws::String>
111 void SetRequestValidatorId(RequestValidatorIdT&& value) { m_requestValidatorIdHasBeenSet =
true; m_requestValidatorId = std::forward<RequestValidatorIdT>(value); }
112 template<
typename RequestVal
idatorIdT = Aws::String>
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>
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>>
149 m_requestParametersHasBeenSet =
true; m_requestParameters.emplace(key, value);
return *
this;
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>>
165 template<
typename RequestModelsKeyT = Aws::String,
typename RequestModelsValueT = Aws::String>
167 m_requestModelsHasBeenSet =
true; m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value));
return *
this;
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>>
181 template<
typename MethodResponsesKeyT = Aws::String,
typename MethodResponsesValueT = MethodResponse>
183 m_methodResponsesHasBeenSet =
true; m_methodResponses.emplace(std::forward<MethodResponsesKeyT>(key), std::forward<MethodResponsesValueT>(value));
return *
this;
195 template<
typename MethodIntegrationT = Integration>
196 void SetMethodIntegration(MethodIntegrationT&& value) { m_methodIntegrationHasBeenSet =
true; m_methodIntegration = std::forward<MethodIntegrationT>(value); }
197 template<
typename MethodIntegrationT = Integration>
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>>
218 template<
typename AuthorizationScopesT = Aws::String>
219 Method&
AddAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet =
true; m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value));
return *
this; }
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>
234 bool m_httpMethodHasBeenSet =
false;
237 bool m_authorizationTypeHasBeenSet =
false;
240 bool m_authorizerIdHasBeenSet =
false;
242 bool m_apiKeyRequired{
false};
243 bool m_apiKeyRequiredHasBeenSet =
false;
246 bool m_requestValidatorIdHasBeenSet =
false;
249 bool m_operationNameHasBeenSet =
false;
252 bool m_requestParametersHasBeenSet =
false;
255 bool m_requestModelsHasBeenSet =
false;
258 bool m_methodResponsesHasBeenSet =
false;
260 Integration m_methodIntegration;
261 bool m_methodIntegrationHasBeenSet =
false;
264 bool m_authorizationScopesHasBeenSet =
false;
267 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