AWS SDK for C++  0.12.9
AWS SDK for C++
PutMethodRequest.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
20 
21 namespace Aws
22 {
23 namespace APIGateway
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
41 
45  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
46 
50  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
51 
55  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
56 
60  inline PutMethodRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
61 
65  inline PutMethodRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
66 
70  inline PutMethodRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
71 
75  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
76 
80  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
81 
85  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
86 
90  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
91 
95  inline PutMethodRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
96 
100  inline PutMethodRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
101 
105  inline PutMethodRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
106 
110  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
111 
115  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
116 
120  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
121 
125  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
126 
130  inline PutMethodRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
131 
135  inline PutMethodRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
136 
140  inline PutMethodRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
141 
145  inline const Aws::String& GetAuthorizationType() const{ return m_authorizationType; }
146 
150  inline void SetAuthorizationType(const Aws::String& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
151 
155  inline void SetAuthorizationType(Aws::String&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
156 
160  inline void SetAuthorizationType(const char* value) { m_authorizationTypeHasBeenSet = true; m_authorizationType.assign(value); }
161 
165  inline PutMethodRequest& WithAuthorizationType(const Aws::String& value) { SetAuthorizationType(value); return *this;}
166 
170  inline PutMethodRequest& WithAuthorizationType(Aws::String&& value) { SetAuthorizationType(value); return *this;}
171 
175  inline PutMethodRequest& WithAuthorizationType(const char* value) { SetAuthorizationType(value); return *this;}
176 
181  inline const Aws::String& GetAuthorizerId() const{ return m_authorizerId; }
182 
187  inline void SetAuthorizerId(const Aws::String& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
188 
193  inline void SetAuthorizerId(Aws::String&& value) { m_authorizerIdHasBeenSet = true; m_authorizerId = value; }
194 
199  inline void SetAuthorizerId(const char* value) { m_authorizerIdHasBeenSet = true; m_authorizerId.assign(value); }
200 
205  inline PutMethodRequest& WithAuthorizerId(const Aws::String& value) { SetAuthorizerId(value); return *this;}
206 
211  inline PutMethodRequest& WithAuthorizerId(Aws::String&& value) { SetAuthorizerId(value); return *this;}
212 
217  inline PutMethodRequest& WithAuthorizerId(const char* value) { SetAuthorizerId(value); return *this;}
218 
222  inline bool GetApiKeyRequired() const{ return m_apiKeyRequired; }
223 
227  inline void SetApiKeyRequired(bool value) { m_apiKeyRequiredHasBeenSet = true; m_apiKeyRequired = value; }
228 
232  inline PutMethodRequest& WithApiKeyRequired(bool value) { SetApiKeyRequired(value); return *this;}
233 
244  inline const Aws::Map<Aws::String, bool>& GetRequestParameters() const{ return m_requestParameters; }
245 
256  inline void SetRequestParameters(const Aws::Map<Aws::String, bool>& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
257 
268  inline void SetRequestParameters(Aws::Map<Aws::String, bool>&& value) { m_requestParametersHasBeenSet = true; m_requestParameters = value; }
269 
280  inline PutMethodRequest& WithRequestParameters(const Aws::Map<Aws::String, bool>& value) { SetRequestParameters(value); return *this;}
281 
292  inline PutMethodRequest& WithRequestParameters(Aws::Map<Aws::String, bool>&& value) { SetRequestParameters(value); return *this;}
293 
304  inline PutMethodRequest& AddRequestParameters(const Aws::String& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters[key] = value; return *this; }
305 
316  inline PutMethodRequest& AddRequestParameters(Aws::String&& key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters[key] = value; return *this; }
317 
328  inline PutMethodRequest& AddRequestParameters(const char* key, bool value) { m_requestParametersHasBeenSet = true; m_requestParameters[key] = value; return *this; }
329 
335  inline const Aws::Map<Aws::String, Aws::String>& GetRequestModels() const{ return m_requestModels; }
336 
342  inline void SetRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
343 
349  inline void SetRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { m_requestModelsHasBeenSet = true; m_requestModels = value; }
350 
356  inline PutMethodRequest& WithRequestModels(const Aws::Map<Aws::String, Aws::String>& value) { SetRequestModels(value); return *this;}
357 
363  inline PutMethodRequest& WithRequestModels(Aws::Map<Aws::String, Aws::String>&& value) { SetRequestModels(value); return *this;}
364 
370  inline PutMethodRequest& AddRequestModels(const Aws::String& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
371 
377  inline PutMethodRequest& AddRequestModels(Aws::String&& key, const Aws::String& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
378 
384  inline PutMethodRequest& AddRequestModels(const Aws::String& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
385 
391  inline PutMethodRequest& AddRequestModels(Aws::String&& key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
392 
398  inline PutMethodRequest& AddRequestModels(const char* key, Aws::String&& value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
399 
405  inline PutMethodRequest& AddRequestModels(Aws::String&& key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
406 
412  inline PutMethodRequest& AddRequestModels(const char* key, const char* value) { m_requestModelsHasBeenSet = true; m_requestModels[key] = value; return *this; }
413 
414  private:
415  Aws::String m_restApiId;
416  bool m_restApiIdHasBeenSet;
417  Aws::String m_resourceId;
418  bool m_resourceIdHasBeenSet;
419  Aws::String m_httpMethod;
420  bool m_httpMethodHasBeenSet;
421  Aws::String m_authorizationType;
422  bool m_authorizationTypeHasBeenSet;
423  Aws::String m_authorizerId;
424  bool m_authorizerIdHasBeenSet;
425  bool m_apiKeyRequired;
426  bool m_apiKeyRequiredHasBeenSet;
427  Aws::Map<Aws::String, bool> m_requestParameters;
428  bool m_requestParametersHasBeenSet;
429  Aws::Map<Aws::String, Aws::String> m_requestModels;
430  bool m_requestModelsHasBeenSet;
431  };
432 
433 } // namespace Model
434 } // namespace APIGateway
435 } // namespace Aws
PutMethodRequest & WithAuthorizationType(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
const Aws::String & GetAuthorizationType() const
PutMethodRequest & WithApiKeyRequired(bool value)
void SetRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodRequest & WithRequestParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodRequest & WithAuthorizerId(const char *value)
void SetHttpMethod(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
PutMethodRequest & WithRestApiId(const Aws::String &value)
void SetAuthorizerId(const Aws::String &value)
PutMethodRequest & AddRequestParameters(const char *key, bool value)
PutMethodRequest & AddRequestModels(Aws::String &&key, const char *value)
PutMethodRequest & WithAuthorizerId(Aws::String &&value)
void SetAuthorizationType(const char *value)
PutMethodRequest & WithAuthorizationType(const char *value)
const Aws::String & GetRestApiId() const
const Aws::Map< Aws::String, bool > & GetRequestParameters() const
void SetRestApiId(Aws::String &&value)
PutMethodRequest & WithResourceId(Aws::String &&value)
PutMethodRequest & AddRequestParameters(Aws::String &&key, bool value)
PutMethodRequest & WithHttpMethod(const char *value)
void SetAuthorizerId(Aws::String &&value)
void SetAuthorizationType(const Aws::String &value)
PutMethodRequest & WithRestApiId(Aws::String &&value)
const Aws::String & GetResourceId() const
PutMethodRequest & WithRequestModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodRequest & WithAuthorizerId(const Aws::String &value)
void SetRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodRequest & WithRequestModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodRequest & WithRequestParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodRequest & WithAuthorizationType(Aws::String &&value)
PutMethodRequest & AddRequestModels(const char *key, Aws::String &&value)
PutMethodRequest & WithHttpMethod(const Aws::String &value)
void SetResourceId(const Aws::String &value)
PutMethodRequest & AddRequestModels(const Aws::String &key, const Aws::String &value)
PutMethodRequest & AddRequestModels(const Aws::String &key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutMethodRequest & WithHttpMethod(Aws::String &&value)
const Aws::String & GetHttpMethod() const
PutMethodRequest & WithResourceId(const char *value)
PutMethodRequest & WithRestApiId(const char *value)
#define AWS_APIGATEWAY_API
void SetAuthorizationType(Aws::String &&value)
const Aws::String & GetAuthorizerId() const
void SetResourceId(Aws::String &&value)
PutMethodRequest & AddRequestModels(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetRequestModels() const
void SetRequestParameters(const Aws::Map< Aws::String, bool > &value)
void SetRequestParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodRequest & AddRequestModels(Aws::String &&key, Aws::String &&value)
PutMethodRequest & AddRequestParameters(const Aws::String &key, bool value)
JSON (JavaScript Object Notation).
PutMethodRequest & WithResourceId(const Aws::String &value)
PutMethodRequest & AddRequestModels(const char *key, const char *value)