AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
UpdateDeploymentGroupRequest.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/BlueGreenDeploymentConfiguration.h>
12#include <aws/codedeploy/model/DeploymentStyle.h>
13#include <aws/codedeploy/model/EC2DeploymentOptions.h>
14#include <aws/codedeploy/model/EC2TagFilter.h>
15#include <aws/codedeploy/model/EC2TagSet.h>
16#include <aws/codedeploy/model/ECSService.h>
17#include <aws/codedeploy/model/LoadBalancerInfo.h>
18#include <aws/codedeploy/model/OnPremisesTagSet.h>
19#include <aws/codedeploy/model/OutdatedInstancesStrategy.h>
20#include <aws/codedeploy/model/TagFilter.h>
21#include <aws/codedeploy/model/TriggerConfig.h>
22#include <aws/core/utils/memory/stl/AWSString.h>
23#include <aws/core/utils/memory/stl/AWSVector.h>
24
25#include <utility>
26
27namespace Aws {
28namespace CodeDeploy {
29namespace Model {
30
38 public:
39 AWS_CODEDEPLOY_API UpdateDeploymentGroupRequest() = default;
40
41 // Service request name is the Operation name which will send this request out,
42 // each operation should has unique request name, so that we can get operation's name from this request.
43 // Note: this is not true for response, multiple operations may have the same response name,
44 // so we can not get operation's name from response.
45 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeploymentGroup"; }
46
47 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
48
50
52
55 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
56 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
57 template <typename ApplicationNameT = Aws::String>
58 void SetApplicationName(ApplicationNameT&& value) {
59 m_applicationNameHasBeenSet = true;
60 m_applicationName = std::forward<ApplicationNameT>(value);
61 }
62 template <typename ApplicationNameT = Aws::String>
64 SetApplicationName(std::forward<ApplicationNameT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetCurrentDeploymentGroupName() const { return m_currentDeploymentGroupName; }
74 inline bool CurrentDeploymentGroupNameHasBeenSet() const { return m_currentDeploymentGroupNameHasBeenSet; }
75 template <typename CurrentDeploymentGroupNameT = Aws::String>
76 void SetCurrentDeploymentGroupName(CurrentDeploymentGroupNameT&& value) {
77 m_currentDeploymentGroupNameHasBeenSet = true;
78 m_currentDeploymentGroupName = std::forward<CurrentDeploymentGroupNameT>(value);
79 }
80 template <typename CurrentDeploymentGroupNameT = Aws::String>
81 UpdateDeploymentGroupRequest& WithCurrentDeploymentGroupName(CurrentDeploymentGroupNameT&& value) {
82 SetCurrentDeploymentGroupName(std::forward<CurrentDeploymentGroupNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetNewDeploymentGroupName() const { return m_newDeploymentGroupName; }
92 inline bool NewDeploymentGroupNameHasBeenSet() const { return m_newDeploymentGroupNameHasBeenSet; }
93 template <typename NewDeploymentGroupNameT = Aws::String>
94 void SetNewDeploymentGroupName(NewDeploymentGroupNameT&& value) {
95 m_newDeploymentGroupNameHasBeenSet = true;
96 m_newDeploymentGroupName = std::forward<NewDeploymentGroupNameT>(value);
97 }
98 template <typename NewDeploymentGroupNameT = Aws::String>
99 UpdateDeploymentGroupRequest& WithNewDeploymentGroupName(NewDeploymentGroupNameT&& value) {
100 SetNewDeploymentGroupName(std::forward<NewDeploymentGroupNameT>(value));
101 return *this;
102 }
104
106
110 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
111 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
112 template <typename DeploymentConfigNameT = Aws::String>
113 void SetDeploymentConfigName(DeploymentConfigNameT&& value) {
114 m_deploymentConfigNameHasBeenSet = true;
115 m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value);
116 }
117 template <typename DeploymentConfigNameT = Aws::String>
119 SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value));
120 return *this;
121 }
123
125
130 inline const Aws::Vector<EC2TagFilter>& GetEc2TagFilters() const { return m_ec2TagFilters; }
131 inline bool Ec2TagFiltersHasBeenSet() const { return m_ec2TagFiltersHasBeenSet; }
132 template <typename Ec2TagFiltersT = Aws::Vector<EC2TagFilter>>
133 void SetEc2TagFilters(Ec2TagFiltersT&& value) {
134 m_ec2TagFiltersHasBeenSet = true;
135 m_ec2TagFilters = std::forward<Ec2TagFiltersT>(value);
136 }
137 template <typename Ec2TagFiltersT = Aws::Vector<EC2TagFilter>>
139 SetEc2TagFilters(std::forward<Ec2TagFiltersT>(value));
140 return *this;
141 }
142 template <typename Ec2TagFiltersT = EC2TagFilter>
144 m_ec2TagFiltersHasBeenSet = true;
145 m_ec2TagFilters.emplace_back(std::forward<Ec2TagFiltersT>(value));
146 return *this;
147 }
149
151
156 inline const Aws::Vector<TagFilter>& GetOnPremisesInstanceTagFilters() const { return m_onPremisesInstanceTagFilters; }
157 inline bool OnPremisesInstanceTagFiltersHasBeenSet() const { return m_onPremisesInstanceTagFiltersHasBeenSet; }
158 template <typename OnPremisesInstanceTagFiltersT = Aws::Vector<TagFilter>>
159 void SetOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) {
160 m_onPremisesInstanceTagFiltersHasBeenSet = true;
161 m_onPremisesInstanceTagFilters = std::forward<OnPremisesInstanceTagFiltersT>(value);
162 }
163 template <typename OnPremisesInstanceTagFiltersT = Aws::Vector<TagFilter>>
164 UpdateDeploymentGroupRequest& WithOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) {
165 SetOnPremisesInstanceTagFilters(std::forward<OnPremisesInstanceTagFiltersT>(value));
166 return *this;
167 }
168 template <typename OnPremisesInstanceTagFiltersT = TagFilter>
169 UpdateDeploymentGroupRequest& AddOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) {
170 m_onPremisesInstanceTagFiltersHasBeenSet = true;
171 m_onPremisesInstanceTagFilters.emplace_back(std::forward<OnPremisesInstanceTagFiltersT>(value));
172 return *this;
173 }
175
177
189 inline const Aws::Vector<Aws::String>& GetAutoScalingGroups() const { return m_autoScalingGroups; }
190 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
191 template <typename AutoScalingGroupsT = Aws::Vector<Aws::String>>
192 void SetAutoScalingGroups(AutoScalingGroupsT&& value) {
193 m_autoScalingGroupsHasBeenSet = true;
194 m_autoScalingGroups = std::forward<AutoScalingGroupsT>(value);
195 }
196 template <typename AutoScalingGroupsT = Aws::Vector<Aws::String>>
198 SetAutoScalingGroups(std::forward<AutoScalingGroupsT>(value));
199 return *this;
200 }
201 template <typename AutoScalingGroupsT = Aws::String>
203 m_autoScalingGroupsHasBeenSet = true;
204 m_autoScalingGroups.emplace_back(std::forward<AutoScalingGroupsT>(value));
205 return *this;
206 }
208
210
213 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
214 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
215 template <typename ServiceRoleArnT = Aws::String>
216 void SetServiceRoleArn(ServiceRoleArnT&& value) {
217 m_serviceRoleArnHasBeenSet = true;
218 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
219 }
220 template <typename ServiceRoleArnT = Aws::String>
222 SetServiceRoleArn(std::forward<ServiceRoleArnT>(value));
223 return *this;
224 }
226
228
235 inline const Aws::Vector<TriggerConfig>& GetTriggerConfigurations() const { return m_triggerConfigurations; }
236 inline bool TriggerConfigurationsHasBeenSet() const { return m_triggerConfigurationsHasBeenSet; }
237 template <typename TriggerConfigurationsT = Aws::Vector<TriggerConfig>>
238 void SetTriggerConfigurations(TriggerConfigurationsT&& value) {
239 m_triggerConfigurationsHasBeenSet = true;
240 m_triggerConfigurations = std::forward<TriggerConfigurationsT>(value);
241 }
242 template <typename TriggerConfigurationsT = Aws::Vector<TriggerConfig>>
244 SetTriggerConfigurations(std::forward<TriggerConfigurationsT>(value));
245 return *this;
246 }
247 template <typename TriggerConfigurationsT = TriggerConfig>
249 m_triggerConfigurationsHasBeenSet = true;
250 m_triggerConfigurations.emplace_back(std::forward<TriggerConfigurationsT>(value));
251 return *this;
252 }
254
256
260 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
261 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
262 template <typename AlarmConfigurationT = AlarmConfiguration>
263 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
264 m_alarmConfigurationHasBeenSet = true;
265 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
266 }
267 template <typename AlarmConfigurationT = AlarmConfiguration>
269 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
270 return *this;
271 }
273
275
279 inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
280 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
281 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
282 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
283 m_autoRollbackConfigurationHasBeenSet = true;
284 m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value);
285 }
286 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
287 UpdateDeploymentGroupRequest& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
288 SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value));
289 return *this;
290 }
292
294
304 inline OutdatedInstancesStrategy GetOutdatedInstancesStrategy() const { return m_outdatedInstancesStrategy; }
305 inline bool OutdatedInstancesStrategyHasBeenSet() const { return m_outdatedInstancesStrategyHasBeenSet; }
307 m_outdatedInstancesStrategyHasBeenSet = true;
308 m_outdatedInstancesStrategy = value;
309 }
312 return *this;
313 }
315
317
321 inline const DeploymentStyle& GetDeploymentStyle() const { return m_deploymentStyle; }
322 inline bool DeploymentStyleHasBeenSet() const { return m_deploymentStyleHasBeenSet; }
323 template <typename DeploymentStyleT = DeploymentStyle>
324 void SetDeploymentStyle(DeploymentStyleT&& value) {
325 m_deploymentStyleHasBeenSet = true;
326 m_deploymentStyle = std::forward<DeploymentStyleT>(value);
327 }
328 template <typename DeploymentStyleT = DeploymentStyle>
330 SetDeploymentStyle(std::forward<DeploymentStyleT>(value));
331 return *this;
332 }
334
336
339 inline const BlueGreenDeploymentConfiguration& GetBlueGreenDeploymentConfiguration() const { return m_blueGreenDeploymentConfiguration; }
340 inline bool BlueGreenDeploymentConfigurationHasBeenSet() const { return m_blueGreenDeploymentConfigurationHasBeenSet; }
341 template <typename BlueGreenDeploymentConfigurationT = BlueGreenDeploymentConfiguration>
342 void SetBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT&& value) {
343 m_blueGreenDeploymentConfigurationHasBeenSet = true;
344 m_blueGreenDeploymentConfiguration = std::forward<BlueGreenDeploymentConfigurationT>(value);
345 }
346 template <typename BlueGreenDeploymentConfigurationT = BlueGreenDeploymentConfiguration>
347 UpdateDeploymentGroupRequest& WithBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT&& value) {
348 SetBlueGreenDeploymentConfiguration(std::forward<BlueGreenDeploymentConfigurationT>(value));
349 return *this;
350 }
352
354
357 inline const LoadBalancerInfo& GetLoadBalancerInfo() const { return m_loadBalancerInfo; }
358 inline bool LoadBalancerInfoHasBeenSet() const { return m_loadBalancerInfoHasBeenSet; }
359 template <typename LoadBalancerInfoT = LoadBalancerInfo>
360 void SetLoadBalancerInfo(LoadBalancerInfoT&& value) {
361 m_loadBalancerInfoHasBeenSet = true;
362 m_loadBalancerInfo = std::forward<LoadBalancerInfoT>(value);
363 }
364 template <typename LoadBalancerInfoT = LoadBalancerInfo>
366 SetLoadBalancerInfo(std::forward<LoadBalancerInfoT>(value));
367 return *this;
368 }
370
372
377 inline const EC2TagSet& GetEc2TagSet() const { return m_ec2TagSet; }
378 inline bool Ec2TagSetHasBeenSet() const { return m_ec2TagSetHasBeenSet; }
379 template <typename Ec2TagSetT = EC2TagSet>
380 void SetEc2TagSet(Ec2TagSetT&& value) {
381 m_ec2TagSetHasBeenSet = true;
382 m_ec2TagSet = std::forward<Ec2TagSetT>(value);
383 }
384 template <typename Ec2TagSetT = EC2TagSet>
386 SetEc2TagSet(std::forward<Ec2TagSetT>(value));
387 return *this;
388 }
390
392
398 inline const Aws::Vector<ECSService>& GetEcsServices() const { return m_ecsServices; }
399 inline bool EcsServicesHasBeenSet() const { return m_ecsServicesHasBeenSet; }
400 template <typename EcsServicesT = Aws::Vector<ECSService>>
401 void SetEcsServices(EcsServicesT&& value) {
402 m_ecsServicesHasBeenSet = true;
403 m_ecsServices = std::forward<EcsServicesT>(value);
404 }
405 template <typename EcsServicesT = Aws::Vector<ECSService>>
407 SetEcsServices(std::forward<EcsServicesT>(value));
408 return *this;
409 }
410 template <typename EcsServicesT = ECSService>
412 m_ecsServicesHasBeenSet = true;
413 m_ecsServices.emplace_back(std::forward<EcsServicesT>(value));
414 return *this;
415 }
417
419
423 inline const OnPremisesTagSet& GetOnPremisesTagSet() const { return m_onPremisesTagSet; }
424 inline bool OnPremisesTagSetHasBeenSet() const { return m_onPremisesTagSetHasBeenSet; }
425 template <typename OnPremisesTagSetT = OnPremisesTagSet>
426 void SetOnPremisesTagSet(OnPremisesTagSetT&& value) {
427 m_onPremisesTagSetHasBeenSet = true;
428 m_onPremisesTagSet = std::forward<OnPremisesTagSetT>(value);
429 }
430 template <typename OnPremisesTagSetT = OnPremisesTagSet>
432 SetOnPremisesTagSet(std::forward<OnPremisesTagSetT>(value));
433 return *this;
434 }
436
438
439 inline const EC2DeploymentOptions& GetEc2DeploymentOptions() const { return m_ec2DeploymentOptions; }
440 inline bool Ec2DeploymentOptionsHasBeenSet() const { return m_ec2DeploymentOptionsHasBeenSet; }
441 template <typename Ec2DeploymentOptionsT = EC2DeploymentOptions>
442 void SetEc2DeploymentOptions(Ec2DeploymentOptionsT&& value) {
443 m_ec2DeploymentOptionsHasBeenSet = true;
444 m_ec2DeploymentOptions = std::forward<Ec2DeploymentOptionsT>(value);
445 }
446 template <typename Ec2DeploymentOptionsT = EC2DeploymentOptions>
448 SetEc2DeploymentOptions(std::forward<Ec2DeploymentOptionsT>(value));
449 return *this;
450 }
452
454
471 inline bool GetTerminationHookEnabled() const { return m_terminationHookEnabled; }
472 inline bool TerminationHookEnabledHasBeenSet() const { return m_terminationHookEnabledHasBeenSet; }
473 inline void SetTerminationHookEnabled(bool value) {
474 m_terminationHookEnabledHasBeenSet = true;
475 m_terminationHookEnabled = value;
476 }
479 return *this;
480 }
482 private:
483 Aws::String m_applicationName;
484
485 Aws::String m_currentDeploymentGroupName;
486
487 Aws::String m_newDeploymentGroupName;
488
489 Aws::String m_deploymentConfigName;
490
491 Aws::Vector<EC2TagFilter> m_ec2TagFilters;
492
493 Aws::Vector<TagFilter> m_onPremisesInstanceTagFilters;
494
495 Aws::Vector<Aws::String> m_autoScalingGroups;
496
497 Aws::String m_serviceRoleArn;
498
499 Aws::Vector<TriggerConfig> m_triggerConfigurations;
500
501 AlarmConfiguration m_alarmConfiguration;
502
503 AutoRollbackConfiguration m_autoRollbackConfiguration;
504
506
507 DeploymentStyle m_deploymentStyle;
508
509 BlueGreenDeploymentConfiguration m_blueGreenDeploymentConfiguration;
510
511 LoadBalancerInfo m_loadBalancerInfo;
512
513 EC2TagSet m_ec2TagSet;
514
515 Aws::Vector<ECSService> m_ecsServices;
516
517 OnPremisesTagSet m_onPremisesTagSet;
518
519 EC2DeploymentOptions m_ec2DeploymentOptions;
520
521 bool m_terminationHookEnabled{false};
522 bool m_applicationNameHasBeenSet = false;
523 bool m_currentDeploymentGroupNameHasBeenSet = false;
524 bool m_newDeploymentGroupNameHasBeenSet = false;
525 bool m_deploymentConfigNameHasBeenSet = false;
526 bool m_ec2TagFiltersHasBeenSet = false;
527 bool m_onPremisesInstanceTagFiltersHasBeenSet = false;
528 bool m_autoScalingGroupsHasBeenSet = false;
529 bool m_serviceRoleArnHasBeenSet = false;
530 bool m_triggerConfigurationsHasBeenSet = false;
531 bool m_alarmConfigurationHasBeenSet = false;
532 bool m_autoRollbackConfigurationHasBeenSet = false;
533 bool m_outdatedInstancesStrategyHasBeenSet = false;
534 bool m_deploymentStyleHasBeenSet = false;
535 bool m_blueGreenDeploymentConfigurationHasBeenSet = false;
536 bool m_loadBalancerInfoHasBeenSet = false;
537 bool m_ec2TagSetHasBeenSet = false;
538 bool m_ecsServicesHasBeenSet = false;
539 bool m_onPremisesTagSetHasBeenSet = false;
540 bool m_ec2DeploymentOptionsHasBeenSet = false;
541 bool m_terminationHookEnabledHasBeenSet = false;
542};
543
544} // namespace Model
545} // namespace CodeDeploy
546} // namespace Aws
UpdateDeploymentGroupRequest & AddEcsServices(EcsServicesT &&value)
void SetCurrentDeploymentGroupName(CurrentDeploymentGroupNameT &&value)
UpdateDeploymentGroupRequest & WithServiceRoleArn(ServiceRoleArnT &&value)
UpdateDeploymentGroupRequest & WithOutdatedInstancesStrategy(OutdatedInstancesStrategy value)
UpdateDeploymentGroupRequest & WithBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT &&value)
UpdateDeploymentGroupRequest & WithEc2TagSet(Ec2TagSetT &&value)
UpdateDeploymentGroupRequest & WithEcsServices(EcsServicesT &&value)
UpdateDeploymentGroupRequest & WithDeploymentConfigName(DeploymentConfigNameT &&value)
UpdateDeploymentGroupRequest & WithOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT &&value)
UpdateDeploymentGroupRequest & WithApplicationName(ApplicationNameT &&value)
const Aws::Vector< Aws::String > & GetAutoScalingGroups() const
UpdateDeploymentGroupRequest & WithAlarmConfiguration(AlarmConfigurationT &&value)
UpdateDeploymentGroupRequest & WithAutoScalingGroups(AutoScalingGroupsT &&value)
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT &&value)
UpdateDeploymentGroupRequest & WithEc2DeploymentOptions(Ec2DeploymentOptionsT &&value)
UpdateDeploymentGroupRequest & WithTriggerConfigurations(TriggerConfigurationsT &&value)
const AutoRollbackConfiguration & GetAutoRollbackConfiguration() const
UpdateDeploymentGroupRequest & WithNewDeploymentGroupName(NewDeploymentGroupNameT &&value)
UpdateDeploymentGroupRequest & AddEc2TagFilters(Ec2TagFiltersT &&value)
AWS_CODEDEPLOY_API UpdateDeploymentGroupRequest()=default
UpdateDeploymentGroupRequest & WithDeploymentStyle(DeploymentStyleT &&value)
void SetBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT &&value)
UpdateDeploymentGroupRequest & WithAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
UpdateDeploymentGroupRequest & AddOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT &&value)
void SetAutoRollbackConfiguration(AutoRollbackConfigurationT &&value)
UpdateDeploymentGroupRequest & AddTriggerConfigurations(TriggerConfigurationsT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
const Aws::Vector< EC2TagFilter > & GetEc2TagFilters() const
UpdateDeploymentGroupRequest & WithCurrentDeploymentGroupName(CurrentDeploymentGroupNameT &&value)
UpdateDeploymentGroupRequest & WithLoadBalancerInfo(LoadBalancerInfoT &&value)
UpdateDeploymentGroupRequest & WithOnPremisesTagSet(OnPremisesTagSetT &&value)
const BlueGreenDeploymentConfiguration & GetBlueGreenDeploymentConfiguration() const
UpdateDeploymentGroupRequest & WithEc2TagFilters(Ec2TagFiltersT &&value)
const Aws::Vector< TagFilter > & GetOnPremisesInstanceTagFilters() const
UpdateDeploymentGroupRequest & WithTerminationHookEnabled(bool value)
UpdateDeploymentGroupRequest & AddAutoScalingGroups(AutoScalingGroupsT &&value)
const Aws::Vector< TriggerConfig > & GetTriggerConfigurations() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector