AWS SDK for C++  0.12.9
AWS SDK for C++
ImportRestApiRequest.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 #include <aws/core/utils/Array.h>
21 
22 namespace Aws
23 {
24 namespace Http
25 {
26  class URI;
27 } //namespace Http
28 namespace APIGateway
29 {
30 namespace Model
31 {
32 
38  {
39  public:
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
48  inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
49 
55  inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
56 
62  inline ImportRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
63 
67  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
68 
72  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
73 
77  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
78 
82  inline ImportRestApiRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
83 
87  inline ImportRestApiRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(value); return *this;}
88 
92  inline ImportRestApiRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
93 
97  inline ImportRestApiRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
98 
102  inline ImportRestApiRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
103 
107  inline ImportRestApiRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
108 
112  inline ImportRestApiRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
113 
117  inline ImportRestApiRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
118 
122  inline ImportRestApiRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
123 
124  private:
125  bool m_failOnWarnings;
126  bool m_failOnWarningsHasBeenSet;
128  bool m_parametersHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace APIGateway
133 } // 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:28
ImportRestApiRequest & AddParameters(const Aws::String &key, const Aws::String &value)
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)
JSON (JavaScript Object Notation).