AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
48 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
49 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
50 inline PutMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
51 inline PutMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
52 inline PutMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
54
56
59 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
60 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
61 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
62 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
63 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
64 inline PutMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
65 inline PutMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
66 inline PutMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
68
70
73 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
74 inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; }
75 inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
76 inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); }
77 inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
78 inline PutMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
79 inline PutMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
80 inline PutMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
82
84
90 inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
91 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
92 inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
93 inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
94 inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
95 inline PutMethodRequest& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
96 inline PutMethodRequest& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
97 inline PutMethodRequest& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
99
101
106 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
107 inline bool AuthorizerIdHasBeenSet() const { return m_authorizerIdHasBeenSet; }
108 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
109 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = std::move(value); }
110 inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
111 inline PutMethodRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
112 inline PutMethodRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
113 inline PutMethodRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
115
117
120 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
121 inline bool ApiKeyRequiredHasBeenSet() const { return m_apiKeyRequiredHasBeenSet; }
122 inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
123 inline PutMethodRequest& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
125
127
132 inline const Aws::String& GetOperationName() const{ return m_operationName; }
133 inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; }
134 inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; }
135 inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); }
136 inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); }
137 inline PutMethodRequest& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
138 inline PutMethodRequest& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
139 inline PutMethodRequest& WithOperationName(const char* value) { SetOperationName(value); return *this;}
141
143
154 inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const{ return m_requestParameters; }
155 inline bool RequestParametersHasBeenSet() const { return m_requestParametersHasBeenSet; }
156 inline void SetRequestParameters(const Aws::Map<Aws::String, bool>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
157 inline void SetRequestParameters(Aws::Map<Aws::String, bool>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = std::move(value); }
160 inline PutMethodRequest& AddRequestParameters(const Aws::String& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
161 inline PutMethodRequest& AddRequestParameters(Aws::String&& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(std::move(key), value); return *this; }
162 inline PutMethodRequest& AddRequestParameters(const char* key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters.emplace(key, value); return *this; }
164
166
171 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
172 inline bool RequestModelsHasBeenSet() const { return m_requestModelsHasBeenSet; }
173 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
174 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = std::move(value); }
177 inline PutMethodRequest& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
178 inline PutMethodRequest& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
179 inline PutMethodRequest& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
180 inline PutMethodRequest& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
181 inline PutMethodRequest& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, std::move(value)); return *this; }
182 inline PutMethodRequest& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(std::move(key), value); return *this; }
183 inline PutMethodRequest& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels.emplace(key, value); return *this; }
185
187
190 inline const Aws::String& GetRequestValidatorId() const{ return m_requestValidatorId; }
191 inline bool RequestValidatorIdHasBeenSet() const { return m_requestValidatorIdHasBeenSet; }
192 inline void SetRequestValidatorId(const Aws::String& value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId = value; }
193 inline void SetRequestValidatorId(Aws::String&& value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId = std::move(value); }
194 inline void SetRequestValidatorId(const char* value) { m_requestValidatorIdHasBeenSet = true; m_requestValidatorId.assign(value); }
195 inline PutMethodRequest& WithRequestValidatorId(const Aws::String& value) { SetRequestValidatorId(value); return *this;}
196 inline PutMethodRequest& WithRequestValidatorId(Aws::String&& value) { SetRequestValidatorId(std::move(value)); return *this;}
197 inline PutMethodRequest& WithRequestValidatorId(const char* value) { SetRequestValidatorId(value); return *this;}
199
201
211 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
212 inline bool AuthorizationScopesHasBeenSet() const { return m_authorizationScopesHasBeenSet; }
213 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = value; }
214 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes = std::move(value); }
217 inline PutMethodRequest& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
218 inline PutMethodRequest& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(std::move(value)); return *this; }
219 inline PutMethodRequest& AddAuthorizationScopes(const char* value) { m_authorizationScopesHasBeenSet = true; m_authorizationScopes.push_back(value); return *this; }
221 private:
222
223 Aws::String m_restApiId;
224 bool m_restApiIdHasBeenSet = false;
225
226 Aws::String m_resourceId;
227 bool m_resourceIdHasBeenSet = false;
228
229 Aws::String m_httpMethod;
230 bool m_httpMethodHasBeenSet = false;
231
232 Aws::String m_authorizationType;
233 bool m_authorizationTypeHasBeenSet = false;
234
235 Aws::String m_authorizerId;
236 bool m_authorizerIdHasBeenSet = false;
237
238 bool m_apiKeyRequired;
239 bool m_apiKeyRequiredHasBeenSet = false;
240
241 Aws::String m_operationName;
242 bool m_operationNameHasBeenSet = false;
243
244 Aws::Map<Aws::String, bool> m_requestParameters;
245 bool m_requestParametersHasBeenSet = false;
246
248 bool m_requestModelsHasBeenSet = false;
249
250 Aws::String m_requestValidatorId;
251 bool m_requestValidatorIdHasBeenSet = false;
252
253 Aws::Vector<Aws::String> m_authorizationScopes;
254 bool m_authorizationScopesHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace APIGateway
259} // namespace Aws
const Aws::String & GetAuthorizerId() const
PutMethodRequest & WithOperationName(const Aws::String &value)
PutMethodRequest & AddRequestParameters(const Aws::String &key, bool value)
PutMethodRequest & AddRequestModels(Aws::String &&key, Aws::String &&value)
void SetResourceId(const Aws::String &value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodRequest & AddRequestModels(const Aws::String &key, const Aws::String &value)
const Aws::String & GetRestApiId() const
PutMethodRequest & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodRequest & WithAuthorizationType(const char *value)
PutMethodRequest & WithRequestValidatorId(const char *value)
void SetAuthorizationType(const Aws::String &value)
PutMethodRequest & WithResourceId(const char *value)
PutMethodRequest & AddRequestModels(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
PutMethodRequest & WithHttpMethod(Aws::String &&value)
void SetRestApiId(const Aws::String &value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
const Aws::String & GetRequestValidatorId() const
PutMethodRequest & AddRequestModels(const char *key, const char *value)
void SetOperationName(const Aws::String &value)
PutMethodRequest & WithAuthorizerId(const Aws::String &value)
PutMethodRequest & WithAuthorizationType(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
PutMethodRequest & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodRequest & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodRequest & WithOperationName(const char *value)
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
PutMethodRequest & WithRestApiId(Aws::String &&value)
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
const Aws::String & GetResourceId() const
PutMethodRequest & AddRequestModels(Aws::String &&key, const char *value)
void SetRequestValidatorId(Aws::String &&value)
PutMethodRequest & AddRequestParameters(const char *key, bool value)
PutMethodRequest & WithRequestValidatorId(const Aws::String &value)
PutMethodRequest & WithAuthorizerId(const char *value)
PutMethodRequest & WithApiKeyRequired(bool value)
PutMethodRequest & WithAuthorizationType(Aws::String &&value)
void SetRequestValidatorId(const Aws::String &value)
PutMethodRequest & WithHttpMethod(const char *value)
PutMethodRequest & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
void SetAuthorizationType(Aws::String &&value)
PutMethodRequest & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodRequest & WithRestApiId(const char *value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
PutMethodRequest & AddAuthorizationScopes(const char *value)
void SetAuthorizerId(const Aws::String &value)
PutMethodRequest & AddAuthorizationScopes(Aws::String &&value)
PutMethodRequest & WithHttpMethod(const Aws::String &value)
PutMethodRequest & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
PutMethodRequest & WithOperationName(Aws::String &&value)
PutMethodRequest & WithAuthorizerId(Aws::String &&value)
PutMethodRequest & AddRequestParameters(Aws::String &&key, bool value)
const Aws::String & GetHttpMethod() const
void SetHttpMethod(const Aws::String &value)
PutMethodRequest & AddRequestModels(Aws::String &&key, const Aws::String &value)
const Aws::String & GetOperationName() const
PutMethodRequest & WithRequestValidatorId(Aws::String &&value)
PutMethodRequest & WithRestApiId(const Aws::String &value)
PutMethodRequest & WithResourceId(const Aws::String &value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
PutMethodRequest & AddRequestModels(const Aws::String &key, Aws::String &&value)
PutMethodRequest & AddAuthorizationScopes(const Aws::String &value)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
PutMethodRequest & WithResourceId(Aws::String &&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