AWS SDK for C++  0.12.9
AWS SDK for C++
GetExportRequest.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
20 
21 namespace Aws
22 {
23 namespace Http
24 {
25  class URI;
26 } //namespace Http
27 namespace APIGateway
28 {
29 namespace Model
30 {
31 
36  {
37  public:
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44 
48  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
49 
53  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
54 
58  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
59 
63  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
64 
68  inline GetExportRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
69 
73  inline GetExportRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
74 
78  inline GetExportRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
79 
83  inline const Aws::String& GetStageName() const{ return m_stageName; }
84 
88  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
89 
93  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
94 
98  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
99 
103  inline GetExportRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
104 
108  inline GetExportRequest& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
109 
113  inline GetExportRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
114 
118  inline const Aws::String& GetExportType() const{ return m_exportType; }
119 
123  inline void SetExportType(const Aws::String& value) { m_exportTypeHasBeenSet = true; m_exportType = value; }
124 
128  inline void SetExportType(Aws::String&& value) { m_exportTypeHasBeenSet = true; m_exportType = value; }
129 
133  inline void SetExportType(const char* value) { m_exportTypeHasBeenSet = true; m_exportType.assign(value); }
134 
138  inline GetExportRequest& WithExportType(const Aws::String& value) { SetExportType(value); return *this;}
139 
143  inline GetExportRequest& WithExportType(Aws::String&& value) { SetExportType(value); return *this;}
144 
148  inline GetExportRequest& WithExportType(const char* value) { SetExportType(value); return *this;}
149 
158  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
159 
168  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
169 
178  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
179 
188  inline GetExportRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
189 
198  inline GetExportRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(value); return *this;}
199 
208  inline GetExportRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
209 
218  inline GetExportRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
219 
228  inline GetExportRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
229 
238  inline GetExportRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
239 
248  inline GetExportRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
249 
258  inline GetExportRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
259 
268  inline GetExportRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
269 
276  inline const Aws::String& GetAccepts() const{ return m_accepts; }
277 
284  inline void SetAccepts(const Aws::String& value) { m_acceptsHasBeenSet = true; m_accepts = value; }
285 
292  inline void SetAccepts(Aws::String&& value) { m_acceptsHasBeenSet = true; m_accepts = value; }
293 
300  inline void SetAccepts(const char* value) { m_acceptsHasBeenSet = true; m_accepts.assign(value); }
301 
308  inline GetExportRequest& WithAccepts(const Aws::String& value) { SetAccepts(value); return *this;}
309 
316  inline GetExportRequest& WithAccepts(Aws::String&& value) { SetAccepts(value); return *this;}
317 
324  inline GetExportRequest& WithAccepts(const char* value) { SetAccepts(value); return *this;}
325 
326  private:
327  Aws::String m_restApiId;
328  bool m_restApiIdHasBeenSet;
329  Aws::String m_stageName;
330  bool m_stageNameHasBeenSet;
331  Aws::String m_exportType;
332  bool m_exportTypeHasBeenSet;
334  bool m_parametersHasBeenSet;
335  Aws::String m_accepts;
336  bool m_acceptsHasBeenSet;
337  };
338 
339 } // namespace Model
340 } // namespace APIGateway
341 } // namespace Aws
GetExportRequest & WithRestApiId(Aws::String &&value)
GetExportRequest & AddParameters(Aws::String &&key, const Aws::String &value)
GetExportRequest & WithAccepts(const Aws::String &value)
GetExportRequest & WithAccepts(Aws::String &&value)
void SetExportType(const Aws::String &value)
const Aws::String & GetAccepts() const
GetExportRequest & WithExportType(Aws::String &&value)
GetExportRequest & WithStageName(const Aws::String &value)
GetExportRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
GetExportRequest & WithExportType(const char *value)
void SetAccepts(const Aws::String &value)
GetExportRequest & WithExportType(const Aws::String &value)
GetExportRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetExportRequest & AddParameters(const Aws::String &key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
GetExportRequest & AddParameters(const Aws::String &key, Aws::String &&value)
GetExportRequest & WithAccepts(const char *value)
const Aws::String & GetExportType() const
GetExportRequest & AddParameters(const char *key, Aws::String &&value)
const Aws::String & GetRestApiId() const
void SetRestApiId(Aws::String &&value)
GetExportRequest & WithRestApiId(const Aws::String &value)
GetExportRequest & WithStageName(const char *value)
GetExportRequest & WithRestApiId(const char *value)
void SetStageName(Aws::String &&value)
void SetRestApiId(const Aws::String &value)
void SetStageName(const Aws::String &value)
GetExportRequest & AddParameters(const char *key, const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetExportRequest & WithStageName(Aws::String &&value)
#define AWS_APIGATEWAY_API
GetExportRequest & AddParameters(Aws::String &&key, Aws::String &&value)
GetExportRequest & AddParameters(Aws::String &&key, const char *value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetStageName() const
JSON (JavaScript Object Notation).
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)