AWS SDK for C++  0.12.9
AWS SDK for C++
Method.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 namespace Utils
25 {
26 namespace Json
27 {
28  class JsonValue;
29 } // namespace Json
30 } // namespace Utils
31 namespace APIGateway
32 {
33 namespace Model
34 {
35 
40  {
41  public:
42  Method();
43  Method(const Aws::Utils::Json::JsonValue& jsonValue);
44  Method& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
45  Aws::Utils::Json::JsonValue Jsonize() const;
46 
50  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
51 
55  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
56 
60  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
61 
65  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
66 
70  inline Method& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
71 
75  inline Method& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
76 
80  inline Method& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
81 
85  inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
86 
90  inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
91 
95  inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
96 
100  inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
101 
105  inline Method& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
106 
110  inline Method& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(value); return *this;}
111 
115  inline Method& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
116 
121  inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
122 
127  inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
128 
133  inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
134 
139  inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
140 
145  inline Method& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
146 
151  inline Method& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(value); return *this;}
152 
157  inline Method& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
158 
162  inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
163 
167  inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
168 
172  inline Method& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
173 
184  inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const{ return m_requestParameters; }
185 
196  inline void SetRequestParameters(const Aws::Map<Aws::String, bool>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
197 
208  inline void SetRequestParameters(Aws::Map<Aws::String, bool>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
209 
220  inline Method& WithRequestParameters(const Aws::Map<Aws::String, bool>& value) { SetRequestParameters(value); return *this;}
221 
232  inline Method& WithRequestParameters(Aws::Map<Aws::String, bool>&& value) { SetRequestParameters(value); return *this;}
233 
244  inline Method& AddRequestParameters(const Aws::String& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters[key] = value; return *this; }
245 
256  inline Method& AddRequestParameters(Aws::String&& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters[key] = value; return *this; }
257 
268  inline Method& AddRequestParameters(const char* key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters[key] = value; return *this; }
269 
275  inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
276 
282  inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
283 
289  inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
290 
296  inline Method& WithRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestModels(value); return *this;}
297 
303  inline Method& WithRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestModels(value); return *this;}
304 
310  inline Method& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
311 
317  inline Method& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
318 
324  inline Method& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
325 
331  inline Method& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
332 
338  inline Method& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
339 
345  inline Method& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
346 
352  inline Method& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
353 
360  inline const Aws::Map<Aws::String, MethodResponse>& GetMethodResponses() const{ return m_methodResponses; }
361 
368  inline void SetMethodResponses(const Aws::Map<Aws::String, MethodResponse>& value) { m_methodResponsesHasBeenSet = true; m_methodResponses = value; }
369 
376  inline void SetMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses = value; }
377 
384  inline Method& WithMethodResponses(const Aws::Map<Aws::String, MethodResponse>& value) { SetMethodResponses(value); return *this;}
385 
392  inline Method& WithMethodResponses(Aws::Map<Aws::String, MethodResponse>&& value) { SetMethodResponses(value); return *this;}
393 
400  inline Method& AddMethodResponses(const Aws::String& key, const MethodResponse& value) { m_methodResponsesHasBeenSet = true; m_methodResponses[key] = value; return *this; }
401 
408  inline Method& AddMethodResponses(Aws::String&& key, const MethodResponse& value) { m_methodResponsesHasBeenSet = true; m_methodResponses[key] = value; return *this; }
409 
416  inline Method& AddMethodResponses(const Aws::String& key, MethodResponse&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses[key] = value; return *this; }
417 
424  inline Method& AddMethodResponses(Aws::String&& key, MethodResponse&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses[key] = value; return *this; }
425 
432  inline Method& AddMethodResponses(const char* key, MethodResponse&& value) { m_methodResponsesHasBeenSet = true; m_methodResponses[key] = value; return *this; }
433 
440  inline Method& AddMethodResponses(const char* key, const MethodResponse& value) { m_methodResponsesHasBeenSet = true; m_methodResponses[key] = value; return *this; }
441 
445  inline const Integration& GetMethodIntegration() const{ return m_methodIntegration; }
446 
450  inline void SetMethodIntegration(const Integration& value) { m_methodIntegrationHasBeenSet = true; m_methodIntegration = value; }
451 
455  inline void SetMethodIntegration(Integration&& value) { m_methodIntegrationHasBeenSet = true; m_methodIntegration = value; }
456 
460  inline Method& WithMethodIntegration(const Integration& value) { SetMethodIntegration(value); return *this;}
461 
465  inline Method& WithMethodIntegration(Integration&& value) { SetMethodIntegration(value); return *this;}
466 
467  private:
468  Aws::String m_httpMethod;
469  bool m_httpMethodHasBeenSet;
470  Aws::String m_authorizationType;
471  bool m_authorizationTypeHasBeenSet;
472  Aws::String m_authorizerId;
473  bool m_authorizerIdHasBeenSet;
474  bool m_apiKeyRequired;
475  bool m_apiKeyRequiredHasBeenSet;
476  Aws::Map<Aws::String, bool> m_requestParameters;
477  bool m_requestParametersHasBeenSet;
478  Aws::Map<Aws::String, Aws::String> m_requestModels;
479  bool m_requestModelsHasBeenSet;
480  Aws::Map<Aws::String, MethodResponse> m_methodResponses;
481  bool m_methodResponsesHasBeenSet;
482  Integration m_methodIntegration;
483  bool m_methodIntegrationHasBeenSet;
484  };
485 
486 } // namespace Model
487 } // namespace APIGateway
488 } // namespace Aws
Method & AddRequestModels(Aws::String &&key, const char *value)
Definition: Method.h:345
Method & AddRequestModels(Aws::String &&key, Aws::String &&value)
Definition: Method.h:331
Method & WithMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
Definition: Method.h:384
Method & AddMethodResponses(Aws::String &&key, MethodResponse &&value)
Definition: Method.h:424
const Aws::Map< Aws::String, MethodResponse > & GetMethodResponses() const
Definition: Method.h:360
Method & WithAuthorizationType(const char *value)
Definition: Method.h:115
void SetMethodResponses(const Aws::Map< Aws::String, MethodResponse > &value)
Definition: Method.h:368
const Aws::String & GetHttpMethod() const
Definition: Method.h:50
Method & AddRequestParameters(Aws::String &&key, bool value)
Definition: Method.h:256
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
Definition: Method.h:196
Method & WithMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
Definition: Method.h:392
Method & AddRequestModels(const Aws::String &key, Aws::String &&value)
Definition: Method.h:324
void SetHttpMethod(Aws::String &&value)
Definition: Method.h:60
void SetMethodIntegration(const Integration &value)
Definition: Method.h:450
Method & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
Definition: Method.h:232
Method & WithAuthorizerId(const char *value)
Definition: Method.h:157
Method & WithMethodIntegration(Integration &&value)
Definition: Method.h:465
Method & AddMethodResponses(const char *key, MethodResponse &&value)
Definition: Method.h:432
Method & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Method.h:296
Method & WithAuthorizationType(const Aws::String &value)
Definition: Method.h:105
Method & AddMethodResponses(Aws::String &&key, const MethodResponse &value)
Definition: Method.h:408
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
bool GetApiKeyRequired() const
Definition: Method.h:162
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
Definition: Method.h:208
void SetAuthorizerId(const Aws::String &value)
Definition: Method.h:127
void SetAuthorizationType(Aws::String &&value)
Definition: Method.h:95
void SetAuthorizerId(const char *value)
Definition: Method.h:139
Method & AddRequestModels(const char *key, const char *value)
Definition: Method.h:352
Method & AddMethodResponses(const char *key, const MethodResponse &value)
Definition: Method.h:440
Method & AddRequestModels(Aws::String &&key, const Aws::String &value)
Definition: Method.h:317
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
Definition: Method.h:275
Method & WithAuthorizerId(const Aws::String &value)
Definition: Method.h:145
const Aws::String & GetAuthorizerId() const
Definition: Method.h:121
void SetMethodIntegration(Integration &&value)
Definition: Method.h:455
void SetHttpMethod(const Aws::String &value)
Definition: Method.h:55
Method & WithMethodIntegration(const Integration &value)
Definition: Method.h:460
Method & WithApiKeyRequired(bool value)
Definition: Method.h:172
void SetApiKeyRequired(bool value)
Definition: Method.h:167
Method & AddMethodResponses(const Aws::String &key, MethodResponse &&value)
Definition: Method.h:416
Method & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Method.h:303
Method & WithAuthorizerId(Aws::String &&value)
Definition: Method.h:151
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
Definition: Method.h:289
void SetMethodResponses(Aws::Map< Aws::String, MethodResponse > &&value)
Definition: Method.h:376
Method & AddRequestModels(const char *key, Aws::String &&value)
Definition: Method.h:338
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
Definition: Method.h:184
void SetAuthorizationType(const Aws::String &value)
Definition: Method.h:90
Method & AddRequestParameters(const char *key, bool value)
Definition: Method.h:268
Method & AddRequestParameters(const Aws::String &key, bool value)
Definition: Method.h:244
Method & WithHttpMethod(Aws::String &&value)
Definition: Method.h:75
Method & WithHttpMethod(const Aws::String &value)
Definition: Method.h:70
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
void SetHttpMethod(const char *value)
Definition: Method.h:65
const Integration & GetMethodIntegration() const
Definition: Method.h:445
Method & AddMethodResponses(const Aws::String &key, const MethodResponse &value)
Definition: Method.h:400
void SetAuthorizationType(const char *value)
Definition: Method.h:100
const Aws::String & GetAuthorizationType() const
Definition: Method.h:85
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
Definition: Method.h:282
Method & WithHttpMethod(const char *value)
Definition: Method.h:80
Method & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
Definition: Method.h:220
Method & WithAuthorizationType(Aws::String &&value)
Definition: Method.h:110
Method & AddRequestModels(const Aws::String &key, const Aws::String &value)
Definition: Method.h:310
void SetAuthorizerId(Aws::String &&value)
Definition: Method.h:133
JSON (JavaScript Object Notation).