AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetMethodResult.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 GetMethodResult();
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 GetMethodResult& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
62 inline GetMethodResult& WithHttpMethod(Aws::String&& value) { SetHttpMethod(std::move(value)); return *this;}
63 inline GetMethodResult& 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 GetMethodResult& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
78 inline GetMethodResult& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(std::move(value)); return *this;}
79 inline GetMethodResult& 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 GetMethodResult& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
92 inline GetMethodResult& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(std::move(value)); return *this;}
93 inline GetMethodResult& 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 GetMethodResult& 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 GetMethodResult& WithRequestValidatorId(const Aws::String& value) { SetRequestValidatorId(value); return *this;}
115 inline GetMethodResult& WithRequestValidatorId(Aws::String&& value) { SetRequestValidatorId(std::move(value)); return *this;}
116 inline GetMethodResult& 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 GetMethodResult& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;}
130 inline GetMethodResult& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;}
131 inline GetMethodResult& 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 GetMethodResult& AddRequestParameters(const Aws::String& key, bool value) { m_requestParameters.emplace(key, value); return *this; }
152 inline GetMethodResult& AddRequestParameters(Aws::String&& key, bool value) { m_requestParameters.emplace(std::move(key), value); return *this; }
153 inline GetMethodResult& 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 GetMethodResult& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModels.emplace(key, value); return *this; }
168 inline GetMethodResult& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModels.emplace(std::move(key), value); return *this; }
169 inline GetMethodResult& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
170 inline GetMethodResult& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModels.emplace(std::move(key), std::move(value)); return *this; }
171 inline GetMethodResult& AddRequestModels(const char* key, Aws::String&& value) { m_requestModels.emplace(key, std::move(value)); return *this; }
172 inline GetMethodResult& AddRequestModels(Aws::String&& key, const char* value) { m_requestModels.emplace(std::move(key), value); return *this; }
173 inline GetMethodResult& 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 GetMethodResult& AddMethodResponses(const Aws::String& key, const MethodResponse& value) { m_methodResponses.emplace(key, value); return *this; }
186 inline GetMethodResult& AddMethodResponses(Aws::String&& key, const MethodResponse& value) { m_methodResponses.emplace(std::move(key), value); return *this; }
187 inline GetMethodResult& AddMethodResponses(const Aws::String& key, MethodResponse&& value) { m_methodResponses.emplace(key, std::move(value)); return *this; }
188 inline GetMethodResult& AddMethodResponses(Aws::String&& key, MethodResponse&& value) { m_methodResponses.emplace(std::move(key), std::move(value)); return *this; }
189 inline GetMethodResult& AddMethodResponses(const char* key, MethodResponse&& value) { m_methodResponses.emplace(key, std::move(value)); return *this; }
190 inline GetMethodResult& 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 GetMethodResult& WithMethodIntegration(const Integration& value) { SetMethodIntegration(value); return *this;}
203 inline GetMethodResult& 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 GetMethodResult& AddAuthorizationScopes(const Aws::String& value) { m_authorizationScopes.push_back(value); return *this; }
223 inline GetMethodResult& AddAuthorizationScopes(Aws::String&& value) { m_authorizationScopes.push_back(std::move(value)); return *this; }
224 inline GetMethodResult& 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 GetMethodResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
234 inline GetMethodResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
235 inline GetMethodResult& 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
GetMethodResult & WithMethodIntegration(Integration &&value)
void SetRequestValidatorId(const Aws::String &value)
GetMethodResult & AddRequestModels(const Aws::String &key, const Aws::String &value)
void SetRequestValidatorId(Aws::String &&value)
GetMethodResult & AddAuthorizationScopes(const char *value)
GetMethodResult & WithAuthorizationType(const char *value)
void SetRequestId(const Aws::String &value)
GetMethodResult & AddMethodResponses(const Aws::String &key, MethodResponse &&value)
const Aws::String & GetAuthorizerId() const
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
GetMethodResult & WithHttpMethod(const Aws::String &value)
void SetMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
GetMethodResult & WithMethodIntegration(const Integration &value)
GetMethodResult & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
void SetOperationName(const Aws::String &value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
void SetAuthorizationType(const char *value)
GetMethodResult & AddRequestParameters(const char *key, bool value)
GetMethodResult & WithOperationName(const char *value)
GetMethodResult & WithAuthorizerId(const char *value)
GetMethodResult & AddRequestModels(Aws::String &&key, const Aws::String &value)
GetMethodResult & WithAuthorizerId(Aws::String &&value)
GetMethodResult & AddMethodResponses(Aws::String &&key, MethodResponse &&value)
GetMethodResult & WithRequestValidatorId(const char *value)
GetMethodResult & WithOperationName(const Aws::String &value)
GetMethodResult & WithMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
GetMethodResult & AddRequestParameters(Aws::String &&key, bool value)
void SetAuthorizationType(Aws::String &&value)
GetMethodResult & AddRequestModels(const char *key, Aws::String &&value)
void SetMethodIntegration(const Integration &value)
void SetAuthorizerId(Aws::String &&value)
GetMethodResult & WithAuthorizationScopes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAuthorizationScopes() const
GetMethodResult & WithAuthorizationType(Aws::String &&value)
GetMethodResult & AddMethodResponses(const char *key, MethodResponse &&value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetRequestId() const
GetMethodResult & AddMethodResponses(const char *key, const MethodResponse &value)
void SetAuthorizerId(const Aws::String &value)
GetMethodResult & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
GetMethodResult & AddAuthorizationScopes(const Aws::String &value)
GetMethodResult & AddRequestParameters(const Aws::String &key, bool value)
const Aws::String & GetAuthorizationType() const
AWS_APIGATEWAY_API GetMethodResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APIGATEWAY_API GetMethodResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
GetMethodResult & WithAuthorizationScopes(const Aws::Vector< Aws::String > &value)
GetMethodResult & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
void SetAuthorizationType(const Aws::String &value)
GetMethodResult & WithAuthorizerId(const Aws::String &value)
GetMethodResult & AddMethodResponses(const Aws::String &key, const MethodResponse &value)
void SetAuthorizationScopes(Aws::Vector< Aws::String > &&value)
GetMethodResult & WithRequestId(const char *value)
GetMethodResult & AddRequestModels(const char *key, const char *value)
GetMethodResult & WithAuthorizationType(const Aws::String &value)
GetMethodResult & WithRequestId(Aws::String &&value)
GetMethodResult & AddRequestModels(Aws::String &&key, Aws::String &&value)
GetMethodResult & WithRequestValidatorId(Aws::String &&value)
void SetMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
void SetMethodIntegration(Integration &&value)
GetMethodResult & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
GetMethodResult & WithRequestValidatorId(const Aws::String &value)
GetMethodResult & AddAuthorizationScopes(Aws::String &&value)
GetMethodResult & WithHttpMethod(const char *value)
GetMethodResult & AddRequestModels(Aws::String &&key, const char *value)
GetMethodResult & WithRequestId(const Aws::String &value)
const Aws::String & GetHttpMethod() const
void SetHttpMethod(const Aws::String &value)
const Aws::String & GetOperationName() const
GetMethodResult & WithMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
void SetRequestValidatorId(const char *value)
const Aws::String & GetRequestValidatorId() const
const Integration & GetMethodIntegration() const
GetMethodResult & AddMethodResponses(Aws::String &&key, const MethodResponse &value)
GetMethodResult & WithOperationName(Aws::String &&value)
void SetHttpMethod(Aws::String &&value)
GetMethodResult & WithHttpMethod(Aws::String &&value)
GetMethodResult & WithApiKeyRequired(bool value)
GetMethodResult & AddRequestModels(const Aws::String &key, Aws::String &&value)
void SetAuthorizationScopes(const Aws::Vector< Aws::String > &value)
void SetOperationName(Aws::String &&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