AWS SDK for C++  0.12.9
AWS SDK for C++
GetSdkRequest.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:
38  GetSdkRequest();
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
46  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
47 
51  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
52 
56  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
57 
61  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
62 
66  inline GetSdkRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
67 
71  inline GetSdkRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(value); return *this;}
72 
76  inline GetSdkRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
77 
81  inline const Aws::String& GetStageName() const{ return m_stageName; }
82 
86  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
87 
91  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
92 
96  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
97 
101  inline GetSdkRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
102 
106  inline GetSdkRequest& WithStageName(Aws::String&& value) { SetStageName(value); return *this;}
107 
111  inline GetSdkRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
112 
117  inline const Aws::String& GetSdkType() const{ return m_sdkType; }
118 
123  inline void SetSdkType(const Aws::String& value) { m_sdkTypeHasBeenSet = true; m_sdkType = value; }
124 
129  inline void SetSdkType(Aws::String&& value) { m_sdkTypeHasBeenSet = true; m_sdkType = value; }
130 
135  inline void SetSdkType(const char* value) { m_sdkTypeHasBeenSet = true; m_sdkType.assign(value); }
136 
141  inline GetSdkRequest& WithSdkType(const Aws::String& value) { SetSdkType(value); return *this;}
142 
147  inline GetSdkRequest& WithSdkType(Aws::String&& value) { SetSdkType(value); return *this;}
148 
153  inline GetSdkRequest& WithSdkType(const char* value) { SetSdkType(value); return *this;}
154 
162  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
163 
171  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
172 
180  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
181 
189  inline GetSdkRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
190 
198  inline GetSdkRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(value); return *this;}
199 
207  inline GetSdkRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
208 
216  inline GetSdkRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
217 
225  inline GetSdkRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
226 
234  inline GetSdkRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
235 
243  inline GetSdkRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
244 
252  inline GetSdkRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
253 
261  inline GetSdkRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters[key] = value; return *this; }
262 
263  private:
264  Aws::String m_restApiId;
265  bool m_restApiIdHasBeenSet;
266  Aws::String m_stageName;
267  bool m_stageNameHasBeenSet;
268  Aws::String m_sdkType;
269  bool m_sdkTypeHasBeenSet;
271  bool m_parametersHasBeenSet;
272  };
273 
274 } // namespace Model
275 } // namespace APIGateway
276 } // namespace Aws
void SetStageName(Aws::String &&value)
Definition: GetSdkRequest.h:91
GetSdkRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetRestApiId() const
Definition: GetSdkRequest.h:46
GetSdkRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
GetSdkRequest & WithStageName(Aws::String &&value)
void SetSdkType(const Aws::String &value)
GetSdkRequest & AddParameters(Aws::String &&key, Aws::String &&value)
void SetSdkType(Aws::String &&value)
GetSdkRequest & WithRestApiId(Aws::String &&value)
Definition: GetSdkRequest.h:71
GetSdkRequest & AddParameters(Aws::String &&key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetSdkRequest & WithSdkType(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
Definition: GetSdkRequest.h:51
GetSdkRequest & AddParameters(const Aws::String &key, const Aws::String &value)
GetSdkRequest & WithStageName(const Aws::String &value)
void SetSdkType(const char *value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
GetSdkRequest & WithStageName(const char *value)
GetSdkRequest & WithRestApiId(const Aws::String &value)
Definition: GetSdkRequest.h:66
GetSdkRequest & AddParameters(const char *key, const char *value)
GetSdkRequest & AddParameters(Aws::String &&key, const char *value)
void SetStageName(const Aws::String &value)
Definition: GetSdkRequest.h:86
const Aws::String & GetStageName() const
Definition: GetSdkRequest.h:81
GetSdkRequest & AddParameters(const char *key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetRestApiId(const char *value)
Definition: GetSdkRequest.h:61
GetSdkRequest & AddParameters(const Aws::String &key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetSdkRequest & WithRestApiId(const char *value)
Definition: GetSdkRequest.h:76
#define AWS_APIGATEWAY_API
GetSdkRequest & WithSdkType(Aws::String &&value)
void SetStageName(const char *value)
Definition: GetSdkRequest.h:96
const Aws::String & GetSdkType() const
JSON (JavaScript Object Notation).
void SetRestApiId(Aws::String &&value)
Definition: GetSdkRequest.h:56
GetSdkRequest & WithSdkType(const char *value)