AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDeploymentRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codedeploy/model/RevisionLocation.h>
11#include <aws/codedeploy/model/TargetInstances.h>
12#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
13#include <aws/codedeploy/model/FileExistsBehavior.h>
14#include <aws/codedeploy/model/AlarmConfiguration.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CodeDeploy
20{
21namespace Model
22{
23
31 {
32 public:
33 AWS_CODEDEPLOY_API CreateDeploymentRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateDeployment"; }
40
41 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
42
44
45
47
51 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
52 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
53 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
54 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
55 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
56 inline CreateDeploymentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
57 inline CreateDeploymentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
58 inline CreateDeploymentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
60
62
65 inline const Aws::String& GetDeploymentGroupName() const{ return m_deploymentGroupName; }
66 inline bool DeploymentGroupNameHasBeenSet() const { return m_deploymentGroupNameHasBeenSet; }
67 inline void SetDeploymentGroupName(const Aws::String& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = value; }
68 inline void SetDeploymentGroupName(Aws::String&& value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName = std::move(value); }
69 inline void SetDeploymentGroupName(const char* value) { m_deploymentGroupNameHasBeenSet = true; m_deploymentGroupName.assign(value); }
71 inline CreateDeploymentRequest& WithDeploymentGroupName(Aws::String&& value) { SetDeploymentGroupName(std::move(value)); return *this;}
72 inline CreateDeploymentRequest& WithDeploymentGroupName(const char* value) { SetDeploymentGroupName(value); return *this;}
74
76
79 inline const RevisionLocation& GetRevision() const{ return m_revision; }
80 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
81 inline void SetRevision(const RevisionLocation& value) { m_revisionHasBeenSet = true; m_revision = value; }
82 inline void SetRevision(RevisionLocation&& value) { m_revisionHasBeenSet = true; m_revision = std::move(value); }
83 inline CreateDeploymentRequest& WithRevision(const RevisionLocation& value) { SetRevision(value); return *this;}
84 inline CreateDeploymentRequest& WithRevision(RevisionLocation&& value) { SetRevision(std::move(value)); return *this;}
86
88
95 inline const Aws::String& GetDeploymentConfigName() const{ return m_deploymentConfigName; }
96 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
97 inline void SetDeploymentConfigName(const Aws::String& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = value; }
98 inline void SetDeploymentConfigName(Aws::String&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::move(value); }
99 inline void SetDeploymentConfigName(const char* value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName.assign(value); }
101 inline CreateDeploymentRequest& WithDeploymentConfigName(Aws::String&& value) { SetDeploymentConfigName(std::move(value)); return *this;}
102 inline CreateDeploymentRequest& WithDeploymentConfigName(const char* value) { SetDeploymentConfigName(value); return *this;}
104
106
109 inline const Aws::String& GetDescription() const{ return m_description; }
110 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
111 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
112 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
113 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
114 inline CreateDeploymentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
115 inline CreateDeploymentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
116 inline CreateDeploymentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
118
120
144 inline bool GetIgnoreApplicationStopFailures() const{ return m_ignoreApplicationStopFailures; }
145 inline bool IgnoreApplicationStopFailuresHasBeenSet() const { return m_ignoreApplicationStopFailuresHasBeenSet; }
146 inline void SetIgnoreApplicationStopFailures(bool value) { m_ignoreApplicationStopFailuresHasBeenSet = true; m_ignoreApplicationStopFailures = value; }
149
151
155 inline const TargetInstances& GetTargetInstances() const{ return m_targetInstances; }
156 inline bool TargetInstancesHasBeenSet() const { return m_targetInstancesHasBeenSet; }
157 inline void SetTargetInstances(const TargetInstances& value) { m_targetInstancesHasBeenSet = true; m_targetInstances = value; }
158 inline void SetTargetInstances(TargetInstances&& value) { m_targetInstancesHasBeenSet = true; m_targetInstances = std::move(value); }
160 inline CreateDeploymentRequest& WithTargetInstances(TargetInstances&& value) { SetTargetInstances(std::move(value)); return *this;}
162
164
168 inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const{ return m_autoRollbackConfiguration; }
169 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
170 inline void SetAutoRollbackConfiguration(const AutoRollbackConfiguration& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = value; }
171 inline void SetAutoRollbackConfiguration(AutoRollbackConfiguration&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = std::move(value); }
175
177
181 inline bool GetUpdateOutdatedInstancesOnly() const{ return m_updateOutdatedInstancesOnly; }
182 inline bool UpdateOutdatedInstancesOnlyHasBeenSet() const { return m_updateOutdatedInstancesOnlyHasBeenSet; }
183 inline void SetUpdateOutdatedInstancesOnly(bool value) { m_updateOutdatedInstancesOnlyHasBeenSet = true; m_updateOutdatedInstancesOnly = value; }
186
188
199 inline const FileExistsBehavior& GetFileExistsBehavior() const{ return m_fileExistsBehavior; }
200 inline bool FileExistsBehaviorHasBeenSet() const { return m_fileExistsBehaviorHasBeenSet; }
201 inline void SetFileExistsBehavior(const FileExistsBehavior& value) { m_fileExistsBehaviorHasBeenSet = true; m_fileExistsBehavior = value; }
202 inline void SetFileExistsBehavior(FileExistsBehavior&& value) { m_fileExistsBehaviorHasBeenSet = true; m_fileExistsBehavior = std::move(value); }
206
208
223 inline const AlarmConfiguration& GetOverrideAlarmConfiguration() const{ return m_overrideAlarmConfiguration; }
224 inline bool OverrideAlarmConfigurationHasBeenSet() const { return m_overrideAlarmConfigurationHasBeenSet; }
225 inline void SetOverrideAlarmConfiguration(const AlarmConfiguration& value) { m_overrideAlarmConfigurationHasBeenSet = true; m_overrideAlarmConfiguration = value; }
226 inline void SetOverrideAlarmConfiguration(AlarmConfiguration&& value) { m_overrideAlarmConfigurationHasBeenSet = true; m_overrideAlarmConfiguration = std::move(value); }
230 private:
231
232 Aws::String m_applicationName;
233 bool m_applicationNameHasBeenSet = false;
234
235 Aws::String m_deploymentGroupName;
236 bool m_deploymentGroupNameHasBeenSet = false;
237
238 RevisionLocation m_revision;
239 bool m_revisionHasBeenSet = false;
240
241 Aws::String m_deploymentConfigName;
242 bool m_deploymentConfigNameHasBeenSet = false;
243
244 Aws::String m_description;
245 bool m_descriptionHasBeenSet = false;
246
247 bool m_ignoreApplicationStopFailures;
248 bool m_ignoreApplicationStopFailuresHasBeenSet = false;
249
250 TargetInstances m_targetInstances;
251 bool m_targetInstancesHasBeenSet = false;
252
253 AutoRollbackConfiguration m_autoRollbackConfiguration;
254 bool m_autoRollbackConfigurationHasBeenSet = false;
255
256 bool m_updateOutdatedInstancesOnly;
257 bool m_updateOutdatedInstancesOnlyHasBeenSet = false;
258
259 FileExistsBehavior m_fileExistsBehavior;
260 bool m_fileExistsBehaviorHasBeenSet = false;
261
262 AlarmConfiguration m_overrideAlarmConfiguration;
263 bool m_overrideAlarmConfigurationHasBeenSet = false;
264 };
265
266} // namespace Model
267} // namespace CodeDeploy
268} // namespace Aws
void SetAutoRollbackConfiguration(AutoRollbackConfiguration &&value)
CreateDeploymentRequest & WithOverrideAlarmConfiguration(const AlarmConfiguration &value)
void SetOverrideAlarmConfiguration(AlarmConfiguration &&value)
virtual const char * GetServiceRequestName() const override
CreateDeploymentRequest & WithFileExistsBehavior(const FileExistsBehavior &value)
CreateDeploymentRequest & WithDescription(Aws::String &&value)
CreateDeploymentRequest & WithApplicationName(const char *value)
CreateDeploymentRequest & WithApplicationName(const Aws::String &value)
CreateDeploymentRequest & WithRevision(RevisionLocation &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDeploymentRequest & WithDeploymentGroupName(const Aws::String &value)
CreateDeploymentRequest & WithDeploymentConfigName(Aws::String &&value)
CreateDeploymentRequest & WithDeploymentGroupName(const char *value)
CreateDeploymentRequest & WithDescription(const Aws::String &value)
const AlarmConfiguration & GetOverrideAlarmConfiguration() const
const AutoRollbackConfiguration & GetAutoRollbackConfiguration() const
CreateDeploymentRequest & WithOverrideAlarmConfiguration(AlarmConfiguration &&value)
void SetTargetInstances(const TargetInstances &value)
void SetOverrideAlarmConfiguration(const AlarmConfiguration &value)
const FileExistsBehavior & GetFileExistsBehavior() const
CreateDeploymentRequest & WithTargetInstances(const TargetInstances &value)
CreateDeploymentRequest & WithApplicationName(Aws::String &&value)
CreateDeploymentRequest & WithDescription(const char *value)
CreateDeploymentRequest & WithDeploymentGroupName(Aws::String &&value)
CreateDeploymentRequest & WithDeploymentConfigName(const Aws::String &value)
void SetFileExistsBehavior(const FileExistsBehavior &value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
CreateDeploymentRequest & WithTargetInstances(TargetInstances &&value)
CreateDeploymentRequest & WithFileExistsBehavior(FileExistsBehavior &&value)
CreateDeploymentRequest & WithIgnoreApplicationStopFailures(bool value)
void SetAutoRollbackConfiguration(const AutoRollbackConfiguration &value)
CreateDeploymentRequest & WithUpdateOutdatedInstancesOnly(bool value)
CreateDeploymentRequest & WithAutoRollbackConfiguration(const AutoRollbackConfiguration &value)
CreateDeploymentRequest & WithDeploymentConfigName(const char *value)
CreateDeploymentRequest & WithAutoRollbackConfiguration(AutoRollbackConfiguration &&value)
CreateDeploymentRequest & WithRevision(const RevisionLocation &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String