AWS SDK for C++  0.12.9
AWS SDK for C++
PutMethodResponseRequest.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 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
41  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
42 
46  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
47 
51  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 
56  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
57 
61  inline PutMethodResponseRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
62 
66  inline PutMethodResponseRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
67 
71  inline PutMethodResponseRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
72 
76  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
77 
81  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
82 
86  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
87 
91  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
92 
96  inline PutMethodResponseRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
97 
101  inline PutMethodResponseRequest& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
102 
106  inline PutMethodResponseRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
107 
111  inline const Aws::String& GetHttpMethod() const{ return m_httpMethod; }
112 
116  inline void SetHttpMethod(const Aws::String& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
117 
121  inline void SetHttpMethod(Aws::String&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; }
122 
126  inline void SetHttpMethod(const char* value) { m_httpMethodHasBeenSet = true; m_httpMethod.assign(value); }
127 
131  inline PutMethodResponseRequest& WithHttpMethod(const Aws::String& value) { SetHttpMethod(value); return *this;}
132 
136  inline PutMethodResponseRequest& WithHttpMethod(Aws::String&& value) { SetHttpMethod(value); return *this;}
137 
141  inline PutMethodResponseRequest& WithHttpMethod(const char* value) { SetHttpMethod(value); return *this;}
142 
146  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
147 
151  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
152 
156  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
157 
161  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
162 
166  inline PutMethodResponseRequest& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
167 
171  inline PutMethodResponseRequest& WithStatusCode(Aws::String&& value) { SetStatusCode(value); return *this;}
172 
176  inline PutMethodResponseRequest& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
177 
187  inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
188 
198  inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
199 
209  inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParametersHasBeenSet = true; m_responseParameters = value; }
210 
220  inline PutMethodResponseRequest& WithResponseParameters(const Aws::Map<Aws::String, bool>& value) { SetResponseParameters(value); return *this;}
221 
231  inline PutMethodResponseRequest& WithResponseParameters(Aws::Map<Aws::String, bool>&& value) { SetResponseParameters(value); return *this;}
232 
242  inline PutMethodResponseRequest& AddResponseParameters(const Aws::String& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters[key] = value; return *this; }
243 
253  inline PutMethodResponseRequest& AddResponseParameters(Aws::String&& key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters[key] = value; return *this; }
254 
264  inline PutMethodResponseRequest& AddResponseParameters(const char* key, bool value) { m_responseParametersHasBeenSet = true; m_responseParameters[key] = value; return *this; }
265 
271  inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
272 
278  inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
279 
285  inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModelsHasBeenSet = true; m_responseModels = value; }
286 
292  inline PutMethodResponseRequest& WithResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseModels(value); return *this;}
293 
299  inline PutMethodResponseRequest& WithResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseModels(value); return *this;}
300 
306  inline PutMethodResponseRequest& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
307 
313  inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
314 
320  inline PutMethodResponseRequest& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
321 
327  inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
328 
334  inline PutMethodResponseRequest& AddResponseModels(const char* key, Aws::String&& value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
335 
341  inline PutMethodResponseRequest& AddResponseModels(Aws::String&& key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
342 
348  inline PutMethodResponseRequest& AddResponseModels(const char* key, const char* value) { m_responseModelsHasBeenSet = true; m_responseModels[key] = value; return *this; }
349 
350  private:
351  Aws::String m_restApiId;
352  bool m_restApiIdHasBeenSet;
353  Aws::String m_resourceId;
354  bool m_resourceIdHasBeenSet;
355  Aws::String m_httpMethod;
356  bool m_httpMethodHasBeenSet;
357  Aws::String m_statusCode;
358  bool m_statusCodeHasBeenSet;
359  Aws::Map<Aws::String, bool> m_responseParameters;
360  bool m_responseParametersHasBeenSet;
361  Aws::Map<Aws::String, Aws::String> m_responseModels;
362  bool m_responseModelsHasBeenSet;
363  };
364 
365 } // namespace Model
366 } // namespace APIGateway
367 } // namespace Aws
PutMethodResponseRequest & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodResponseRequest & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseRequest & AddResponseParameters(const char *key, bool value)
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodResponseRequest & WithResourceId(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
PutMethodResponseRequest & WithStatusCode(Aws::String &&value)
PutMethodResponseRequest & WithResourceId(Aws::String &&value)
PutMethodResponseRequest & AddResponseModels(const char *key, const char *value)
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, const char *value)
PutMethodResponseRequest & AddResponseModels(const Aws::String &key, Aws::String &&value)
PutMethodResponseRequest & WithStatusCode(const char *value)
PutMethodResponseRequest & WithRestApiId(const Aws::String &value)
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseRequest & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, Aws::String &&value)
PutMethodResponseRequest & WithHttpMethod(const Aws::String &value)
PutMethodResponseRequest & AddResponseModels(const Aws::String &key, const Aws::String &value)
PutMethodResponseRequest & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodResponseRequest & WithHttpMethod(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
PutMethodResponseRequest & WithResourceId(const char *value)
PutMethodResponseRequest & WithRestApiId(Aws::String &&value)
PutMethodResponseRequest & AddResponseModels(Aws::String &&key, const Aws::String &value)
PutMethodResponseRequest & AddResponseModels(const char *key, Aws::String &&value)
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
PutMethodResponseRequest & WithStatusCode(const Aws::String &value)
PutMethodResponseRequest & WithRestApiId(const char *value)
PutMethodResponseRequest & AddResponseParameters(Aws::String &&key, bool value)
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
PutMethodResponseRequest & AddResponseParameters(const Aws::String &key, bool value)
PutMethodResponseRequest & WithHttpMethod(const char *value)
JSON (JavaScript Object Notation).