AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/apigateway/APIGatewayRequest.h>
8#include <aws/apigateway/APIGateway_EXPORTS.h>
9#include <aws/apigateway/model/CacheClusterSize.h>
10#include <aws/apigateway/model/DeploymentCanarySettings.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace APIGateway {
18namespace Model {
19
27 public:
28 AWS_APIGATEWAY_API CreateDeploymentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
35
36 AWS_APIGATEWAY_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetRestApiId() const { return m_restApiId; }
43 inline bool RestApiIdHasBeenSet() const { return m_restApiIdHasBeenSet; }
44 template <typename RestApiIdT = Aws::String>
45 void SetRestApiId(RestApiIdT&& value) {
46 m_restApiIdHasBeenSet = true;
47 m_restApiId = std::forward<RestApiIdT>(value);
48 }
49 template <typename RestApiIdT = Aws::String>
51 SetRestApiId(std::forward<RestApiIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetStageName() const { return m_stageName; }
61 inline bool StageNameHasBeenSet() const { return m_stageNameHasBeenSet; }
62 template <typename StageNameT = Aws::String>
63 void SetStageName(StageNameT&& value) {
64 m_stageNameHasBeenSet = true;
65 m_stageName = std::forward<StageNameT>(value);
66 }
67 template <typename StageNameT = Aws::String>
69 SetStageName(std::forward<StageNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetStageDescription() const { return m_stageDescription; }
80 inline bool StageDescriptionHasBeenSet() const { return m_stageDescriptionHasBeenSet; }
81 template <typename StageDescriptionT = Aws::String>
82 void SetStageDescription(StageDescriptionT&& value) {
83 m_stageDescriptionHasBeenSet = true;
84 m_stageDescription = std::forward<StageDescriptionT>(value);
85 }
86 template <typename StageDescriptionT = Aws::String>
87 CreateDeploymentRequest& WithStageDescription(StageDescriptionT&& value) {
88 SetStageDescription(std::forward<StageDescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline bool GetCacheClusterEnabled() const { return m_cacheClusterEnabled; }
116 inline bool CacheClusterEnabledHasBeenSet() const { return m_cacheClusterEnabledHasBeenSet; }
117 inline void SetCacheClusterEnabled(bool value) {
118 m_cacheClusterEnabledHasBeenSet = true;
119 m_cacheClusterEnabled = value;
120 }
123 return *this;
124 }
126
128
134 inline CacheClusterSize GetCacheClusterSize() const { return m_cacheClusterSize; }
135 inline bool CacheClusterSizeHasBeenSet() const { return m_cacheClusterSizeHasBeenSet; }
137 m_cacheClusterSizeHasBeenSet = true;
138 m_cacheClusterSize = value;
139 }
141 SetCacheClusterSize(value);
142 return *this;
143 }
145
147
153 inline const Aws::Map<Aws::String, Aws::String>& GetVariables() const { return m_variables; }
154 inline bool VariablesHasBeenSet() const { return m_variablesHasBeenSet; }
155 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
156 void SetVariables(VariablesT&& value) {
157 m_variablesHasBeenSet = true;
158 m_variables = std::forward<VariablesT>(value);
159 }
160 template <typename VariablesT = Aws::Map<Aws::String, Aws::String>>
162 SetVariables(std::forward<VariablesT>(value));
163 return *this;
164 }
165 template <typename VariablesKeyT = Aws::String, typename VariablesValueT = Aws::String>
166 CreateDeploymentRequest& AddVariables(VariablesKeyT&& key, VariablesValueT&& value) {
167 m_variablesHasBeenSet = true;
168 m_variables.emplace(std::forward<VariablesKeyT>(key), std::forward<VariablesValueT>(value));
169 return *this;
170 }
172
174
178 inline const DeploymentCanarySettings& GetCanarySettings() const { return m_canarySettings; }
179 inline bool CanarySettingsHasBeenSet() const { return m_canarySettingsHasBeenSet; }
180 template <typename CanarySettingsT = DeploymentCanarySettings>
181 void SetCanarySettings(CanarySettingsT&& value) {
182 m_canarySettingsHasBeenSet = true;
183 m_canarySettings = std::forward<CanarySettingsT>(value);
184 }
185 template <typename CanarySettingsT = DeploymentCanarySettings>
186 CreateDeploymentRequest& WithCanarySettings(CanarySettingsT&& value) {
187 SetCanarySettings(std::forward<CanarySettingsT>(value));
188 return *this;
189 }
191
193
196 inline bool GetTracingEnabled() const { return m_tracingEnabled; }
197 inline bool TracingEnabledHasBeenSet() const { return m_tracingEnabledHasBeenSet; }
198 inline void SetTracingEnabled(bool value) {
199 m_tracingEnabledHasBeenSet = true;
200 m_tracingEnabled = value;
201 }
203 SetTracingEnabled(value);
204 return *this;
205 }
207 private:
208 Aws::String m_restApiId;
209
210 Aws::String m_stageName;
211
212 Aws::String m_stageDescription;
213
214 Aws::String m_description;
215
216 bool m_cacheClusterEnabled{false};
217
219
221
222 DeploymentCanarySettings m_canarySettings;
223
224 bool m_tracingEnabled{false};
225 bool m_restApiIdHasBeenSet = false;
226 bool m_stageNameHasBeenSet = false;
227 bool m_stageDescriptionHasBeenSet = false;
228 bool m_descriptionHasBeenSet = false;
229 bool m_cacheClusterEnabledHasBeenSet = false;
230 bool m_cacheClusterSizeHasBeenSet = false;
231 bool m_variablesHasBeenSet = false;
232 bool m_canarySettingsHasBeenSet = false;
233 bool m_tracingEnabledHasBeenSet = false;
234};
235
236} // namespace Model
237} // namespace APIGateway
238} // namespace Aws
CreateDeploymentRequest & AddVariables(VariablesKeyT &&key, VariablesValueT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetVariables() const
CreateDeploymentRequest & WithCacheClusterSize(CacheClusterSize value)
CreateDeploymentRequest & WithRestApiId(RestApiIdT &&value)
CreateDeploymentRequest & WithCacheClusterEnabled(bool value)
CreateDeploymentRequest & WithStageDescription(StageDescriptionT &&value)
AWS_APIGATEWAY_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithStageName(StageNameT &&value)
CreateDeploymentRequest & WithCanarySettings(CanarySettingsT &&value)
const DeploymentCanarySettings & GetCanarySettings() const
AWS_APIGATEWAY_API CreateDeploymentRequest()=default
CreateDeploymentRequest & WithTracingEnabled(bool value)
CreateDeploymentRequest & WithVariables(VariablesT &&value)
CreateDeploymentRequest & WithDescription(DescriptionT &&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