AWS SDK for C++  0.12.9
AWS SDK for C++
PutRestApiRequest.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
21 #include <aws/core/utils/Array.h>
22 
23 namespace Aws
24 {
25 namespace Http
26 {
27  class URI;
28 } //namespace Http
29 namespace APIGateway
30 {
31 namespace Model
32 {
33 
39  {
40  public:
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
47  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
48 
52  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 
57  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
58 
62  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
63 
67  inline PutRestApiRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
68 
72  inline PutRestApiRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
73 
77  inline PutRestApiRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
78 
83  inline const PutMode& GetMode() const{ return m_mode; }
84 
89  inline void SetMode(const PutMode& value) { m_modeHasBeenSet = true; m_mode = value; }
90 
95  inline void SetMode(PutMode&& value) { m_modeHasBeenSet = true; m_mode = value; }
96 
101  inline PutRestApiRequest& WithMode(const PutMode& value) { SetMode(value); return *this;}
102 
107  inline PutRestApiRequest& WithMode(PutMode&& value) { SetMode(value); return *this;}
108 
114  inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
115 
121  inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
122 
128  inline PutRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
129 
133  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
134 
138  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
139 
143  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
144 
148  inline PutRestApiRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
149 
153  inline PutRestApiRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(value); return *this;}
154 
158  inline PutRestApiRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
159 
163  inline PutRestApiRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
164 
168  inline PutRestApiRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
169 
173  inline PutRestApiRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
174 
178  inline PutRestApiRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
179 
183  inline PutRestApiRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
184 
188  inline PutRestApiRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
189 
190  private:
191  Aws::String m_restApiId;
192  bool m_restApiIdHasBeenSet;
193  PutMode m_mode;
194  bool m_modeHasBeenSet;
195  bool m_failOnWarnings;
196  bool m_failOnWarningsHasBeenSet;
198  bool m_parametersHasBeenSet;
199  };
200 
201 } // namespace Model
202 } // namespace APIGateway
203 } // namespace Aws
PutRestApiRequest & AddParameters(Aws::String &&key, const Aws::String &value)
PutRestApiRequest & WithRestApiId(Aws::String &&value)
PutRestApiRequest & AddParameters(const Aws::String &key, Aws::String &&value)
PutRestApiRequest & WithRestApiId(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
PutRestApiRequest & WithMode(const PutMode &value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
PutRestApiRequest & AddParameters(const char *key, Aws::String &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
PutRestApiRequest & AddParameters(Aws::String &&key, Aws::String &&value)
PutRestApiRequest & WithFailOnWarnings(bool value)
PutRestApiRequest & AddParameters(Aws::String &&key, const char *value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
PutRestApiRequest & AddParameters(const char *key, const char *value)
const Aws::String & GetRestApiId() const
PutRestApiRequest & AddParameters(const Aws::String &key, const Aws::String &value)
PutRestApiRequest & WithRestApiId(const char *value)
PutRestApiRequest & WithMode(PutMode &&value)
PutRestApiRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
PutRestApiRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).