AWS SDK for C++  1.9.20
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:
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
Aws::APIGateway::Model::GetSdkRequest::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetSdkRequest.h:235
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(const char *key, const char *value)
Definition: GetSdkRequest.h:352
Aws::APIGateway::Model::GetSdkRequest::WithParameters
GetSdkRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetSdkRequest.h:248
Aws::APIGateway::Model::GetSdkRequest::SetSdkType
void SetSdkType(const Aws::String &value)
Definition: GetSdkRequest.h:147
Aws::APIGateway::Model::GetSdkRequest::WithSdkType
GetSdkRequest & WithSdkType(const Aws::String &value)
Definition: GetSdkRequest.h:168
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::GetSdkRequest::GetSdkType
const Aws::String & GetSdkType() const
Definition: GetSdkRequest.h:133
Aws::APIGateway::Model::GetSdkRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: GetSdkRequest.h:59
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::GetSdkRequest::SetStageName
void SetStageName(const Aws::String &value)
Definition: GetSdkRequest.h:100
Aws::APIGateway::Model::GetSdkRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: GetSdkRequest.h:209
Aws::APIGateway::Model::GetSdkRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: GetSdkRequest.h:49
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(const Aws::String &key, Aws::String &&value)
Definition: GetSdkRequest.h:300
Aws::APIGateway::Model::GetSdkRequest::GetSdkRequest
GetSdkRequest()
APIGateway_EXPORTS.h
Aws::APIGateway::Model::GetSdkRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetSdkRequest.h:39
Aws::APIGateway::Model::GetSdkRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: GetSdkRequest.h:69
Aws::APIGateway::Model::GetSdkRequest::WithRestApiId
GetSdkRequest & WithRestApiId(const char *value)
Definition: GetSdkRequest.h:84
Aws::APIGateway::Model::GetSdkRequest::WithRestApiId
GetSdkRequest & WithRestApiId(Aws::String &&value)
Definition: GetSdkRequest.h:79
APIGatewayRequest.h
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(Aws::String &&key, const char *value)
Definition: GetSdkRequest.h:339
Aws::APIGateway::Model::GetSdkRequest::WithStageName
GetSdkRequest & WithStageName(Aws::String &&value)
Definition: GetSdkRequest.h:120
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(const char *key, Aws::String &&value)
Definition: GetSdkRequest.h:326
Aws::APIGateway::Model::GetSdkRequest::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: GetSdkRequest.h:196
Aws::APIGateway::Model::GetSdkRequest::SdkTypeHasBeenSet
bool SdkTypeHasBeenSet() const
Definition: GetSdkRequest.h:140
Aws::APIGateway::Model::GetSdkRequest::GetStageName
const Aws::String & GetStageName() const
Definition: GetSdkRequest.h:90
Aws::APIGateway::Model::GetSdkRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::APIGateway::Model::GetSdkRequest::WithSdkType
GetSdkRequest & WithSdkType(const char *value)
Definition: GetSdkRequest.h:182
Aws::APIGateway::Model::GetSdkRequest::WithParameters
GetSdkRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: GetSdkRequest.h:261
Aws::APIGateway::Model::GetSdkRequest::SetStageName
void SetStageName(const char *value)
Definition: GetSdkRequest.h:110
AWSString.h
Aws::APIGateway::Model::GetSdkRequest::WithRestApiId
GetSdkRequest & WithRestApiId(const Aws::String &value)
Definition: GetSdkRequest.h:74
Aws::APIGateway::Model::GetSdkRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: GetSdkRequest.h:313
Aws::APIGateway::Model::GetSdkRequest::WithSdkType
GetSdkRequest & WithSdkType(Aws::String &&value)
Definition: GetSdkRequest.h:175
Aws::APIGateway::Model::GetSdkRequest
Definition: GetSdkRequest.h:31
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::GetSdkRequest::SetSdkType
void SetSdkType(Aws::String &&value)
Definition: GetSdkRequest.h:154
Aws::APIGateway::Model::GetSdkRequest::StageNameHasBeenSet
bool StageNameHasBeenSet() const
Definition: GetSdkRequest.h:95
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: GetSdkRequest.h:274
Aws::APIGateway::Model::GetSdkRequest::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: GetSdkRequest.h:222
Aws::APIGateway::Model::GetSdkRequest::WithStageName
GetSdkRequest & WithStageName(const char *value)
Definition: GetSdkRequest.h:125
Aws::APIGateway::Model::GetSdkRequest::SetSdkType
void SetSdkType(const char *value)
Definition: GetSdkRequest.h:161
Aws::APIGateway::Model::GetSdkRequest::AddParameters
GetSdkRequest & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: GetSdkRequest.h:287
Aws::APIGateway::APIGatewayRequest
Definition: APIGatewayRequest.h:18
AWSMap.h
Aws::APIGateway::Model::GetSdkRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: GetSdkRequest.h:54
Aws::APIGateway::Model::GetSdkRequest::SetStageName
void SetStageName(Aws::String &&value)
Definition: GetSdkRequest.h:105
Aws::APIGateway::Model::GetSdkRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: GetSdkRequest.h:64
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::APIGateway::Model::GetSdkRequest::WithStageName
GetSdkRequest & WithStageName(const Aws::String &value)
Definition: GetSdkRequest.h:115