AWS SDK for C++  0.14.3
AWS SDK for C++
TestInvokeMethodResult.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 {
40  {
41  public:
45 
49  inline int GetStatus() const{ return m_status; }
50 
54  inline void SetStatus(int value) { m_status = value; }
55 
59  inline TestInvokeMethodResult& WithStatus(int value) { SetStatus(value); return *this;}
60 
64  inline const Aws::String& GetBody() const{ return m_body; }
65 
69  inline void SetBody(const Aws::String& value) { m_body = value; }
70 
74  inline void SetBody(Aws::String&& value) { m_body = value; }
75 
79  inline void SetBody(const char* value) { m_body.assign(value); }
80 
84  inline TestInvokeMethodResult& WithBody(const Aws::String& value) { SetBody(value); return *this;}
85 
89  inline TestInvokeMethodResult& WithBody(Aws::String&& value) { SetBody(value); return *this;}
90 
94  inline TestInvokeMethodResult& WithBody(const char* value) { SetBody(value); return *this;}
95 
99  inline const Aws::Map<Aws::String, Aws::String>& GetHeaders() const{ return m_headers; }
100 
104  inline void SetHeaders(const Aws::Map<Aws::String, Aws::String>& value) { m_headers = value; }
105 
109  inline void SetHeaders(Aws::Map<Aws::String, Aws::String>&& value) { m_headers = value; }
110 
114  inline TestInvokeMethodResult& WithHeaders(const Aws::Map<Aws::String, Aws::String>& value) { SetHeaders(value); return *this;}
115 
119  inline TestInvokeMethodResult& WithHeaders(Aws::Map<Aws::String, Aws::String>&& value) { SetHeaders(value); return *this;}
120 
124  inline TestInvokeMethodResult& AddHeaders(const Aws::String& key, const Aws::String& value) { m_headers[key] = value; return *this; }
125 
129  inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, const Aws::String& value) { m_headers[key] = value; return *this; }
130 
134  inline TestInvokeMethodResult& AddHeaders(const Aws::String& key, Aws::String&& value) { m_headers[key] = value; return *this; }
135 
139  inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, Aws::String&& value) { m_headers[key] = value; return *this; }
140 
144  inline TestInvokeMethodResult& AddHeaders(const char* key, Aws::String&& value) { m_headers[key] = value; return *this; }
145 
149  inline TestInvokeMethodResult& AddHeaders(Aws::String&& key, const char* value) { m_headers[key] = value; return *this; }
150 
154  inline TestInvokeMethodResult& AddHeaders(const char* key, const char* value) { m_headers[key] = value; return *this; }
155 
159  inline const Aws::String& GetLog() const{ return m_log; }
160 
164  inline void SetLog(const Aws::String& value) { m_log = value; }
165 
169  inline void SetLog(Aws::String&& value) { m_log = value; }
170 
174  inline void SetLog(const char* value) { m_log.assign(value); }
175 
179  inline TestInvokeMethodResult& WithLog(const Aws::String& value) { SetLog(value); return *this;}
180 
184  inline TestInvokeMethodResult& WithLog(Aws::String&& value) { SetLog(value); return *this;}
185 
189  inline TestInvokeMethodResult& WithLog(const char* value) { SetLog(value); return *this;}
190 
194  inline long long GetLatency() const{ return m_latency; }
195 
199  inline void SetLatency(long long value) { m_latency = value; }
200 
204  inline TestInvokeMethodResult& WithLatency(long long value) { SetLatency(value); return *this;}
205 
206  private:
207  int m_status;
208  Aws::String m_body;
210  Aws::String m_log;
211  long long m_latency;
212  };
213 
214 } // namespace Model
215 } // namespace APIGateway
216 } // namespace Aws
TestInvokeMethodResult & WithBody(Aws::String &&value)
TestInvokeMethodResult & WithLatency(long long value)
TestInvokeMethodResult & AddHeaders(Aws::String &&key, const char *value)
TestInvokeMethodResult & AddHeaders(const char *key, const char *value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
TestInvokeMethodResult & WithHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodResult & AddHeaders(Aws::String &&key, const Aws::String &value)
TestInvokeMethodResult & AddHeaders(const Aws::String &key, const Aws::String &value)
void SetHeaders(Aws::Map< Aws::String, Aws::String > &&value)
TestInvokeMethodResult & WithBody(const Aws::String &value)
TestInvokeMethodResult & WithLog(const char *value)
TestInvokeMethodResult & WithHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodResult & AddHeaders(const Aws::String &key, Aws::String &&value)
TestInvokeMethodResult & AddHeaders(const char *key, Aws::String &&value)
TestInvokeMethodResult & WithLog(Aws::String &&value)
TestInvokeMethodResult & WithBody(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
TestInvokeMethodResult & AddHeaders(Aws::String &&key, Aws::String &&value)
void SetHeaders(const Aws::Map< Aws::String, Aws::String > &value)
TestInvokeMethodResult & WithLog(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetHeaders() const
TestInvokeMethodResult & WithStatus(int value)
JSON (JavaScript Object Notation).