AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PutMethodRequest.h
1
6#pragma once
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>
12#include <utility>
13
14namespace Aws
15{
16namespace APIGateway
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_APIGATEWAY_API PutMethodRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "PutMethod"; }
37
38 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
46 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
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>
50 PutMethodRequest& WithRestApiId(RestApiIdT&& value) { SetRestApiId(std::forward<RestApiIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetResourceId() const { return m_resourceId; }
58 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
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>
62 PutMethodRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetHttpMethod() const { return m_httpMethod; }
70 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
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>
74 PutMethodRequest& WithHttpMethod(HttpMethodT&& value) { SetHttpMethod(std::forward<HttpMethodT>(value)); return *this;}
76
78
84 inline const Aws::String& GetAuthorizationType() const { return m_authorizationType; }
85 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
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>
89 PutMethodRequest& WithAuthorizationType(AuthorizationTypeT&& value) { SetAuthorizationType(std::forward<AuthorizationTypeT>(value)); return *this;}
91
93
98 inline const Aws::String& GetAuthorizerId() const { return m_authorizerId; }
99 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
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>
103 PutMethodRequest& WithAuthorizerId(AuthorizerIdT&& value) { SetAuthorizerId(std::forward<AuthorizerIdT>(value)); return *this;}
105
107
110 inline bool GetApiKeyRequired() const { return m_apiKeyRequired; }
111 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
112 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
113 inline PutMethodRequest& WithApiKeyRequired(bool value) { SetApiKeyRequired(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 PutMethodRequest& 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 PutMethodRequest& WithRequestParameters(RequestParametersT&& value) { SetRequestParameters(std::forward<RequestParametersT>(value)); return *this;}
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 PutMethodRequest& WithRequestModels(RequestModelsT&& value) { SetRequestModels(std::forward<RequestModelsT>(value)); return *this;}
165 template<typename RequestModelsKeyT = Aws::String, typename RequestModelsValueT = Aws::String>
166 PutMethodRequest& 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::String& GetRequestValidatorId() const { return m_requestValidatorId; }
176 inline bool RequestValidatorIdHasBeenSet() const { return m_requestValidatorIdHasBeenSet; }
177 template<typename RequestValidatorIdT = Aws::String>
178 void SetRequestValidatorId(RequestValidatorIdT&& value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId = std::forward<RequestValidatorIdT>(value); }
179 template<typename RequestValidatorIdT = Aws::String>
180 PutMethodRequest& WithRequestValidatorId(RequestValidatorIdT&& value) { SetRequestValidatorId(std::forward<RequestValidatorIdT>(value)); return *this;}
182
184
194 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const { return m_authorizationScopes; }
195 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
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>>
199 PutMethodRequest& WithAuthorizationScopes(AuthorizationScopesT&& value) { SetAuthorizationScopes(std::forward<AuthorizationScopesT>(value)); return *this;}
200 template<typename AuthorizationScopesT = Aws::String>
201 PutMethodRequest& AddAuthorizationScopes(AuthorizationScopesT&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.emplace_back(std::forward<AuthorizationScopesT>(value)); return *this; }
203 private:
204
205 Aws::String m_restApiId;
206 bool m_restApiIdHasBeenSet = false;
207
208 Aws::String m_resourceId;
209 bool m_resourceIdHasBeenSet = false;
210
211 Aws::String m_httpMethod;
212 bool m_httpMethodHasBeenSet = false;
213
214 Aws::String m_authorizationType;
215 bool m_authorizationTypeHasBeenSet = false;
216
217 Aws::String m_authorizerId;
218 bool m_authorizerIdHasBeenSet = false;
219
220 bool m_apiKeyRequired{false};
221 bool m_apiKeyRequiredHasBeenSet = false;
222
223 Aws::String m_operationName;
224 bool m_operationNameHasBeenSet = false;
225
226 Aws::Map<Aws::String, bool> m_requestParameters;
227 bool m_requestParametersHasBeenSet = false;
228
230 bool m_requestModelsHasBeenSet = false;
231
232 Aws::String m_requestValidatorId;
233 bool m_requestValidatorIdHasBeenSet = false;
234
235 Aws::Vector<Aws::String> m_authorizationScopes;
236 bool m_authorizationScopesHasBeenSet = false;
237 };
238
239} // namespace Model
240} // namespace APIGateway
241} // 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