AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRestApiRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGateway_EXPORTS.h>
8#include <aws/apigateway/APIGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/apigateway/model/PutMode.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/Array.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace APIGateway
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APIGATEWAY_API PutRestApiRequest();
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 AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
50 inline const Aws::String& GetRestApiId() const{ return m_restApiId; }
51 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
52 inline void SetRestApiId(const Aws::String& value) { m_restApiIdHasBeenSet = true; m_restApiId = value; }
53 inline void SetRestApiId(Aws::String&& value) { m_restApiIdHasBeenSet = true; m_restApiId = std::move(value); }
54 inline void SetRestApiId(const char* value) { m_restApiIdHasBeenSet = true; m_restApiId.assign(value); }
55 inline PutRestApiRequest& WithRestApiId(const Aws::String& value) { SetRestApiId(value); return *this;}
56 inline PutRestApiRequest& WithRestApiId(Aws::String&& value) { SetRestApiId(std::move(value)); return *this;}
57 inline PutRestApiRequest& WithRestApiId(const char* value) { SetRestApiId(value); return *this;}
59
61
65 inline const PutMode& GetMode() const{ return m_mode; }
66 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
67 inline void SetMode(const PutMode& value) { m_modeHasBeenSet = true; m_mode = value; }
68 inline void SetMode(PutMode&& value) { m_modeHasBeenSet = true; m_mode = std::move(value); }
69 inline PutRestApiRequest& WithMode(const PutMode& value) { SetMode(value); return *this;}
70 inline PutRestApiRequest& WithMode(PutMode&& value) { SetMode(std::move(value)); return *this;}
72
74
79 inline bool GetFailOnWarnings() const{ return m_failOnWarnings; }
80 inline bool FailOnWarningsHasBeenSet() const { return m_failOnWarningsHasBeenSet; }
81 inline void SetFailOnWarnings(bool value) { m_failOnWarningsHasBeenSet = true; m_failOnWarnings = value; }
82 inline PutRestApiRequest& WithFailOnWarnings(bool value) { SetFailOnWarnings(value); return *this;}
84
86
93 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
94 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
95 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
96 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
98 inline PutRestApiRequest& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
99 inline PutRestApiRequest& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
100 inline PutRestApiRequest& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
101 inline PutRestApiRequest& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
102 inline PutRestApiRequest& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
103 inline PutRestApiRequest& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
104 inline PutRestApiRequest& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
105 inline PutRestApiRequest& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
107 private:
108
109 Aws::String m_restApiId;
110 bool m_restApiIdHasBeenSet = false;
111
112 PutMode m_mode;
113 bool m_modeHasBeenSet = false;
114
115 bool m_failOnWarnings;
116 bool m_failOnWarningsHasBeenSet = false;
117
119 bool m_parametersHasBeenSet = false;
120
121 };
122
123} // namespace Model
124} // namespace APIGateway
125} // namespace Aws
PutRestApiRequest & WithRestApiId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
PutRestApiRequest & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
PutRestApiRequest & WithRestApiId(const Aws::String &value)
PutRestApiRequest & AddParameters(Aws::String &&key, const Aws::String &value)
PutRestApiRequest & AddParameters(const Aws::String &key, const Aws::String &value)
PutRestApiRequest & WithFailOnWarnings(bool value)
PutRestApiRequest & AddParameters(Aws::String &&key, Aws::String &&value)
PutRestApiRequest & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutRestApiRequest & AddParameters(const char *key, const char *value)
PutRestApiRequest & AddParameters(const char *key, Aws::String &&value)
void SetRestApiId(const Aws::String &value)
AWS_APIGATEWAY_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
PutRestApiRequest & WithRestApiId(Aws::String &&value)
PutRestApiRequest & WithMode(const PutMode &value)
PutRestApiRequest & WithMode(PutMode &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
PutRestApiRequest & AddParameters(const Aws::String &key, Aws::String &&value)
PutRestApiRequest & AddParameters(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String