AWS SDK for C++  1.8.71
AWS SDK for C++
ImportRestApiRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace APIGateway
21 {
22 namespace Model
23 {
24 
32  {
33  public:
35 
36  // Service request name is the Operation name which will send this request out,
37  // each operation should has unique request name, so that we can get operation's name from this request.
38  // Note: this is not true for response, multiple operations may have the same response name,
39  // so we can not get operation's name from response.
40  inline virtual const char* GetServiceRequestName() const override { return "ImportRestApi"; }
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
50  inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
51 
57  inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
58 
64  inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
65 
71  inline ImportRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
72 
73 
94  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
95 
116  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
117 
138  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
139 
160  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
161 
182  inline ImportRestApiRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
183 
204  inline ImportRestApiRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
205 
226  inline ImportRestApiRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
227 
248  inline ImportRestApiRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
249 
270  inline ImportRestApiRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
271 
292  inline ImportRestApiRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
293 
314  inline ImportRestApiRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
315 
336  inline ImportRestApiRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
337 
358  inline ImportRestApiRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
359 
360  private:
361 
362  bool m_failOnWarnings;
363  bool m_failOnWarningsHasBeenSet;
364 
366  bool m_parametersHasBeenSet;
367 
368  };
369 
370 } // namespace Model
371 } // namespace APIGateway
372 } // namespace Aws
ImportRestApiRequest & AddParameters(const char *key, Aws::String &&value)
ImportRestApiRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
ImportRestApiRequest & AddParameters(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ImportRestApiRequest & AddParameters(Aws::String &&key, const char *value)
ImportRestApiRequest & AddParameters(const Aws::String &key, Aws::String &&value)
ImportRestApiRequest & AddParameters(const char *key, const char *value)
ImportRestApiRequest & AddParameters(Aws::String &&key, Aws::String &&value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
ImportRestApiRequest & AddParameters(Aws::String &&key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
ImportRestApiRequest & WithFailOnWarnings(bool value)
ImportRestApiRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)