AWS SDK for C++  1.8.71
AWS SDK for C++
GetSdkRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace APIGateway
20 {
21 namespace Model
22 {
23 
31  {
32  public:
33  GetSdkRequest();
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "GetSdk"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
49  inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
50 
54  inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
55 
59  inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
60 
64  inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
65 
69  inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
70 
74  inline GetSdkRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
75 
79  inline GetSdkRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
80 
84  inline GetSdkRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
85 
86 
90  inline const Aws::String& GetStageName() const{ return m_stageName; }
91 
95  inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
96 
100  inline void SetStageName(const Aws::String& value) { m_stageNameHasBeenSet = true; m_stageName = value; }
101 
105  inline void SetStageName(Aws::String&& value) { m_stageNameHasBeenSet = true; m_stageName = std::move(value); }
106 
110  inline void SetStageName(const char* value) { m_stageNameHasBeenSet = true; m_stageName.assign(value); }
111 
115  inline GetSdkRequest& WithStageName(const Aws::String& value) { SetStageName(value); return *this;}
116 
120  inline GetSdkRequest& WithStageName(Aws::String&& value) { SetStageName(std::move(value)); return *this;}
121 
125  inline GetSdkRequest& WithStageName(const char* value) { SetStageName(value); return *this;}
126 
127 
133  inline const Aws::String& GetSdkType() const{ return m_sdkType; }
134 
140  inline bool SdkTypeHasBeenSet() const { return m_sdkTypeHasBeenSet; }
141 
147  inline void SetSdkType(const Aws::String& value) { m_sdkTypeHasBeenSet = true; m_sdkType = value; }
148 
154  inline void SetSdkType(Aws::String&& value) { m_sdkTypeHasBeenSet = true; m_sdkType = std::move(value); }
155 
161  inline void SetSdkType(const char* value) { m_sdkTypeHasBeenSet = true; m_sdkType.assign(value); }
162 
168  inline GetSdkRequest& WithSdkType(const Aws::String& value) { SetSdkType(value); return *this;}
169 
175  inline GetSdkRequest& WithSdkType(Aws::String&& value) { SetSdkType(std::move(value)); return *this;}
176 
182  inline GetSdkRequest& WithSdkType(const char* value) { SetSdkType(value); return *this;}
183 
184 
196  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
197 
209  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
210 
222  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
223 
235  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
236 
248  inline GetSdkRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
249 
261  inline GetSdkRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
262 
274  inline GetSdkRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
275 
287  inline GetSdkRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
288 
300  inline GetSdkRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
301 
313  inline GetSdkRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
314 
326  inline GetSdkRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
327 
339  inline GetSdkRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
340 
352  inline GetSdkRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
353 
354  private:
355 
356  Aws::String m_restApiId;
357  bool m_restApiIdHasBeenSet;
358 
359  Aws::String m_stageName;
360  bool m_stageNameHasBeenSet;
361 
362  Aws::String m_sdkType;
363  bool m_sdkTypeHasBeenSet;
364 
366  bool m_parametersHasBeenSet;
367  };
368 
369 } // namespace Model
370 } // namespace APIGateway
371 } // namespace Aws
void SetStageName(Aws::String &&value)
GetSdkRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
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:79
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:19
GetSdkRequest & WithSdkType(const Aws::String &value)
void SetRestApiId(const Aws::String &value)
Definition: GetSdkRequest.h:59
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)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
GetSdkRequest & WithStageName(const char *value)
GetSdkRequest & WithRestApiId(const Aws::String &value)
Definition: GetSdkRequest.h:74
GetSdkRequest & AddParameters(const char *key, const char *value)
GetSdkRequest & AddParameters(Aws::String &&key, const char *value)
void SetStageName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
Definition: GetSdkRequest.h:39
GetSdkRequest & AddParameters(const char *key, Aws::String &&value)
void SetRestApiId(const char *value)
Definition: GetSdkRequest.h:69
const Aws::String & GetRestApiId() const
Definition: GetSdkRequest.h:49
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:84
const Aws::String & GetSdkType() const
#define AWS_APIGATEWAY_API
GetSdkRequest & WithSdkType(Aws::String &&value)
void SetStageName(const char *value)
const Aws::String & GetStageName() const
Definition: GetSdkRequest.h:90
void SetRestApiId(Aws::String &&value)
Definition: GetSdkRequest.h:64
GetSdkRequest & WithSdkType(const char *value)