AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateMethodResult.h
1
6#pragma once
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>
13#include <utility>
14
15namespace Aws
16{
17template<typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace APIGateway
28{
29namespace Model
30{
46 {
47 public:
48 AWS_APIGATEWAY_API UpdateMethodResult();
51
52
54
57 inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
58 inline void SetHttpMethod(const Aws::String& value) { m_httpMethod = value; }
59 inline void SetHttpMethod(Aws::String&& value) { m_httpMethod = std::move(value); }
60 inline void SetHttpMethod(const char* value) { m_httpMethod.assign(value); }
61 inline UpdateMethodResult& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
62 inline UpdateMethodResult& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
63 inline UpdateMethodResult& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
65
67
73 inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
74 inline void SetAuthorizationType(const Aws::String& value) { m_authorizationType = value; }
75 inline void SetAuthorizationType(Aws::String&& value) { m_authorizationType = std::move(value); }
76 inline void SetAuthorizationType(const char* value) { m_authorizationType.assign(value); }
77 inline UpdateMethodResult& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
78 inline UpdateMethodResult& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
79 inline UpdateMethodResult& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
81
83
87 inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
88 inline void SetAuthorizerId(const Aws::String& value) { m_authorizerId = value; }
89 inline void SetAuthorizerId(Aws::String&& value) { m_authorizerId = std::move(value); }
90 inline void SetAuthorizerId(const char* value) { m_authorizerId.assign(value); }
91 inline UpdateMethodResult& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
92 inline UpdateMethodResult& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
93 inline UpdateMethodResult& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
95
97
101 inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
102 inline void SetApiKeyRequired(bool value) { m_apiKeyRequired = value; }
103 inline UpdateMethodResult& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
105
107
110 inline const Aws::String& GetRequestValidatorId() const{ return m_requestValidatorId; }
111 inline void SetRequestValidatorId(const Aws::String& value) { m_requestValidatorId = value; }
112 inline void SetRequestValidatorId(Aws::String&& value) { m_requestValidatorId = std::move(value); }
113 inline void SetRequestValidatorId(const char* value) { m_requestValidatorId.assign(value); }
114 inline UpdateMethodResult& WithRequestValidatorId(const Aws::String& value) { SetRequestValidatorId(value); return *this;}
115 inline UpdateMethodResult& WithRequestValidatorId(Aws::String&& value) { SetRequestValidatorId(std::move(value)); return *this;}
116 inline UpdateMethodResult& WithRequestValidatorId(const char* value) { SetRequestValidatorId(value); return *this;}
118
120
125 inline const Aws::String& GetOperationName() const{ return m_operationName; }
126 inline void SetOperationName(const Aws::String& value) { m_operationName = value; }
127 inline void SetOperationName(Aws::String&& value) { m_operationName = std::move(value); }
128 inline void SetOperationName(const char* value) { m_operationName.assign(value); }
129 inline UpdateMethodResult& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
130 inline UpdateMethodResult& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
131 inline UpdateMethodResult& WithOperationName(const char* value) { SetOperationName(value); return *this;}
133
135
146 inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const{ return m_requestParameters; }
147 inline void SetRequestParameters(const Aws::Map<Aws::String, bool>& value) { m_requestParameters = value; }
148 inline void SetRequestParameters(Aws::Map<Aws::String, bool>&& value) { m_requestParameters = std::move(value); }
151 inline UpdateMethodResult& AddRequestParameters(const Aws::String& key, bool value) { m_requestParameters.emplace(key, value); return *this; }
152 inline UpdateMethodResult& AddRequestParameters(Aws::String&& key, bool value) { m_requestParameters.emplace(std::move(key), value); return *this; }
153 inline UpdateMethodResult& AddRequestParameters(const char* key, bool value) { m_requestParameters.emplace(key, value); return *this; }
155
157
162 inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
163 inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModels = value; }
164 inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModels = std::move(value); }
167 inline UpdateMethodResult& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModels.emplace(key, value); return *this; }
168 inline UpdateMethodResult& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModels.emplace(std::move(key), value); return *this; }
169 inline UpdateMethodResult& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
170 inline UpdateMethodResult& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
171 inline UpdateMethodResult& AddRequestModels(const char* key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
172 inline UpdateMethodResult& AddRequestModels(Aws::String&& key, const char* value) { m_requestModels.emplace(std::move(key), value); return *this; }
173 inline UpdateMethodResult& AddRequestModels(const char* key, const char* value) { m_requestModels.emplace(key, value); return *this; }
175
177
180 inline const Aws::Map<Aws::String, MethodResponse>& GetMethodResponses() const{ return m_methodResponses; }
181 inline void SetMethodResponses(const Aws::Map<Aws::String, MethodResponse>& value) { m_methodResponses = value; }
182 inline void SetMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { m_methodResponses = std::move(value); }
185 inline UpdateMethodResult& AddMethodResponses(const Aws::String& key, const MethodResponse& value) { m_methodResponses.emplace(key, value); return *this; }
186 inline UpdateMethodResult& AddMethodResponses(Aws::String&& key, const MethodResponse& value) { m_methodResponses.emplace(std::move(key), value); return *this; }
187 inline UpdateMethodResult& AddMethodResponses(const Aws::String& key, MethodResponse&& value) { m_methodResponses.emplace(key, std::move(value)); return *this; }
188 inline UpdateMethodResult& AddMethodResponses(Aws::String&& key, MethodResponse&& value) { m_methodResponses.emplace(std::move(key), std::move(value)); return *this; }
189 inline UpdateMethodResult& AddMethodResponses(const char* key, MethodResponse&& value) { m_methodResponses.emplace(key, std::move(value)); return *this; }
190 inline UpdateMethodResult& AddMethodResponses(const char* key, const MethodResponse& value) { m_methodResponses.emplace(key, value); return *this; }
192
194
199 inline const Integration& GetMethodIntegration() const{ return m_methodIntegration; }
200 inline void SetMethodIntegration(const Integration& value) { m_methodIntegration = value; }
201 inline void SetMethodIntegration(Integration&& value) { m_methodIntegration = std::move(value); }
202 inline UpdateMethodResult& WithMethodIntegration(const Integration& value) { SetMethodIntegration(value); return *this;}
203 inline UpdateMethodResult& WithMethodIntegration(Integration&& value) { SetMethodIntegration(std::move(value)); return *this;}
205
207
217 inline const Aws::Vector<Aws::String>& GetAuthorizationScopes() const{ return m_authorizationScopes; }
218 inline void SetAuthorizationScopes(const Aws::Vector<Aws::String>& value) { m_authorizationScopes = value; }
219 inline void SetAuthorizationScopes(Aws::Vector<Aws::String>&& value) { m_authorizationScopes = std::move(value); }
222 inline UpdateMethodResult& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopes.push_back(value); return *this; }
223 inline UpdateMethodResult& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopes.push_back(std::move(value)); return *this; }
224 inline UpdateMethodResult& AddAuthorizationScopes(const char* value) { m_authorizationScopes.push_back(value); return *this; }
226
228
229 inline const Aws::String& GetRequestId() const{ return m_requestId; }
230 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
231 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
232 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
233 inline UpdateMethodResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
234 inline UpdateMethodResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
235 inline UpdateMethodResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
237 private:
238
239 Aws::String m_httpMethod;
240
241 Aws::String m_authorizationType;
242
243 Aws::String m_authorizerId;
244
245 bool m_apiKeyRequired;
246
247 Aws::String m_requestValidatorId;
248
249 Aws::String m_operationName;
250
251 Aws::Map<Aws::String, bool> m_requestParameters;
252
254
256
257 Integration m_methodIntegration;
258
259 Aws::Vector<Aws::String> m_authorizationScopes;
260
261 Aws::String m_requestId;
262 };
263
264} // namespace Model
265} // namespace APIGateway
266} // namespace Aws
void SetAuthorizerId(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
UpdateMethodResult & WithRequestValidatorId(Aws::String &&value)
UpdateMethodResult & AddRequestModels(Aws::String &&key, Aws::String &&value)
UpdateMethodResult & WithRequestId(const Aws::String &value)
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
AWS_APIGATEWAY_API UpdateMethodResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMethodResult & WithAuthorizerId(const char *value)
const Aws::String & GetAuthorizationType() const
void SetMethodIntegration(const Integration &value)
UpdateMethodResult & AddRequestParameters(Aws::String &&key, bool value)
UpdateMethodResult & WithAuthorizationType(const Aws::String &value)
UpdateMethodResult & AddRequestParameters(const char *key, bool value)
UpdateMethodResult & WithMethodIntegration(const Integration &value)
UpdateMethodResult & AddAuthorizationScopes(Aws::String &&value)
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
UpdateMethodResult & AddRequestModels(const Aws::String &key, const Aws::String &value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
UpdateMethodResult & WithOperationName(const char *value)
UpdateMethodResult & WithMethodIntegration(Integration &&value)
UpdateMethodResult & WithApiKeyRequired(bool value)
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
UpdateMethodResult & AddMethodResponses(const Aws::String &key, MethodResponse &&value)
void SetRequestId(const Aws::String &value)
UpdateMethodResult & WithAuthorizationType(const char *value)
UpdateMethodResult & WithAuthorizationType(Aws::String &&value)
void SetRequestValidatorId(const Aws::String &value)
UpdateMethodResult & WithHttpMethod(const Aws::String &value)
UpdateMethodResult & AddAuthorizationScopes(const Aws::String &value)
void SetMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
UpdateMethodResult & WithAuthorizerId(const Aws::String &value)
UpdateMethodResult & WithRequestId(const char *value)
void SetMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
UpdateMethodResult & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
UpdateMethodResult & WithHttpMethod(const char *value)
UpdateMethodResult & AddRequestModels(Aws::String &&key, const Aws::String &value)
UpdateMethodResult & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
UpdateMethodResult & WithHttpMethod(Aws::String &&value)
UpdateMethodResult & AddRequestModels(const Aws::String &key, Aws::String &&value)
UpdateMethodResult & WithMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
UpdateMethodResult & WithRequestValidatorId(const Aws::String &value)
UpdateMethodResult & AddMethodResponses(const char *key, const MethodResponse &value)
UpdateMethodResult & AddRequestModels(const char *key, const char *value)
UpdateMethodResult & WithRequestId(Aws::String &&value)
UpdateMethodResult & AddRequestParameters(const Aws::String &key, bool value)
UpdateMethodResult & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
UpdateMethodResult & AddRequestModels(const char *key, Aws::String &&value)
UpdateMethodResult & AddMethodResponses(const char *key, MethodResponse &&value)
const Integration & GetMethodIntegration() const
UpdateMethodResult & WithOperationName(const Aws::String &value)
UpdateMethodResult & AddRequestModels(Aws::String &&key, const char *value)
UpdateMethodResult & WithMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
UpdateMethodResult & WithAuthorizerId(Aws::String &&value)
UpdateMethodResult & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
UpdateMethodResult & AddMethodResponses(const Aws::String &key, const MethodResponse &value)
UpdateMethodResult & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
const Aws::String & GetRequestValidatorId() const
void SetOperationName(const Aws::String &value)
UpdateMethodResult & WithRequestValidatorId(const char *value)
AWS_APIGATEWAY_API UpdateMethodResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateMethodResult & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
UpdateMethodResult & AddAuthorizationScopes(const char *value)
UpdateMethodResult & AddMethodResponses(Aws::String &&key, MethodResponse &&value)
void SetHttpMethod(const Aws::String &value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
UpdateMethodResult & WithOperationName(Aws::String &&value)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
void SetAuthorizationType(const Aws::String &value)
UpdateMethodResult & AddMethodResponses(Aws::String &&key, const MethodResponse &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