AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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/EC2DeploymentOptions.h>
13#include <aws/codedeploy/model/FileExistsBehavior.h>
14#include <aws/codedeploy/model/RevisionLocation.h>
15#include <aws/codedeploy/model/TargetInstances.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17
18#include <utility>
19
20namespace Aws {
21namespace CodeDeploy {
22namespace Model {
23
31 public:
32 AWS_CODEDEPLOY_API CreateDeploymentRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
39
40 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
41
43
45
49 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 template <typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) {
53 m_applicationNameHasBeenSet = true;
54 m_applicationName = std::forward<ApplicationNameT>(value);
55 }
56 template <typename ApplicationNameT = Aws::String>
57 CreateDeploymentRequest& WithApplicationName(ApplicationNameT&& value) {
58 SetApplicationName(std::forward<ApplicationNameT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetDeploymentGroupName() const { return m_deploymentGroupName; }
68 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
69 template <typename DeploymentGroupNameT = Aws::String>
70 void SetDeploymentGroupName(DeploymentGroupNameT&& value) {
71 m_deploymentGroupNameHasBeenSet = true;
72 m_deploymentGroupName = std::forward<DeploymentGroupNameT>(value);
73 }
74 template <typename DeploymentGroupNameT = Aws::String>
75 CreateDeploymentRequest& WithDeploymentGroupName(DeploymentGroupNameT&& value) {
76 SetDeploymentGroupName(std::forward<DeploymentGroupNameT>(value));
77 return *this;
78 }
80
82
85 inline const RevisionLocation& GetRevision() const { return m_revision; }
86 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
87 template <typename RevisionT = RevisionLocation>
88 void SetRevision(RevisionT&& value) {
89 m_revisionHasBeenSet = true;
90 m_revision = std::forward<RevisionT>(value);
91 }
92 template <typename RevisionT = RevisionLocation>
94 SetRevision(std::forward<RevisionT>(value));
95 return *this;
96 }
98
100
107 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
108 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
109 template <typename DeploymentConfigNameT = Aws::String>
110 void SetDeploymentConfigName(DeploymentConfigNameT&& value) {
111 m_deploymentConfigNameHasBeenSet = true;
112 m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value);
113 }
114 template <typename DeploymentConfigNameT = Aws::String>
115 CreateDeploymentRequest& WithDeploymentConfigName(DeploymentConfigNameT&& value) {
116 SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetDescription() const { return m_description; }
126 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
127 template <typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) {
129 m_descriptionHasBeenSet = true;
130 m_description = std::forward<DescriptionT>(value);
131 }
132 template <typename DescriptionT = Aws::String>
134 SetDescription(std::forward<DescriptionT>(value));
135 return *this;
136 }
138
140
164 inline bool GetIgnoreApplicationStopFailures() const { return m_ignoreApplicationStopFailures; }
165 inline bool IgnoreApplicationStopFailuresHasBeenSet() const { return m_ignoreApplicationStopFailuresHasBeenSet; }
166 inline void SetIgnoreApplicationStopFailures(bool value) {
167 m_ignoreApplicationStopFailuresHasBeenSet = true;
168 m_ignoreApplicationStopFailures = value;
169 }
172 return *this;
173 }
175
177
181 inline const TargetInstances& GetTargetInstances() const { return m_targetInstances; }
182 inline bool TargetInstancesHasBeenSet() const { return m_targetInstancesHasBeenSet; }
183 template <typename TargetInstancesT = TargetInstances>
184 void SetTargetInstances(TargetInstancesT&& value) {
185 m_targetInstancesHasBeenSet = true;
186 m_targetInstances = std::forward<TargetInstancesT>(value);
187 }
188 template <typename TargetInstancesT = TargetInstances>
189 CreateDeploymentRequest& WithTargetInstances(TargetInstancesT&& value) {
190 SetTargetInstances(std::forward<TargetInstancesT>(value));
191 return *this;
192 }
194
196
200 inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
201 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
202 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
203 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
204 m_autoRollbackConfigurationHasBeenSet = true;
205 m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value);
206 }
207 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
208 CreateDeploymentRequest& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
209 SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value));
210 return *this;
211 }
213
215
219 inline bool GetUpdateOutdatedInstancesOnly() const { return m_updateOutdatedInstancesOnly; }
220 inline bool UpdateOutdatedInstancesOnlyHasBeenSet() const { return m_updateOutdatedInstancesOnlyHasBeenSet; }
221 inline void SetUpdateOutdatedInstancesOnly(bool value) {
222 m_updateOutdatedInstancesOnlyHasBeenSet = true;
223 m_updateOutdatedInstancesOnly = value;
224 }
227 return *this;
228 }
230
232
243 inline FileExistsBehavior GetFileExistsBehavior() const { return m_fileExistsBehavior; }
244 inline bool FileExistsBehaviorHasBeenSet() const { return m_fileExistsBehaviorHasBeenSet; }
246 m_fileExistsBehaviorHasBeenSet = true;
247 m_fileExistsBehavior = value;
248 }
254
256
273 inline DeploymentMode GetDeploymentMode() const { return m_deploymentMode; }
274 inline bool DeploymentModeHasBeenSet() const { return m_deploymentModeHasBeenSet; }
276 m_deploymentModeHasBeenSet = true;
277 m_deploymentMode = value;
278 }
280 SetDeploymentMode(value);
281 return *this;
282 }
284
286
301 inline const AlarmConfiguration& GetOverrideAlarmConfiguration() const { return m_overrideAlarmConfiguration; }
302 inline bool OverrideAlarmConfigurationHasBeenSet() const { return m_overrideAlarmConfigurationHasBeenSet; }
303 template <typename OverrideAlarmConfigurationT = AlarmConfiguration>
304 void SetOverrideAlarmConfiguration(OverrideAlarmConfigurationT&& value) {
305 m_overrideAlarmConfigurationHasBeenSet = true;
306 m_overrideAlarmConfiguration = std::forward<OverrideAlarmConfigurationT>(value);
307 }
308 template <typename OverrideAlarmConfigurationT = AlarmConfiguration>
309 CreateDeploymentRequest& WithOverrideAlarmConfiguration(OverrideAlarmConfigurationT&& value) {
310 SetOverrideAlarmConfiguration(std::forward<OverrideAlarmConfigurationT>(value));
311 return *this;
312 }
314
316
317 inline const EC2DeploymentOptions& GetEc2DeploymentOptions() const { return m_ec2DeploymentOptions; }
318 inline bool Ec2DeploymentOptionsHasBeenSet() const { return m_ec2DeploymentOptionsHasBeenSet; }
319 template <typename Ec2DeploymentOptionsT = EC2DeploymentOptions>
320 void SetEc2DeploymentOptions(Ec2DeploymentOptionsT&& value) {
321 m_ec2DeploymentOptionsHasBeenSet = true;
322 m_ec2DeploymentOptions = std::forward<Ec2DeploymentOptionsT>(value);
323 }
324 template <typename Ec2DeploymentOptionsT = EC2DeploymentOptions>
325 CreateDeploymentRequest& WithEc2DeploymentOptions(Ec2DeploymentOptionsT&& value) {
326 SetEc2DeploymentOptions(std::forward<Ec2DeploymentOptionsT>(value));
327 return *this;
328 }
330 private:
331 Aws::String m_applicationName;
332
333 Aws::String m_deploymentGroupName;
334
335 RevisionLocation m_revision;
336
337 Aws::String m_deploymentConfigName;
338
339 Aws::String m_description;
340
341 bool m_ignoreApplicationStopFailures{false};
342
343 TargetInstances m_targetInstances;
344
345 AutoRollbackConfiguration m_autoRollbackConfiguration;
346
347 bool m_updateOutdatedInstancesOnly{false};
348
350
351 DeploymentMode m_deploymentMode{DeploymentMode::NOT_SET};
352
353 AlarmConfiguration m_overrideAlarmConfiguration;
354
355 EC2DeploymentOptions m_ec2DeploymentOptions;
356 bool m_applicationNameHasBeenSet = false;
357 bool m_deploymentGroupNameHasBeenSet = false;
358 bool m_revisionHasBeenSet = false;
359 bool m_deploymentConfigNameHasBeenSet = false;
360 bool m_descriptionHasBeenSet = false;
361 bool m_ignoreApplicationStopFailuresHasBeenSet = false;
362 bool m_targetInstancesHasBeenSet = false;
363 bool m_autoRollbackConfigurationHasBeenSet = false;
364 bool m_updateOutdatedInstancesOnlyHasBeenSet = false;
365 bool m_fileExistsBehaviorHasBeenSet = false;
366 bool m_deploymentModeHasBeenSet = false;
367 bool m_overrideAlarmConfigurationHasBeenSet = false;
368 bool m_ec2DeploymentOptionsHasBeenSet = false;
369};
370
371} // namespace Model
372} // namespace CodeDeploy
373} // namespace Aws
CreateDeploymentRequest & WithRevision(RevisionT &&value)
virtual const char * GetServiceRequestName() const override
void SetEc2DeploymentOptions(Ec2DeploymentOptionsT &&value)
CreateDeploymentRequest & WithApplicationName(ApplicationNameT &&value)
CreateDeploymentRequest & WithDescription(DescriptionT &&value)
CreateDeploymentRequest & WithEc2DeploymentOptions(Ec2DeploymentOptionsT &&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)
const EC2DeploymentOptions & GetEc2DeploymentOptions() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String