AWS SDK for C++

AWS SDK for C++ Version 1.11.887

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeployRequest.h>
8#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
9#include <aws/codedeploy/model/AlarmConfiguration.h>
10#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
11#include <aws/codedeploy/model/DeploymentMode.h>
12#include <aws/codedeploy/model/FileExistsBehavior.h>
13#include <aws/codedeploy/model/RevisionLocation.h>
14#include <aws/codedeploy/model/TargetInstances.h>
15#include <aws/core/utils/memory/stl/AWSString.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CodeDeploy {
21namespace Model {
22
30 public:
31 AWS_CODEDEPLOY_API CreateDeploymentRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
38
39 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
40
42
44
48 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
49 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
50 template <typename ApplicationNameT = Aws::String>
51 void SetApplicationName(ApplicationNameT&& value) {
52 m_applicationNameHasBeenSet = true;
53 m_applicationName = std::forward<ApplicationNameT>(value);
54 }
55 template <typename ApplicationNameT = Aws::String>
56 CreateDeploymentRequest& WithApplicationName(ApplicationNameT&& value) {
57 SetApplicationName(std::forward<ApplicationNameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetDeploymentGroupName() const { return m_deploymentGroupName; }
67 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
68 template <typename DeploymentGroupNameT = Aws::String>
69 void SetDeploymentGroupName(DeploymentGroupNameT&& value) {
70 m_deploymentGroupNameHasBeenSet = true;
71 m_deploymentGroupName = std::forward<DeploymentGroupNameT>(value);
72 }
73 template <typename DeploymentGroupNameT = Aws::String>
74 CreateDeploymentRequest& WithDeploymentGroupName(DeploymentGroupNameT&& value) {
75 SetDeploymentGroupName(std::forward<DeploymentGroupNameT>(value));
76 return *this;
77 }
79
81
84 inline const RevisionLocation& GetRevision() const { return m_revision; }
85 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
86 template <typename RevisionT = RevisionLocation>
87 void SetRevision(RevisionT&& value) {
88 m_revisionHasBeenSet = true;
89 m_revision = std::forward<RevisionT>(value);
90 }
91 template <typename RevisionT = RevisionLocation>
93 SetRevision(std::forward<RevisionT>(value));
94 return *this;
95 }
97
99
106 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
107 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
108 template <typename DeploymentConfigNameT = Aws::String>
109 void SetDeploymentConfigName(DeploymentConfigNameT&& value) {
110 m_deploymentConfigNameHasBeenSet = true;
111 m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value);
112 }
113 template <typename DeploymentConfigNameT = Aws::String>
114 CreateDeploymentRequest& WithDeploymentConfigName(DeploymentConfigNameT&& value) {
115 SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value));
116 return *this;
117 }
119
121
124 inline const Aws::String& GetDescription() const { return m_description; }
125 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
126 template <typename DescriptionT = Aws::String>
127 void SetDescription(DescriptionT&& value) {
128 m_descriptionHasBeenSet = true;
129 m_description = std::forward<DescriptionT>(value);
130 }
131 template <typename DescriptionT = Aws::String>
133 SetDescription(std::forward<DescriptionT>(value));
134 return *this;
135 }
137
139
163 inline bool GetIgnoreApplicationStopFailures() const { return m_ignoreApplicationStopFailures; }
164 inline bool IgnoreApplicationStopFailuresHasBeenSet() const { return m_ignoreApplicationStopFailuresHasBeenSet; }
165 inline void SetIgnoreApplicationStopFailures(bool value) {
166 m_ignoreApplicationStopFailuresHasBeenSet = true;
167 m_ignoreApplicationStopFailures = value;
168 }
171 return *this;
172 }
174
176
180 inline const TargetInstances& GetTargetInstances() const { return m_targetInstances; }
181 inline bool TargetInstancesHasBeenSet() const { return m_targetInstancesHasBeenSet; }
182 template <typename TargetInstancesT = TargetInstances>
183 void SetTargetInstances(TargetInstancesT&& value) {
184 m_targetInstancesHasBeenSet = true;
185 m_targetInstances = std::forward<TargetInstancesT>(value);
186 }
187 template <typename TargetInstancesT = TargetInstances>
188 CreateDeploymentRequest& WithTargetInstances(TargetInstancesT&& value) {
189 SetTargetInstances(std::forward<TargetInstancesT>(value));
190 return *this;
191 }
193
195
199 inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
200 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
201 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
202 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
203 m_autoRollbackConfigurationHasBeenSet = true;
204 m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value);
205 }
206 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
207 CreateDeploymentRequest& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
208 SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value));
209 return *this;
210 }
212
214
218 inline bool GetUpdateOutdatedInstancesOnly() const { return m_updateOutdatedInstancesOnly; }
219 inline bool UpdateOutdatedInstancesOnlyHasBeenSet() const { return m_updateOutdatedInstancesOnlyHasBeenSet; }
220 inline void SetUpdateOutdatedInstancesOnly(bool value) {
221 m_updateOutdatedInstancesOnlyHasBeenSet = true;
222 m_updateOutdatedInstancesOnly = value;
223 }
226 return *this;
227 }
229
231
242 inline FileExistsBehavior GetFileExistsBehavior() const { return m_fileExistsBehavior; }
243 inline bool FileExistsBehaviorHasBeenSet() const { return m_fileExistsBehaviorHasBeenSet; }
245 m_fileExistsBehaviorHasBeenSet = true;
246 m_fileExistsBehavior = value;
247 }
250 return *this;
251 }
253
255
261 inline DeploymentMode GetDeploymentMode() const { return m_deploymentMode; }
262 inline bool DeploymentModeHasBeenSet() const { return m_deploymentModeHasBeenSet; }
264 m_deploymentModeHasBeenSet = true;
265 m_deploymentMode = value;
266 }
268 SetDeploymentMode(value);
269 return *this;
270 }
272
274
289 inline const AlarmConfiguration& GetOverrideAlarmConfiguration() const { return m_overrideAlarmConfiguration; }
290 inline bool OverrideAlarmConfigurationHasBeenSet() const { return m_overrideAlarmConfigurationHasBeenSet; }
291 template <typename OverrideAlarmConfigurationT = AlarmConfiguration>
292 void SetOverrideAlarmConfiguration(OverrideAlarmConfigurationT&& value) {
293 m_overrideAlarmConfigurationHasBeenSet = true;
294 m_overrideAlarmConfiguration = std::forward<OverrideAlarmConfigurationT>(value);
295 }
296 template <typename OverrideAlarmConfigurationT = AlarmConfiguration>
297 CreateDeploymentRequest& WithOverrideAlarmConfiguration(OverrideAlarmConfigurationT&& value) {
298 SetOverrideAlarmConfiguration(std::forward<OverrideAlarmConfigurationT>(value));
299 return *this;
300 }
302 private:
303 Aws::String m_applicationName;
304
305 Aws::String m_deploymentGroupName;
306
307 RevisionLocation m_revision;
308
309 Aws::String m_deploymentConfigName;
310
311 Aws::String m_description;
312
313 bool m_ignoreApplicationStopFailures{false};
314
315 TargetInstances m_targetInstances;
316
317 AutoRollbackConfiguration m_autoRollbackConfiguration;
318
319 bool m_updateOutdatedInstancesOnly{false};
320
322
323 DeploymentMode m_deploymentMode{DeploymentMode::NOT_SET};
324
325 AlarmConfiguration m_overrideAlarmConfiguration;
326 bool m_applicationNameHasBeenSet = false;
327 bool m_deploymentGroupNameHasBeenSet = false;
328 bool m_revisionHasBeenSet = false;
329 bool m_deploymentConfigNameHasBeenSet = false;
330 bool m_descriptionHasBeenSet = false;
331 bool m_ignoreApplicationStopFailuresHasBeenSet = false;
332 bool m_targetInstancesHasBeenSet = false;
333 bool m_autoRollbackConfigurationHasBeenSet = false;
334 bool m_updateOutdatedInstancesOnlyHasBeenSet = false;
335 bool m_fileExistsBehaviorHasBeenSet = false;
336 bool m_deploymentModeHasBeenSet = false;
337 bool m_overrideAlarmConfigurationHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace CodeDeploy
342} // namespace Aws
CreateDeploymentRequest & WithRevision(RevisionT &&value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithApplicationName(ApplicationNameT &&value)
CreateDeploymentRequest & WithDescription(DescriptionT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetDeploymentConfigName(DeploymentConfigNameT &&value)
CreateDeploymentRequest & WithAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
CreateDeploymentRequest & WithTargetInstances(TargetInstancesT &&value)
void SetDeploymentGroupName(DeploymentGroupNameT &&value)
AWS_CODEDEPLOY_API CreateDeploymentRequest()=default
const AlarmConfiguration & GetOverrideAlarmConfiguration() const
CreateDeploymentRequest & WithDeploymentMode(DeploymentMode value)
void SetAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
void SetOverrideAlarmConfiguration(OverrideAlarmConfigurationT &&value)
const AutoRollbackConfiguration & GetAutoRollbackConfiguration() const
CreateDeploymentRequest & WithDeploymentConfigName(DeploymentConfigNameT &&value)
CreateDeploymentRequest & WithOverrideAlarmConfiguration(OverrideAlarmConfigurationT &&value)
CreateDeploymentRequest & WithFileExistsBehavior(FileExistsBehavior value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithDeploymentGroupName(DeploymentGroupNameT &&value)
CreateDeploymentRequest & WithIgnoreApplicationStopFailures(bool value)
CreateDeploymentRequest & WithUpdateOutdatedInstancesOnly(bool value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String