AWS SDK for C++  1.9.20
AWS SDK for C++
PutRestApiRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <aws/core/utils/Array.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace Http
18 {
19  class URI;
20 } //namespace Http
21 namespace APIGateway
22 {
23 namespace Model
24 {
25 
33  {
34  public:
36 
37  // Service request name is the Operation name which will send this request out,
38  // each operation should has unique request name, so that we can get operation's name from this request.
39  // Note: this is not true for response, multiple operations may have the same response name,
40  // so we can not get operation's name from response.
41  inline virtual const char* GetServiceRequestName() const override { return "PutRestApi"; }
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 PutRestApiRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
75 
79  inline PutRestApiRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
80 
84  inline PutRestApiRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
85 
86 
91  inline const PutMode& GetMode() const{ return m_mode; }
92 
97  inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
98 
103  inline void SetMode(const PutMode& value) { m_modeHasBeenSet = true; m_mode = value; }
104 
109  inline void SetMode(PutMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
110 
115  inline PutRestApiRequest& WithMode(const PutMode& value) { SetMode(value); return *this;}
116 
121  inline PutRestApiRequest& WithMode(PutMode&& value) { SetMode(std::move(value)); return *this;}
122 
123 
129  inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
130 
136  inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
137 
143  inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
144 
150  inline PutRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
151 
152 
160  inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
161 
169  inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
170 
178  inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
179 
187  inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
188 
196  inline PutRestApiRequest& WithParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetParameters(value); return *this;}
197 
205  inline PutRestApiRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
206 
214  inline PutRestApiRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
215 
223  inline PutRestApiRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
224 
232  inline PutRestApiRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
233 
241  inline PutRestApiRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
242 
250  inline PutRestApiRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
251 
259  inline PutRestApiRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
260 
268  inline PutRestApiRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
269 
270  private:
271 
272  Aws::String m_restApiId;
273  bool m_restApiIdHasBeenSet;
274 
275  PutMode m_mode;
276  bool m_modeHasBeenSet;
277 
278  bool m_failOnWarnings;
279  bool m_failOnWarningsHasBeenSet;
280 
282  bool m_parametersHasBeenSet;
283 
284  };
285 
286 } // namespace Model
287 } // namespace APIGateway
288 } // namespace Aws
Aws::APIGateway::Model::PutMode
PutMode
Definition: PutMode.h:17
PutMode.h
Aws::Http::URI
Definition: URI.h:32
Aws::APIGateway::Model::PutRestApiRequest::SetRestApiId
void SetRestApiId(const char *value)
Definition: PutRestApiRequest.h:69
Aws::APIGateway::Model::PutRestApiRequest::WithRestApiId
PutRestApiRequest & WithRestApiId(const Aws::String &value)
Definition: PutRestApiRequest.h:74
AWS_APIGATEWAY_API
#define AWS_APIGATEWAY_API
Definition: APIGateway_EXPORTS.h:28
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(const char *key, Aws::String &&value)
Definition: PutRestApiRequest.h:250
Aws::APIGateway::Model::PutRestApiRequest::SetMode
void SetMode(const PutMode &value)
Definition: PutRestApiRequest.h:103
Aws::APIGateway::Model::PutRestApiRequest::ModeHasBeenSet
bool ModeHasBeenSet() const
Definition: PutRestApiRequest.h:97
Aws::APIGateway::Model::PutRestApiRequest::GetFailOnWarnings
bool GetFailOnWarnings() const
Definition: PutRestApiRequest.h:129
Aws::APIGateway::Model::PutRestApiRequest::ParametersHasBeenSet
bool ParametersHasBeenSet() const
Definition: PutRestApiRequest.h:169
APIGateway_EXPORTS.h
Aws::APIGateway::Model::PutRestApiRequest::WithFailOnWarnings
PutRestApiRequest & WithFailOnWarnings(bool value)
Definition: PutRestApiRequest.h:150
APIGatewayRequest.h
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(const Aws::String &key, const Aws::String &value)
Definition: PutRestApiRequest.h:214
Aws::APIGateway::Model::PutRestApiRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRestApiRequest.h:41
Aws::APIGateway::Model::PutRestApiRequest::WithRestApiId
PutRestApiRequest & WithRestApiId(const char *value)
Definition: PutRestApiRequest.h:84
Aws::APIGateway::Model::PutRestApiRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::APIGateway::Model::PutRestApiRequest
Definition: PutRestApiRequest.h:33
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(Aws::String &&key, const Aws::String &value)
Definition: PutRestApiRequest.h:223
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(Aws::String &&key, const char *value)
Definition: PutRestApiRequest.h:259
Aws::APIGateway::Model::PutRestApiRequest::WithMode
PutRestApiRequest & WithMode(const PutMode &value)
Definition: PutRestApiRequest.h:115
Aws::APIGateway::Model::PutRestApiRequest::GetRestApiId
const Aws::String & GetRestApiId() const
Definition: PutRestApiRequest.h:49
Aws::APIGateway::Model::PutRestApiRequest::WithRestApiId
PutRestApiRequest & WithRestApiId(Aws::String &&value)
Definition: PutRestApiRequest.h:79
AWSString.h
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(Aws::String &&key, Aws::String &&value)
Definition: PutRestApiRequest.h:241
Aws::APIGateway::Model::PutRestApiRequest::GetMode
const PutMode & GetMode() const
Definition: PutRestApiRequest.h:91
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(const char *key, const char *value)
Definition: PutRestApiRequest.h:268
Aws::APIGateway::Model::PutRestApiRequest::SetMode
void SetMode(PutMode &&value)
Definition: PutRestApiRequest.h:109
Aws::APIGateway::Model::PutRestApiRequest::WithParameters
PutRestApiRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutRestApiRequest.h:196
Aws::APIGateway::Model::PutRestApiRequest::SetParameters
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutRestApiRequest.h:187
Aws::APIGateway::Model::PutRestApiRequest::AddParameters
PutRestApiRequest & AddParameters(const Aws::String &key, Aws::String &&value)
Definition: PutRestApiRequest.h:232
Aws::APIGateway::Model::PutRestApiRequest::SetRestApiId
void SetRestApiId(const Aws::String &value)
Definition: PutRestApiRequest.h:59
Aws::APIGateway::Model::PutRestApiRequest::SetRestApiId
void SetRestApiId(Aws::String &&value)
Definition: PutRestApiRequest.h:64
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::APIGateway::Model::PutRestApiRequest::SetParameters
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
Definition: PutRestApiRequest.h:178
Array.h
Aws::APIGateway::Model::PutRestApiRequest::PutRestApiRequest
PutRestApiRequest()
Aws::APIGateway::Model::PutRestApiRequest::SetFailOnWarnings
void SetFailOnWarnings(bool value)
Definition: PutRestApiRequest.h:143
Aws::APIGateway::Model::PutRestApiRequest::WithParameters
PutRestApiRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
Definition: PutRestApiRequest.h:205
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::APIGateway::Model::PutRestApiRequest::RestApiIdHasBeenSet
bool RestApiIdHasBeenSet() const
Definition: PutRestApiRequest.h:54
Aws::APIGateway::Model::PutRestApiRequest::FailOnWarningsHasBeenSet
bool FailOnWarningsHasBeenSet() const
Definition: PutRestApiRequest.h:136
AWSMap.h
Aws::APIGateway::Model::PutRestApiRequest::GetParameters
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
Definition: PutRestApiRequest.h:160
Aws::APIGateway::Model::PutRestApiRequest::WithMode
PutRestApiRequest & WithMode(PutMode &&value)
Definition: PutRestApiRequest.h:121
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19