AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/EC2TagFilter.h>
14#include <aws/codedeploy/model/EC2TagSet.h>
15#include <aws/codedeploy/model/ECSService.h>
16#include <aws/codedeploy/model/LoadBalancerInfo.h>
17#include <aws/codedeploy/model/OnPremisesTagSet.h>
18#include <aws/codedeploy/model/OutdatedInstancesStrategy.h>
19#include <aws/codedeploy/model/TagFilter.h>
20#include <aws/codedeploy/model/TriggerConfig.h>
21#include <aws/core/utils/memory/stl/AWSString.h>
22#include <aws/core/utils/memory/stl/AWSVector.h>
23
24#include <utility>
25
26namespace Aws {
27namespace CodeDeploy {
28namespace Model {
29
37 public:
38 AWS_CODEDEPLOY_API UpdateDeploymentGroupRequest() = default;
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeploymentGroup"; }
45
46 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
47
49
51
54 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
55 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
56 template <typename ApplicationNameT = Aws::String>
57 void SetApplicationName(ApplicationNameT&& value) {
58 m_applicationNameHasBeenSet = true;
59 m_applicationName = std::forward<ApplicationNameT>(value);
60 }
61 template <typename ApplicationNameT = Aws::String>
63 SetApplicationName(std::forward<ApplicationNameT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetCurrentDeploymentGroupName() const { return m_currentDeploymentGroupName; }
73 inline bool CurrentDeploymentGroupNameHasBeenSet() const { return m_currentDeploymentGroupNameHasBeenSet; }
74 template <typename CurrentDeploymentGroupNameT = Aws::String>
75 void SetCurrentDeploymentGroupName(CurrentDeploymentGroupNameT&& value) {
76 m_currentDeploymentGroupNameHasBeenSet = true;
77 m_currentDeploymentGroupName = std::forward<CurrentDeploymentGroupNameT>(value);
78 }
79 template <typename CurrentDeploymentGroupNameT = Aws::String>
80 UpdateDeploymentGroupRequest& WithCurrentDeploymentGroupName(CurrentDeploymentGroupNameT&& value) {
81 SetCurrentDeploymentGroupName(std::forward<CurrentDeploymentGroupNameT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetNewDeploymentGroupName() const { return m_newDeploymentGroupName; }
91 inline bool NewDeploymentGroupNameHasBeenSet() const { return m_newDeploymentGroupNameHasBeenSet; }
92 template <typename NewDeploymentGroupNameT = Aws::String>
93 void SetNewDeploymentGroupName(NewDeploymentGroupNameT&& value) {
94 m_newDeploymentGroupNameHasBeenSet = true;
95 m_newDeploymentGroupName = std::forward<NewDeploymentGroupNameT>(value);
96 }
97 template <typename NewDeploymentGroupNameT = Aws::String>
98 UpdateDeploymentGroupRequest& WithNewDeploymentGroupName(NewDeploymentGroupNameT&& value) {
99 SetNewDeploymentGroupName(std::forward<NewDeploymentGroupNameT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
110 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
111 template <typename DeploymentConfigNameT = Aws::String>
112 void SetDeploymentConfigName(DeploymentConfigNameT&& value) {
113 m_deploymentConfigNameHasBeenSet = true;
114 m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value);
115 }
116 template <typename DeploymentConfigNameT = Aws::String>
118 SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Vector<EC2TagFilter>& GetEc2TagFilters() const { return m_ec2TagFilters; }
130 inline bool Ec2TagFiltersHasBeenSet() const { return m_ec2TagFiltersHasBeenSet; }
131 template <typename Ec2TagFiltersT = Aws::Vector<EC2TagFilter>>
132 void SetEc2TagFilters(Ec2TagFiltersT&& value) {
133 m_ec2TagFiltersHasBeenSet = true;
134 m_ec2TagFilters = std::forward<Ec2TagFiltersT>(value);
135 }
136 template <typename Ec2TagFiltersT = Aws::Vector<EC2TagFilter>>
138 SetEc2TagFilters(std::forward<Ec2TagFiltersT>(value));
139 return *this;
140 }
141 template <typename Ec2TagFiltersT = EC2TagFilter>
143 m_ec2TagFiltersHasBeenSet = true;
144 m_ec2TagFilters.emplace_back(std::forward<Ec2TagFiltersT>(value));
145 return *this;
146 }
148
150
155 inline const Aws::Vector<TagFilter>& GetOnPremisesInstanceTagFilters() const { return m_onPremisesInstanceTagFilters; }
156 inline bool OnPremisesInstanceTagFiltersHasBeenSet() const { return m_onPremisesInstanceTagFiltersHasBeenSet; }
157 template <typename OnPremisesInstanceTagFiltersT = Aws::Vector<TagFilter>>
158 void SetOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) {
159 m_onPremisesInstanceTagFiltersHasBeenSet = true;
160 m_onPremisesInstanceTagFilters = std::forward<OnPremisesInstanceTagFiltersT>(value);
161 }
162 template <typename OnPremisesInstanceTagFiltersT = Aws::Vector<TagFilter>>
163 UpdateDeploymentGroupRequest& WithOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) {
164 SetOnPremisesInstanceTagFilters(std::forward<OnPremisesInstanceTagFiltersT>(value));
165 return *this;
166 }
167 template <typename OnPremisesInstanceTagFiltersT = TagFilter>
168 UpdateDeploymentGroupRequest& AddOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) {
169 m_onPremisesInstanceTagFiltersHasBeenSet = true;
170 m_onPremisesInstanceTagFilters.emplace_back(std::forward<OnPremisesInstanceTagFiltersT>(value));
171 return *this;
172 }
174
176
188 inline const Aws::Vector<Aws::String>& GetAutoScalingGroups() const { return m_autoScalingGroups; }
189 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
190 template <typename AutoScalingGroupsT = Aws::Vector<Aws::String>>
191 void SetAutoScalingGroups(AutoScalingGroupsT&& value) {
192 m_autoScalingGroupsHasBeenSet = true;
193 m_autoScalingGroups = std::forward<AutoScalingGroupsT>(value);
194 }
195 template <typename AutoScalingGroupsT = Aws::Vector<Aws::String>>
197 SetAutoScalingGroups(std::forward<AutoScalingGroupsT>(value));
198 return *this;
199 }
200 template <typename AutoScalingGroupsT = Aws::String>
202 m_autoScalingGroupsHasBeenSet = true;
203 m_autoScalingGroups.emplace_back(std::forward<AutoScalingGroupsT>(value));
204 return *this;
205 }
207
209
212 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
213 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
214 template <typename ServiceRoleArnT = Aws::String>
215 void SetServiceRoleArn(ServiceRoleArnT&& value) {
216 m_serviceRoleArnHasBeenSet = true;
217 m_serviceRoleArn = std::forward<ServiceRoleArnT>(value);
218 }
219 template <typename ServiceRoleArnT = Aws::String>
221 SetServiceRoleArn(std::forward<ServiceRoleArnT>(value));
222 return *this;
223 }
225
227
234 inline const Aws::Vector<TriggerConfig>& GetTriggerConfigurations() const { return m_triggerConfigurations; }
235 inline bool TriggerConfigurationsHasBeenSet() const { return m_triggerConfigurationsHasBeenSet; }
236 template <typename TriggerConfigurationsT = Aws::Vector<TriggerConfig>>
237 void SetTriggerConfigurations(TriggerConfigurationsT&& value) {
238 m_triggerConfigurationsHasBeenSet = true;
239 m_triggerConfigurations = std::forward<TriggerConfigurationsT>(value);
240 }
241 template <typename TriggerConfigurationsT = Aws::Vector<TriggerConfig>>
243 SetTriggerConfigurations(std::forward<TriggerConfigurationsT>(value));
244 return *this;
245 }
246 template <typename TriggerConfigurationsT = TriggerConfig>
248 m_triggerConfigurationsHasBeenSet = true;
249 m_triggerConfigurations.emplace_back(std::forward<TriggerConfigurationsT>(value));
250 return *this;
251 }
253
255
259 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
260 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
261 template <typename AlarmConfigurationT = AlarmConfiguration>
262 void SetAlarmConfiguration(AlarmConfigurationT&& value) {
263 m_alarmConfigurationHasBeenSet = true;
264 m_alarmConfiguration = std::forward<AlarmConfigurationT>(value);
265 }
266 template <typename AlarmConfigurationT = AlarmConfiguration>
268 SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value));
269 return *this;
270 }
272
274
278 inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
279 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
280 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
281 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
282 m_autoRollbackConfigurationHasBeenSet = true;
283 m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value);
284 }
285 template <typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
286 UpdateDeploymentGroupRequest& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) {
287 SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value));
288 return *this;
289 }
291
293
303 inline OutdatedInstancesStrategy GetOutdatedInstancesStrategy() const { return m_outdatedInstancesStrategy; }
304 inline bool OutdatedInstancesStrategyHasBeenSet() const { return m_outdatedInstancesStrategyHasBeenSet; }
306 m_outdatedInstancesStrategyHasBeenSet = true;
307 m_outdatedInstancesStrategy = value;
308 }
311 return *this;
312 }
314
316
320 inline const DeploymentStyle& GetDeploymentStyle() const { return m_deploymentStyle; }
321 inline bool DeploymentStyleHasBeenSet() const { return m_deploymentStyleHasBeenSet; }
322 template <typename DeploymentStyleT = DeploymentStyle>
323 void SetDeploymentStyle(DeploymentStyleT&& value) {
324 m_deploymentStyleHasBeenSet = true;
325 m_deploymentStyle = std::forward<DeploymentStyleT>(value);
326 }
327 template <typename DeploymentStyleT = DeploymentStyle>
329 SetDeploymentStyle(std::forward<DeploymentStyleT>(value));
330 return *this;
331 }
333
335
338 inline const BlueGreenDeploymentConfiguration& GetBlueGreenDeploymentConfiguration() const { return m_blueGreenDeploymentConfiguration; }
339 inline bool BlueGreenDeploymentConfigurationHasBeenSet() const { return m_blueGreenDeploymentConfigurationHasBeenSet; }
340 template <typename BlueGreenDeploymentConfigurationT = BlueGreenDeploymentConfiguration>
341 void SetBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT&& value) {
342 m_blueGreenDeploymentConfigurationHasBeenSet = true;
343 m_blueGreenDeploymentConfiguration = std::forward<BlueGreenDeploymentConfigurationT>(value);
344 }
345 template <typename BlueGreenDeploymentConfigurationT = BlueGreenDeploymentConfiguration>
346 UpdateDeploymentGroupRequest& WithBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT&& value) {
347 SetBlueGreenDeploymentConfiguration(std::forward<BlueGreenDeploymentConfigurationT>(value));
348 return *this;
349 }
351
353
356 inline const LoadBalancerInfo& GetLoadBalancerInfo() const { return m_loadBalancerInfo; }
357 inline bool LoadBalancerInfoHasBeenSet() const { return m_loadBalancerInfoHasBeenSet; }
358 template <typename LoadBalancerInfoT = LoadBalancerInfo>
359 void SetLoadBalancerInfo(LoadBalancerInfoT&& value) {
360 m_loadBalancerInfoHasBeenSet = true;
361 m_loadBalancerInfo = std::forward<LoadBalancerInfoT>(value);
362 }
363 template <typename LoadBalancerInfoT = LoadBalancerInfo>
365 SetLoadBalancerInfo(std::forward<LoadBalancerInfoT>(value));
366 return *this;
367 }
369
371
376 inline const EC2TagSet& GetEc2TagSet() const { return m_ec2TagSet; }
377 inline bool Ec2TagSetHasBeenSet() const { return m_ec2TagSetHasBeenSet; }
378 template <typename Ec2TagSetT = EC2TagSet>
379 void SetEc2TagSet(Ec2TagSetT&& value) {
380 m_ec2TagSetHasBeenSet = true;
381 m_ec2TagSet = std::forward<Ec2TagSetT>(value);
382 }
383 template <typename Ec2TagSetT = EC2TagSet>
385 SetEc2TagSet(std::forward<Ec2TagSetT>(value));
386 return *this;
387 }
389
391
397 inline const Aws::Vector<ECSService>& GetEcsServices() const { return m_ecsServices; }
398 inline bool EcsServicesHasBeenSet() const { return m_ecsServicesHasBeenSet; }
399 template <typename EcsServicesT = Aws::Vector<ECSService>>
400 void SetEcsServices(EcsServicesT&& value) {
401 m_ecsServicesHasBeenSet = true;
402 m_ecsServices = std::forward<EcsServicesT>(value);
403 }
404 template <typename EcsServicesT = Aws::Vector<ECSService>>
406 SetEcsServices(std::forward<EcsServicesT>(value));
407 return *this;
408 }
409 template <typename EcsServicesT = ECSService>
411 m_ecsServicesHasBeenSet = true;
412 m_ecsServices.emplace_back(std::forward<EcsServicesT>(value));
413 return *this;
414 }
416
418
422 inline const OnPremisesTagSet& GetOnPremisesTagSet() const { return m_onPremisesTagSet; }
423 inline bool OnPremisesTagSetHasBeenSet() const { return m_onPremisesTagSetHasBeenSet; }
424 template <typename OnPremisesTagSetT = OnPremisesTagSet>
425 void SetOnPremisesTagSet(OnPremisesTagSetT&& value) {
426 m_onPremisesTagSetHasBeenSet = true;
427 m_onPremisesTagSet = std::forward<OnPremisesTagSetT>(value);
428 }
429 template <typename OnPremisesTagSetT = OnPremisesTagSet>
431 SetOnPremisesTagSet(std::forward<OnPremisesTagSetT>(value));
432 return *this;
433 }
435
437
454 inline bool GetTerminationHookEnabled() const { return m_terminationHookEnabled; }
455 inline bool TerminationHookEnabledHasBeenSet() const { return m_terminationHookEnabledHasBeenSet; }
456 inline void SetTerminationHookEnabled(bool value) {
457 m_terminationHookEnabledHasBeenSet = true;
458 m_terminationHookEnabled = value;
459 }
462 return *this;
463 }
465 private:
466 Aws::String m_applicationName;
467
468 Aws::String m_currentDeploymentGroupName;
469
470 Aws::String m_newDeploymentGroupName;
471
472 Aws::String m_deploymentConfigName;
473
474 Aws::Vector<EC2TagFilter> m_ec2TagFilters;
475
476 Aws::Vector<TagFilter> m_onPremisesInstanceTagFilters;
477
478 Aws::Vector<Aws::String> m_autoScalingGroups;
479
480 Aws::String m_serviceRoleArn;
481
482 Aws::Vector<TriggerConfig> m_triggerConfigurations;
483
484 AlarmConfiguration m_alarmConfiguration;
485
486 AutoRollbackConfiguration m_autoRollbackConfiguration;
487
489
490 DeploymentStyle m_deploymentStyle;
491
492 BlueGreenDeploymentConfiguration m_blueGreenDeploymentConfiguration;
493
494 LoadBalancerInfo m_loadBalancerInfo;
495
496 EC2TagSet m_ec2TagSet;
497
498 Aws::Vector<ECSService> m_ecsServices;
499
500 OnPremisesTagSet m_onPremisesTagSet;
501
502 bool m_terminationHookEnabled{false};
503 bool m_applicationNameHasBeenSet = false;
504 bool m_currentDeploymentGroupNameHasBeenSet = false;
505 bool m_newDeploymentGroupNameHasBeenSet = false;
506 bool m_deploymentConfigNameHasBeenSet = false;
507 bool m_ec2TagFiltersHasBeenSet = false;
508 bool m_onPremisesInstanceTagFiltersHasBeenSet = false;
509 bool m_autoScalingGroupsHasBeenSet = false;
510 bool m_serviceRoleArnHasBeenSet = false;
511 bool m_triggerConfigurationsHasBeenSet = false;
512 bool m_alarmConfigurationHasBeenSet = false;
513 bool m_autoRollbackConfigurationHasBeenSet = false;
514 bool m_outdatedInstancesStrategyHasBeenSet = false;
515 bool m_deploymentStyleHasBeenSet = false;
516 bool m_blueGreenDeploymentConfigurationHasBeenSet = false;
517 bool m_loadBalancerInfoHasBeenSet = false;
518 bool m_ec2TagSetHasBeenSet = false;
519 bool m_ecsServicesHasBeenSet = false;
520 bool m_onPremisesTagSetHasBeenSet = false;
521 bool m_terminationHookEnabledHasBeenSet = false;
522};
523
524} // namespace Model
525} // namespace CodeDeploy
526} // 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 & 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