AWS SDK for C++  0.14.3
AWS SDK for C++
PutMethodResponseResult.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
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace APIGateway
33 {
34 namespace Model
35 {
42  {
43  public:
47 
51  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
52 
56  inline void SetStatusCode(const Aws::String& value) { m_statusCode = value; }
57 
61  inline void SetStatusCode(Aws::String&& value) { m_statusCode = value; }
62 
66  inline void SetStatusCode(const char* value) { m_statusCode.assign(value); }
67 
71  inline PutMethodResponseResult& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
72 
76  inline PutMethodResponseResult& WithStatusCode(Aws::String&& value) { SetStatusCode(value); return *this;}
77 
81  inline PutMethodResponseResult& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
82 
92  inline const Aws::Map<Aws::String, bool>& GetResponseParameters() const{ return m_responseParameters; }
93 
103  inline void SetResponseParameters(const Aws::Map<Aws::String, bool>& value) { m_responseParameters = value; }
104 
114  inline void SetResponseParameters(Aws::Map<Aws::String, bool>&& value) { m_responseParameters = value; }
115 
125  inline PutMethodResponseResult& WithResponseParameters(const Aws::Map<Aws::String, bool>& value) { SetResponseParameters(value); return *this;}
126 
136  inline PutMethodResponseResult& WithResponseParameters(Aws::Map<Aws::String, bool>&& value) { SetResponseParameters(value); return *this;}
137 
147  inline PutMethodResponseResult& AddResponseParameters(const Aws::String& key, bool value) { m_responseParameters[key] = value; return *this; }
148 
158  inline PutMethodResponseResult& AddResponseParameters(Aws::String&& key, bool value) { m_responseParameters[key] = value; return *this; }
159 
169  inline PutMethodResponseResult& AddResponseParameters(const char* key, bool value) { m_responseParameters[key] = value; return *this; }
170 
176  inline const Aws::Map<Aws::String, Aws::String>& GetResponseModels() const{ return m_responseModels; }
177 
183  inline void SetResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { m_responseModels = value; }
184 
190  inline void SetResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { m_responseModels = value; }
191 
197  inline PutMethodResponseResult& WithResponseModels(const Aws::Map<Aws::String, Aws::String>& value) { SetResponseModels(value); return *this;}
198 
204  inline PutMethodResponseResult& WithResponseModels(Aws::Map<Aws::String, Aws::String>&& value) { SetResponseModels(value); return *this;}
205 
211  inline PutMethodResponseResult& AddResponseModels(const Aws::String& key, const Aws::String& value) { m_responseModels[key] = value; return *this; }
212 
218  inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, const Aws::String& value) { m_responseModels[key] = value; return *this; }
219 
225  inline PutMethodResponseResult& AddResponseModels(const Aws::String& key, Aws::String&& value) { m_responseModels[key] = value; return *this; }
226 
232  inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, Aws::String&& value) { m_responseModels[key] = value; return *this; }
233 
239  inline PutMethodResponseResult& AddResponseModels(const char* key, Aws::String&& value) { m_responseModels[key] = value; return *this; }
240 
246  inline PutMethodResponseResult& AddResponseModels(Aws::String&& key, const char* value) { m_responseModels[key] = value; return *this; }
247 
253  inline PutMethodResponseResult& AddResponseModels(const char* key, const char* value) { m_responseModels[key] = value; return *this; }
254 
255  private:
256  Aws::String m_statusCode;
257  Aws::Map<Aws::String, bool> m_responseParameters;
258  Aws::Map<Aws::String, Aws::String> m_responseModels;
259  };
260 
261 } // namespace Model
262 } // namespace APIGateway
263 } // namespace Aws
PutMethodResponseResult & WithResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, bool > & GetResponseParameters() const
const Aws::Map< Aws::String, Aws::String > & GetResponseModels() const
void SetResponseModels(Aws::Map< Aws::String, Aws::String > &&value)
PutMethodResponseResult & WithStatusCode(const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
PutMethodResponseResult & WithResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseResult & AddResponseModels(Aws::String &&key, const char *value)
PutMethodResponseResult & WithStatusCode(const char *value)
PutMethodResponseResult & AddResponseModels(Aws::String &&key, const Aws::String &value)
PutMethodResponseResult & WithResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseResult & AddResponseParameters(const char *key, bool value)
PutMethodResponseResult & WithStatusCode(Aws::String &&value)
PutMethodResponseResult & WithResponseParameters(Aws::Map< Aws::String, bool > &&value)
void SetResponseParameters(Aws::Map< Aws::String, bool > &&value)
PutMethodResponseResult & AddResponseParameters(const Aws::String &key, bool value)
PutMethodResponseResult & AddResponseModels(const char *key, const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetResponseModels(const Aws::Map< Aws::String, Aws::String > &value)
PutMethodResponseResult & AddResponseParameters(Aws::String &&key, bool value)
#define AWS_APIGATEWAY_API
PutMethodResponseResult & AddResponseModels(Aws::String &&key, Aws::String &&value)
void SetResponseParameters(const Aws::Map< Aws::String, bool > &value)
PutMethodResponseResult & AddResponseModels(const Aws::String &key, Aws::String &&value)
JSON (JavaScript Object Notation).
PutMethodResponseResult & AddResponseModels(const Aws::String &key, const Aws::String &value)
PutMethodResponseResult & AddResponseModels(const char *key, Aws::String &&value)