AWS SDK for C++  0.12.9
AWS SDK for C++
GetMethodResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace APIGateway
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
52 
56  inline void SetHttpMethod(const Aws::String& value) { m_httpMethod = value; }
57 
61  inline void SetHttpMethod(Aws::String&& value) { m_httpMethod = value; }
62 
66  inline void SetHttpMethod(const char* value) { m_httpMethod.assign(value); }
67 
71  inline GetMethodResult& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
72 
76  inline GetMethodResult& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
77 
81  inline GetMethodResult& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
82 
86  inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
87 
91  inline void SetAuthorizationType(const Aws::String& value) { m_authorizationType = value; }
92 
96  inline void SetAuthorizationType(Aws::String&& value) { m_authorizationType = value; }
97 
101  inline void SetAuthorizationType(const char* value) { m_authorizationType.assign(value); }
102 
106  inline GetMethodResult& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
107 
111  inline GetMethodResult& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(value); return *this;}
112 
116  inline GetMethodResult& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
117 
122  inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
123 
128  inline void SetAuthorizerId(const Aws::String& value) { m_authorizerId = value; }
129 
134  inline void SetAuthorizerId(Aws::String&& value) { m_authorizerId = value; }
135 
140  inline void SetAuthorizerId(const char* value) { m_authorizerId.assign(value); }
141 
146  inline GetMethodResult& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
147 
152  inline GetMethodResult& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(value); return *this;}
153 
158  inline GetMethodResult& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
159 
163  inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
164 
168  inline void SetApiKeyRequired(bool value) { m_apiKeyRequired = value; }
169 
173  inline GetMethodResult& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
174 
185  inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const{ return m_requestParameters; }
186 
197  inline void SetRequestParameters(const Aws::Map<Aws::String, bool>& value) { m_requestParameters = value; }
198 
209  inline void SetRequestParameters(Aws::Map<Aws::String, bool>&& value) { m_requestParameters = value; }
210 
221  inline GetMethodResult& WithRequestParameters(const Aws::Map<Aws::String, bool>& value) { SetRequestParameters(value); return *this;}
222 
233  inline GetMethodResult& WithRequestParameters(Aws::Map<Aws::String, bool>&& value) { SetRequestParameters(value); return *this;}
234 
245  inline GetMethodResult& AddRequestParameters(const Aws::String& key, bool value) { m_requestParameters[key] = value; return *this; }
246 
257  inline GetMethodResult& AddRequestParameters(Aws::String&& key, bool value) { m_requestParameters[key] = value; return *this; }
258 
269  inline GetMethodResult& AddRequestParameters(const char* key, bool value) { m_requestParameters[key] = value; return *this; }
270 
276  inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
277 
283  inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModels = value; }
284 
290  inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModels = value; }
291 
297  inline GetMethodResult& WithRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestModels(value); return *this;}
298 
304  inline GetMethodResult& WithRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestModels(value); return *this;}
305 
311  inline GetMethodResult& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModels[key] = value; return *this; }
312 
318  inline GetMethodResult& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModels[key] = value; return *this; }
319 
325  inline GetMethodResult& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModels[key] = value; return *this; }
326 
332  inline GetMethodResult& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModels[key] = value; return *this; }
333 
339  inline GetMethodResult& AddRequestModels(const char* key, Aws::String&& value) { m_requestModels[key] = value; return *this; }
340 
346  inline GetMethodResult& AddRequestModels(Aws::String&& key, const char* value) { m_requestModels[key] = value; return *this; }
347 
353  inline GetMethodResult& AddRequestModels(const char* key, const char* value) { m_requestModels[key] = value; return *this; }
354 
361  inline const Aws::Map<Aws::String, MethodResponse>& GetMethodResponses() const{ return m_methodResponses; }
362 
369  inline void SetMethodResponses(const Aws::Map<Aws::String, MethodResponse>& value) { m_methodResponses = value; }
370 
377  inline void SetMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { m_methodResponses = value; }
378 
385  inline GetMethodResult& WithMethodResponses(const Aws::Map<Aws::String, MethodResponse>& value) { SetMethodResponses(value); return *this;}
386 
393  inline GetMethodResult& WithMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { SetMethodResponses(value); return *this;}
394 
401  inline GetMethodResult& AddMethodResponses(const Aws::String& key, const MethodResponse& value) { m_methodResponses[key] = value; return *this; }
402 
409  inline GetMethodResult& AddMethodResponses(Aws::String&& key, const MethodResponse& value) { m_methodResponses[key] = value; return *this; }
410 
417  inline GetMethodResult& AddMethodResponses(const Aws::String& key, MethodResponse&& value) { m_methodResponses[key] = value; return *this; }
418 
425  inline GetMethodResult& AddMethodResponses(Aws::String&& key, MethodResponse&& value) { m_methodResponses[key] = value; return *this; }
426 
433  inline GetMethodResult& AddMethodResponses(const char* key, MethodResponse&& value) { m_methodResponses[key] = value; return *this; }
434 
441  inline GetMethodResult& AddMethodResponses(const char* key, const MethodResponse& value) { m_methodResponses[key] = value; return *this; }
442 
446  inline const Integration& GetMethodIntegration() const{ return m_methodIntegration; }
447 
451  inline void SetMethodIntegration(const Integration& value) { m_methodIntegration = value; }
452 
456  inline void SetMethodIntegration(Integration&& value) { m_methodIntegration = value; }
457 
461  inline GetMethodResult& WithMethodIntegration(const Integration& value) { SetMethodIntegration(value); return *this;}
462 
466  inline GetMethodResult& WithMethodIntegration(Integration&& value) { SetMethodIntegration(value); return *this;}
467 
468  private:
469  Aws::String m_httpMethod;
470  Aws::String m_authorizationType;
471  Aws::String m_authorizerId;
472  bool m_apiKeyRequired;
473  Aws::Map<Aws::String, bool> m_requestParameters;
474  Aws::Map<Aws::String, Aws::String> m_requestModels;
475  Aws::Map<Aws::String, MethodResponse> m_methodResponses;
476  Integration m_methodIntegration;
477  };
478 
479 } // namespace Model
480 } // namespace APIGateway
481 } // namespace Aws
GetMethodResult & WithHttpMethod(const char *value)
void SetAuthorizerId(Aws::String &&value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
GetMethodResult & AddMethodResponses(Aws::String &&key, MethodResponse &&value)
GetMethodResult & WithAuthorizationType(const char *value)
GetMethodResult & WithAuthorizationType(Aws::String &&value)
GetMethodResult & AddRequestParameters(Aws::String &&key, bool value)
GetMethodResult & AddRequestModels(const char *key, Aws::String &&value)
GetMethodResult & WithApiKeyRequired(bool value)
GetMethodResult & AddRequestParameters(const char *key, bool value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
const Aws::String & GetAuthorizerId() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetHttpMethod(const Aws::String &value)
GetMethodResult & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
GetMethodResult & AddRequestModels(Aws::String &&key, Aws::String &&value)
void SetMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
GetMethodResult & AddMethodResponses(const char *key, const MethodResponse &value)
GetMethodResult & AddRequestModels(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
void SetMethodIntegration(const Integration &value)
GetMethodResult & WithAuthorizerId(const Aws::String &value)
GetMethodResult & WithAuthorizationType(const Aws::String &value)
GetMethodResult & AddMethodResponses(const char *key, MethodResponse &&value)
GetMethodResult & WithHttpMethod(const Aws::String &value)
GetMethodResult & AddRequestModels(Aws::String &&key, const char *value)
void SetAuthorizerId(const Aws::String &value)
void SetAuthorizationType(Aws::String &&value)
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
GetMethodResult & AddRequestModels(const char *key, const char *value)
GetMethodResult & AddMethodResponses(Aws::String &&key, const MethodResponse &value)
const Aws::String & GetHttpMethod() const
const Aws::String & GetAuthorizationType() const
GetMethodResult & AddRequestParameters(const Aws::String &key, bool value)
GetMethodResult & WithMethodIntegration(Integration &&value)
void SetMethodIntegration(Integration &&value)
GetMethodResult & WithAuthorizerId(Aws::String &&value)
GetMethodResult & AddRequestModels(Aws::String &&key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetMethodResult & AddRequestModels(const Aws::String &key, Aws::String &&value)
GetMethodResult & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
void SetMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
GetMethodResult & WithMethodIntegration(const Integration &value)
#define AWS_APIGATEWAY_API
GetMethodResult & AddMethodResponses(const Aws::String &key, MethodResponse &&value)
const Integration & GetMethodIntegration() const
GetMethodResult & WithMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
GetMethodResult & WithAuthorizerId(const char *value)
void SetAuthorizationType(const Aws::String &value)
GetMethodResult & WithHttpMethod(Aws::String &&value)
GetMethodResult & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
GetMethodResult & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
GetMethodResult & AddMethodResponses(const Aws::String &key, const MethodResponse &value)
GetMethodResult & WithMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
void SetHttpMethod(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetAuthorizationType(const char *value)