7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
47 template<
typename RestApiIdT = Aws::String>
48 void SetRestApiId(RestApiIdT&& value) { m_restApiIdHasBeenSet =
true; m_restApiId = std::forward<RestApiIdT>(value); }
49 template<
typename RestApiIdT = Aws::String>
59 template<
typename ResourceIdT = Aws::String>
60 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet =
true; m_resourceId = std::forward<ResourceIdT>(value); }
61 template<
typename ResourceIdT = Aws::String>
71 template<
typename HttpMethodT = Aws::String>
72 void SetHttpMethod(HttpMethodT&& value) { m_httpMethodHasBeenSet =
true; m_httpMethod = std::forward<HttpMethodT>(value); }
73 template<
typename HttpMethodT = Aws::String>
86 template<
typename AuthorizationTypeT = Aws::String>
87 void SetAuthorizationType(AuthorizationTypeT&& value) { m_authorizationTypeHasBeenSet =
true; m_authorizationType = std::forward<AuthorizationTypeT>(value); }
88 template<
typename AuthorizationTypeT = Aws::String>
100 template<
typename AuthorizerIdT = Aws::String>
101 void SetAuthorizerId(AuthorizerIdT&& value) { m_authorizerIdHasBeenSet =
true; m_authorizerId = std::forward<AuthorizerIdT>(value); }
102 template<
typename AuthorizerIdT = Aws::String>
112 inline void SetApiKeyRequired(
bool value) { m_apiKeyRequiredHasBeenSet =
true; m_apiKeyRequired = value; }
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 RequestVal
idatorIdT = Aws::String>
178 void SetRequestValidatorId(RequestValidatorIdT&& value) { m_requestValidatorIdHasBeenSet =
true; m_requestValidatorId = std::forward<RequestValidatorIdT>(value); }
179 template<
typename RequestVal
idatorIdT = Aws::String>
196 template<
typename AuthorizationScopesT = Aws::Vector<Aws::String>>
197 void SetAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet =
true; m_authorizationScopes = std::forward<AuthorizationScopesT>(value); }
198 template<
typename AuthorizationScopesT = Aws::Vector<Aws::String>>
200 template<
typename AuthorizationScopesT = Aws::String>
201 PutMethodRequest&
AddAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet =
true; m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value));
return *
this; }
206 bool m_restApiIdHasBeenSet =
false;
209 bool m_resourceIdHasBeenSet =
false;
212 bool m_httpMethodHasBeenSet =
false;
215 bool m_authorizationTypeHasBeenSet =
false;
218 bool m_authorizerIdHasBeenSet =
false;
220 bool m_apiKeyRequired{
false};
221 bool m_apiKeyRequiredHasBeenSet =
false;
224 bool m_operationNameHasBeenSet =
false;
227 bool m_requestParametersHasBeenSet =
false;
230 bool m_requestModelsHasBeenSet =
false;
233 bool m_requestValidatorIdHasBeenSet =
false;
236 bool m_authorizationScopesHasBeenSet =
false;
const Aws::String & GetAuthorizerId() const
void SetRestApiId(RestApiIdT &&value)
bool RequestModelsHasBeenSet() const
PutMethodRequest & WithRequestModels(RequestModelsT &&value)
PutMethodRequest & WithAuthorizationScopes(AuthorizationScopesT &&value)
AWS_APIGATEWAY_API PutMethodRequest()=default
PutMethodRequest & AddAuthorizationScopes(AuthorizationScopesT &&value)
PutMethodRequest & WithRequestValidatorId(RequestValidatorIdT &&value)
const Aws::String & GetRestApiId() const
PutMethodRequest & WithResourceId(ResourceIdT &&value)
void SetRequestModels(RequestModelsT &&value)
virtual const char * GetServiceRequestName() const override
PutMethodRequest & WithRestApiId(RestApiIdT &&value)
const Aws::String & GetRequestValidatorId() const
bool ResourceIdHasBeenSet() const
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
void SetOperationName(OperationNameT &&value)
PutMethodRequest & WithOperationName(OperationNameT &&value)
PutMethodRequest & AddRequestParameters(Aws::String key, bool value)
bool GetApiKeyRequired() const
bool AuthorizerIdHasBeenSet() const
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
void SetRequestValidatorId(RequestValidatorIdT &&value)
bool AuthorizationScopesHasBeenSet() const
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
bool OperationNameHasBeenSet() const
const Aws::String & GetResourceId() const
PutMethodRequest & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
void SetApiKeyRequired(bool value)
void SetRequestParameters(RequestParametersT &&value)
PutMethodRequest & WithApiKeyRequired(bool value)
bool RequestValidatorIdHasBeenSet() const
void SetResourceId(ResourceIdT &&value)
bool AuthorizationTypeHasBeenSet() const
PutMethodRequest & WithAuthorizerId(AuthorizerIdT &&value)
void SetAuthorizationScopes(AuthorizationScopesT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
PutMethodRequest & WithRequestParameters(RequestParametersT &&value)
bool ApiKeyRequiredHasBeenSet() const
PutMethodRequest & WithAuthorizationType(AuthorizationTypeT &&value)
bool RestApiIdHasBeenSet() const
void SetAuthorizationType(AuthorizationTypeT &&value)
const Aws::String & GetHttpMethod() const
void SetAuthorizerId(AuthorizerIdT &&value)
bool HttpMethodHasBeenSet() const
const Aws::String & GetOperationName() const
bool RequestParametersHasBeenSet() const
PutMethodRequest & WithHttpMethod(HttpMethodT &&value)
const Aws::String & GetAuthorizationType() const
void SetHttpMethod(HttpMethodT &&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