AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
PutMethodRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace APIGateway {
17namespace Model {
18
26 public:
27 AWS_APIGATEWAY_API PutMethodRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "PutMethod"; }
34
35 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
42 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
43 template <typename RestApiIdT = Aws::String>
44 void SetRestApiId(RestApiIdT&& value) {
45 m_restApiIdHasBeenSet = true;
46 m_restApiId = std::forward<RestApiIdT>(value);
47 }
48 template <typename RestApiIdT = Aws::String>
49 PutMethodRequest& WithRestApiId(RestApiIdT&& value) {
50 SetRestApiId(std::forward<RestApiIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetResourceId() const { return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 template <typename ResourceIdT = Aws::String>
62 void SetResourceId(ResourceIdT&& value) {
63 m_resourceIdHasBeenSet = true;
64 m_resourceId = std::forward<ResourceIdT>(value);
65 }
66 template <typename ResourceIdT = Aws::String>
67 PutMethodRequest& WithResourceId(ResourceIdT&& value) {
68 SetResourceId(std::forward<ResourceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
78 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
79 template <typename HttpMethodT = Aws::String>
80 void SetHttpMethod(HttpMethodT&& value) {
81 m_httpMethodHasBeenSet = true;
82 m_httpMethod = std::forward<HttpMethodT>(value);
83 }
84 template <typename HttpMethodT = Aws::String>
85 PutMethodRequest& WithHttpMethod(HttpMethodT&& value) {
86 SetHttpMethod(std::forward<HttpMethodT>(value));
87 return *this;
88 }
90
92
98 inline const Aws::String& GetAuthorizationType() const { return m_authorizationType; }
99 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
100 template <typename AuthorizationTypeT = Aws::String>
101 void SetAuthorizationType(AuthorizationTypeT&& value) {
102 m_authorizationTypeHasBeenSet = true;
103 m_authorizationType = std::forward<AuthorizationTypeT>(value);
104 }
105 template <typename AuthorizationTypeT = Aws::String>
106 PutMethodRequest& WithAuthorizationType(AuthorizationTypeT&& value) {
107 SetAuthorizationType(std::forward<AuthorizationTypeT>(value));
108 return *this;
109 }
111
113
118 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
119 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
120 template <typename AuthorizerIdT = Aws::String>
121 void SetAuthorizerId(AuthorizerIdT&& value) {
122 m_authorizerIdHasBeenSet = true;
123 m_authorizerId = std::forward<AuthorizerIdT>(value);
124 }
125 template <typename AuthorizerIdT = Aws::String>
126 PutMethodRequest& WithAuthorizerId(AuthorizerIdT&& value) {
127 SetAuthorizerId(std::forward<AuthorizerIdT>(value));
128 return *this;
129 }
131
133
136 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
137 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
138 inline void SetApiKeyRequired(bool value) {
139 m_apiKeyRequiredHasBeenSet = true;
140 m_apiKeyRequired = value;
141 }
143 SetApiKeyRequired(value);
144 return *this;
145 }
147
149
154 inline const Aws::String& GetOperationName() const { return m_operationName; }
155 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
156 template <typename OperationNameT = Aws::String>
157 void SetOperationName(OperationNameT&& value) {
158 m_operationNameHasBeenSet = true;
159 m_operationName = std::forward<OperationNameT>(value);
160 }
161 template <typename OperationNameT = Aws::String>
162 PutMethodRequest& WithOperationName(OperationNameT&& value) {
163 SetOperationName(std::forward<OperationNameT>(value));
164 return *this;
165 }
167
169
180 inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const { return m_requestParameters; }
181 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
182 template <typename RequestParametersT = Aws::Map<Aws::String, bool>>
183 void SetRequestParameters(RequestParametersT&& value) {
184 m_requestParametersHasBeenSet = true;
185 m_requestParameters = std::forward<RequestParametersT>(value);
186 }
187 template <typename RequestParametersT = Aws::Map<Aws::String, bool>>
188 PutMethodRequest& WithRequestParameters(RequestParametersT&& value) {
189 SetRequestParameters(std::forward<RequestParametersT>(value));
190 return *this;
191 }
193 m_requestParametersHasBeenSet = true;
194 m_requestParameters.emplace(key, value);
195 return *this;
196 }
198
200
205 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const { return m_requestModels; }
206 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
207 template <typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
208 void SetRequestModels(RequestModelsT&& value) {
209 m_requestModelsHasBeenSet = true;
210 m_requestModels = std::forward<RequestModelsT>(value);
211 }
212 template <typename RequestModelsT = Aws::Map<Aws::String, Aws::String>>
213 PutMethodRequest& WithRequestModels(RequestModelsT&& value) {
214 SetRequestModels(std::forward<RequestModelsT>(value));
215 return *this;
216 }
217 template <typename RequestModelsKeyT = Aws::String, typename RequestModelsValueT = Aws::String>
218 PutMethodRequest& AddRequestModels(RequestModelsKeyT&& key, RequestModelsValueT&& value) {
219 m_requestModelsHasBeenSet = true;
220 m_requestModels.emplace(std::forward<RequestModelsKeyT>(key), std::forward<RequestModelsValueT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetRequestValidatorId() const { return m_requestValidatorId; }
230 inline bool RequestValidatorIdHasBeenSet() const { return m_requestValidatorIdHasBeenSet; }
231 template <typename RequestValidatorIdT = Aws::String>
232 void SetRequestValidatorId(RequestValidatorIdT&& value) {
233 m_requestValidatorIdHasBeenSet = true;
234 m_requestValidatorId = std::forward<RequestValidatorIdT>(value);
235 }
236 template <typename RequestValidatorIdT = Aws::String>
237 PutMethodRequest& WithRequestValidatorId(RequestValidatorIdT&& value) {
238 SetRequestValidatorId(std::forward<RequestValidatorIdT>(value));
239 return *this;
240 }
242
244
254 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const { return m_authorizationScopes; }
255 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
256 template <typename AuthorizationScopesT = Aws::Vector<Aws::String>>
257 void SetAuthorizationScopes(AuthorizationScopesT&& value) {
258 m_authorizationScopesHasBeenSet = true;
259 m_authorizationScopes = std::forward<AuthorizationScopesT>(value);
260 }
261 template <typename AuthorizationScopesT = Aws::Vector<Aws::String>>
262 PutMethodRequest& WithAuthorizationScopes(AuthorizationScopesT&& value) {
263 SetAuthorizationScopes(std::forward<AuthorizationScopesT>(value));
264 return *this;
265 }
266 template <typename AuthorizationScopesT = Aws::String>
267 PutMethodRequest& AddAuthorizationScopes(AuthorizationScopesT&& value) {
268 m_authorizationScopesHasBeenSet = true;
269 m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value));
270 return *this;
271 }
273 private:
274 Aws::String m_restApiId;
275
276 Aws::String m_resourceId;
277
278 Aws::String m_httpMethod;
279
280 Aws::String m_authorizationType;
281
282 Aws::String m_authorizerId;
283
284 bool m_apiKeyRequired{false};
285
286 Aws::String m_operationName;
287
288 Aws::Map<Aws::String, bool> m_requestParameters;
289
291
292 Aws::String m_requestValidatorId;
293
294 Aws::Vector<Aws::String> m_authorizationScopes;
295 bool m_restApiIdHasBeenSet = false;
296 bool m_resourceIdHasBeenSet = false;
297 bool m_httpMethodHasBeenSet = false;
298 bool m_authorizationTypeHasBeenSet = false;
299 bool m_authorizerIdHasBeenSet = false;
300 bool m_apiKeyRequiredHasBeenSet = false;
301 bool m_operationNameHasBeenSet = false;
302 bool m_requestParametersHasBeenSet = false;
303 bool m_requestModelsHasBeenSet = false;
304 bool m_requestValidatorIdHasBeenSet = false;
305 bool m_authorizationScopesHasBeenSet = false;
306};
307
308} // namespace Model
309} // namespace APIGateway
310} // namespace Aws
const Aws::String & GetAuthorizerId() 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
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
void SetOperationName(OperationNameT &&value)
PutMethodRequest & WithOperationName(OperationNameT &&value)
PutMethodRequest & AddRequestParameters(Aws::String key, bool value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
void SetRequestValidatorId(RequestValidatorIdT &&value)
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
const Aws::String & GetResourceId() const
PutMethodRequest & AddRequestModels(RequestModelsKeyT &&key, RequestModelsValueT &&value)
void SetRequestParameters(RequestParametersT &&value)
PutMethodRequest & WithApiKeyRequired(bool value)
PutMethodRequest & WithAuthorizerId(AuthorizerIdT &&value)
void SetAuthorizationScopes(AuthorizationScopesT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
PutMethodRequest & WithRequestParameters(RequestParametersT &&value)
PutMethodRequest & WithAuthorizationType(AuthorizationTypeT &&value)
void SetAuthorizationType(AuthorizationTypeT &&value)
const Aws::String & GetHttpMethod() const
void SetAuthorizerId(AuthorizerIdT &&value)
const Aws::String & GetOperationName() const
PutMethodRequest & WithHttpMethod(HttpMethodT &&value)
const Aws::String & GetAuthorizationType() const
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