AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateDeploymentGroupRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/codedeploy/model/AlarmConfiguration.h>
12#include <aws/codedeploy/model/AutoRollbackConfiguration.h>
13#include <aws/codedeploy/model/OutdatedInstancesStrategy.h>
14#include <aws/codedeploy/model/DeploymentStyle.h>
15#include <aws/codedeploy/model/BlueGreenDeploymentConfiguration.h>
16#include <aws/codedeploy/model/LoadBalancerInfo.h>
17#include <aws/codedeploy/model/EC2TagSet.h>
18#include <aws/codedeploy/model/OnPremisesTagSet.h>
19#include <aws/codedeploy/model/EC2TagFilter.h>
20#include <aws/codedeploy/model/TagFilter.h>
21#include <aws/codedeploy/model/TriggerConfig.h>
22#include <aws/codedeploy/model/ECSService.h>
23#include <utility>
24
25namespace Aws
26{
27namespace CodeDeploy
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_CODEDEPLOY_API UpdateDeploymentGroupRequest() = default;
42
43 // Service request name is the Operation name which will send this request out,
44 // each operation should has unique request name, so that we can get operation's name from this request.
45 // Note: this is not true for response, multiple operations may have the same response name,
46 // so we can not get operation's name from response.
47 inline virtual const char* GetServiceRequestName() const override { return "UpdateDeploymentGroup"; }
48
49 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
50
52
53
55
58 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
59 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
60 template<typename ApplicationNameT = Aws::String>
61 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
62 template<typename ApplicationNameT = Aws::String>
63 UpdateDeploymentGroupRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetCurrentDeploymentGroupName() const { return m_currentDeploymentGroupName; }
71 inline bool CurrentDeploymentGroupNameHasBeenSet() const { return m_currentDeploymentGroupNameHasBeenSet; }
72 template<typename CurrentDeploymentGroupNameT = Aws::String>
73 void SetCurrentDeploymentGroupName(CurrentDeploymentGroupNameT&& value) { m_currentDeploymentGroupNameHasBeenSet = true; m_currentDeploymentGroupName = std::forward<CurrentDeploymentGroupNameT>(value); }
74 template<typename CurrentDeploymentGroupNameT = Aws::String>
75 UpdateDeploymentGroupRequest& WithCurrentDeploymentGroupName(CurrentDeploymentGroupNameT&& value) { SetCurrentDeploymentGroupName(std::forward<CurrentDeploymentGroupNameT>(value)); return *this;}
77
79
82 inline const Aws::String& GetNewDeploymentGroupName() const { return m_newDeploymentGroupName; }
83 inline bool NewDeploymentGroupNameHasBeenSet() const { return m_newDeploymentGroupNameHasBeenSet; }
84 template<typename NewDeploymentGroupNameT = Aws::String>
85 void SetNewDeploymentGroupName(NewDeploymentGroupNameT&& value) { m_newDeploymentGroupNameHasBeenSet = true; m_newDeploymentGroupName = std::forward<NewDeploymentGroupNameT>(value); }
86 template<typename NewDeploymentGroupNameT = Aws::String>
87 UpdateDeploymentGroupRequest& WithNewDeploymentGroupName(NewDeploymentGroupNameT&& value) { SetNewDeploymentGroupName(std::forward<NewDeploymentGroupNameT>(value)); return *this;}
89
91
95 inline const Aws::String& GetDeploymentConfigName() const { return m_deploymentConfigName; }
96 inline bool DeploymentConfigNameHasBeenSet() const { return m_deploymentConfigNameHasBeenSet; }
97 template<typename DeploymentConfigNameT = Aws::String>
98 void SetDeploymentConfigName(DeploymentConfigNameT&& value) { m_deploymentConfigNameHasBeenSet = true; m_deploymentConfigName = std::forward<DeploymentConfigNameT>(value); }
99 template<typename DeploymentConfigNameT = Aws::String>
100 UpdateDeploymentGroupRequest& WithDeploymentConfigName(DeploymentConfigNameT&& value) { SetDeploymentConfigName(std::forward<DeploymentConfigNameT>(value)); return *this;}
102
104
109 inline const Aws::Vector<EC2TagFilter>& GetEc2TagFilters() const { return m_ec2TagFilters; }
110 inline bool Ec2TagFiltersHasBeenSet() const { return m_ec2TagFiltersHasBeenSet; }
111 template<typename Ec2TagFiltersT = Aws::Vector<EC2TagFilter>>
112 void SetEc2TagFilters(Ec2TagFiltersT&& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters = std::forward<Ec2TagFiltersT>(value); }
113 template<typename Ec2TagFiltersT = Aws::Vector<EC2TagFilter>>
114 UpdateDeploymentGroupRequest& WithEc2TagFilters(Ec2TagFiltersT&& value) { SetEc2TagFilters(std::forward<Ec2TagFiltersT>(value)); return *this;}
115 template<typename Ec2TagFiltersT = EC2TagFilter>
116 UpdateDeploymentGroupRequest& AddEc2TagFilters(Ec2TagFiltersT&& value) { m_ec2TagFiltersHasBeenSet = true; m_ec2TagFilters.emplace_back(std::forward<Ec2TagFiltersT>(value)); return *this; }
118
120
125 inline const Aws::Vector<TagFilter>& GetOnPremisesInstanceTagFilters() const { return m_onPremisesInstanceTagFilters; }
126 inline bool OnPremisesInstanceTagFiltersHasBeenSet() const { return m_onPremisesInstanceTagFiltersHasBeenSet; }
127 template<typename OnPremisesInstanceTagFiltersT = Aws::Vector<TagFilter>>
128 void SetOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters = std::forward<OnPremisesInstanceTagFiltersT>(value); }
129 template<typename OnPremisesInstanceTagFiltersT = Aws::Vector<TagFilter>>
130 UpdateDeploymentGroupRequest& WithOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) { SetOnPremisesInstanceTagFilters(std::forward<OnPremisesInstanceTagFiltersT>(value)); return *this;}
131 template<typename OnPremisesInstanceTagFiltersT = TagFilter>
132 UpdateDeploymentGroupRequest& AddOnPremisesInstanceTagFilters(OnPremisesInstanceTagFiltersT&& value) { m_onPremisesInstanceTagFiltersHasBeenSet = true; m_onPremisesInstanceTagFilters.emplace_back(std::forward<OnPremisesInstanceTagFiltersT>(value)); return *this; }
134
136
148 inline const Aws::Vector<Aws::String>& GetAutoScalingGroups() const { return m_autoScalingGroups; }
149 inline bool AutoScalingGroupsHasBeenSet() const { return m_autoScalingGroupsHasBeenSet; }
150 template<typename AutoScalingGroupsT = Aws::Vector<Aws::String>>
151 void SetAutoScalingGroups(AutoScalingGroupsT&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups = std::forward<AutoScalingGroupsT>(value); }
152 template<typename AutoScalingGroupsT = Aws::Vector<Aws::String>>
153 UpdateDeploymentGroupRequest& WithAutoScalingGroups(AutoScalingGroupsT&& value) { SetAutoScalingGroups(std::forward<AutoScalingGroupsT>(value)); return *this;}
154 template<typename AutoScalingGroupsT = Aws::String>
155 UpdateDeploymentGroupRequest& AddAutoScalingGroups(AutoScalingGroupsT&& value) { m_autoScalingGroupsHasBeenSet = true; m_autoScalingGroups.emplace_back(std::forward<AutoScalingGroupsT>(value)); return *this; }
157
159
162 inline const Aws::String& GetServiceRoleArn() const { return m_serviceRoleArn; }
163 inline bool ServiceRoleArnHasBeenSet() const { return m_serviceRoleArnHasBeenSet; }
164 template<typename ServiceRoleArnT = Aws::String>
165 void SetServiceRoleArn(ServiceRoleArnT&& value) { m_serviceRoleArnHasBeenSet = true; m_serviceRoleArn = std::forward<ServiceRoleArnT>(value); }
166 template<typename ServiceRoleArnT = Aws::String>
167 UpdateDeploymentGroupRequest& WithServiceRoleArn(ServiceRoleArnT&& value) { SetServiceRoleArn(std::forward<ServiceRoleArnT>(value)); return *this;}
169
171
178 inline const Aws::Vector<TriggerConfig>& GetTriggerConfigurations() const { return m_triggerConfigurations; }
179 inline bool TriggerConfigurationsHasBeenSet() const { return m_triggerConfigurationsHasBeenSet; }
180 template<typename TriggerConfigurationsT = Aws::Vector<TriggerConfig>>
181 void SetTriggerConfigurations(TriggerConfigurationsT&& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations = std::forward<TriggerConfigurationsT>(value); }
182 template<typename TriggerConfigurationsT = Aws::Vector<TriggerConfig>>
183 UpdateDeploymentGroupRequest& WithTriggerConfigurations(TriggerConfigurationsT&& value) { SetTriggerConfigurations(std::forward<TriggerConfigurationsT>(value)); return *this;}
184 template<typename TriggerConfigurationsT = TriggerConfig>
185 UpdateDeploymentGroupRequest& AddTriggerConfigurations(TriggerConfigurationsT&& value) { m_triggerConfigurationsHasBeenSet = true; m_triggerConfigurations.emplace_back(std::forward<TriggerConfigurationsT>(value)); return *this; }
187
189
193 inline const AlarmConfiguration& GetAlarmConfiguration() const { return m_alarmConfiguration; }
194 inline bool AlarmConfigurationHasBeenSet() const { return m_alarmConfigurationHasBeenSet; }
195 template<typename AlarmConfigurationT = AlarmConfiguration>
196 void SetAlarmConfiguration(AlarmConfigurationT&& value) { m_alarmConfigurationHasBeenSet = true; m_alarmConfiguration = std::forward<AlarmConfigurationT>(value); }
197 template<typename AlarmConfigurationT = AlarmConfiguration>
198 UpdateDeploymentGroupRequest& WithAlarmConfiguration(AlarmConfigurationT&& value) { SetAlarmConfiguration(std::forward<AlarmConfigurationT>(value)); return *this;}
200
202
206 inline const AutoRollbackConfiguration& GetAutoRollbackConfiguration() const { return m_autoRollbackConfiguration; }
207 inline bool AutoRollbackConfigurationHasBeenSet() const { return m_autoRollbackConfigurationHasBeenSet; }
208 template<typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
209 void SetAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { m_autoRollbackConfigurationHasBeenSet = true; m_autoRollbackConfiguration = std::forward<AutoRollbackConfigurationT>(value); }
210 template<typename AutoRollbackConfigurationT = AutoRollbackConfiguration>
211 UpdateDeploymentGroupRequest& WithAutoRollbackConfiguration(AutoRollbackConfigurationT&& value) { SetAutoRollbackConfiguration(std::forward<AutoRollbackConfigurationT>(value)); return *this;}
213
215
225 inline OutdatedInstancesStrategy GetOutdatedInstancesStrategy() const { return m_outdatedInstancesStrategy; }
226 inline bool OutdatedInstancesStrategyHasBeenSet() const { return m_outdatedInstancesStrategyHasBeenSet; }
227 inline void SetOutdatedInstancesStrategy(OutdatedInstancesStrategy value) { m_outdatedInstancesStrategyHasBeenSet = true; m_outdatedInstancesStrategy = value; }
230
232
236 inline const DeploymentStyle& GetDeploymentStyle() const { return m_deploymentStyle; }
237 inline bool DeploymentStyleHasBeenSet() const { return m_deploymentStyleHasBeenSet; }
238 template<typename DeploymentStyleT = DeploymentStyle>
239 void SetDeploymentStyle(DeploymentStyleT&& value) { m_deploymentStyleHasBeenSet = true; m_deploymentStyle = std::forward<DeploymentStyleT>(value); }
240 template<typename DeploymentStyleT = DeploymentStyle>
241 UpdateDeploymentGroupRequest& WithDeploymentStyle(DeploymentStyleT&& value) { SetDeploymentStyle(std::forward<DeploymentStyleT>(value)); return *this;}
243
245
248 inline const BlueGreenDeploymentConfiguration& GetBlueGreenDeploymentConfiguration() const { return m_blueGreenDeploymentConfiguration; }
249 inline bool BlueGreenDeploymentConfigurationHasBeenSet() const { return m_blueGreenDeploymentConfigurationHasBeenSet; }
250 template<typename BlueGreenDeploymentConfigurationT = BlueGreenDeploymentConfiguration>
251 void SetBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT&& value) { m_blueGreenDeploymentConfigurationHasBeenSet = true; m_blueGreenDeploymentConfiguration = std::forward<BlueGreenDeploymentConfigurationT>(value); }
252 template<typename BlueGreenDeploymentConfigurationT = BlueGreenDeploymentConfiguration>
253 UpdateDeploymentGroupRequest& WithBlueGreenDeploymentConfiguration(BlueGreenDeploymentConfigurationT&& value) { SetBlueGreenDeploymentConfiguration(std::forward<BlueGreenDeploymentConfigurationT>(value)); return *this;}
255
257
260 inline const LoadBalancerInfo& GetLoadBalancerInfo() const { return m_loadBalancerInfo; }
261 inline bool LoadBalancerInfoHasBeenSet() const { return m_loadBalancerInfoHasBeenSet; }
262 template<typename LoadBalancerInfoT = LoadBalancerInfo>
263 void SetLoadBalancerInfo(LoadBalancerInfoT&& value) { m_loadBalancerInfoHasBeenSet = true; m_loadBalancerInfo = std::forward<LoadBalancerInfoT>(value); }
264 template<typename LoadBalancerInfoT = LoadBalancerInfo>
265 UpdateDeploymentGroupRequest& WithLoadBalancerInfo(LoadBalancerInfoT&& value) { SetLoadBalancerInfo(std::forward<LoadBalancerInfoT>(value)); return *this;}
267
269
274 inline const EC2TagSet& GetEc2TagSet() const { return m_ec2TagSet; }
275 inline bool Ec2TagSetHasBeenSet() const { return m_ec2TagSetHasBeenSet; }
276 template<typename Ec2TagSetT = EC2TagSet>
277 void SetEc2TagSet(Ec2TagSetT&& value) { m_ec2TagSetHasBeenSet = true; m_ec2TagSet = std::forward<Ec2TagSetT>(value); }
278 template<typename Ec2TagSetT = EC2TagSet>
279 UpdateDeploymentGroupRequest& WithEc2TagSet(Ec2TagSetT&& value) { SetEc2TagSet(std::forward<Ec2TagSetT>(value)); return *this;}
281
283
289 inline const Aws::Vector<ECSService>& GetEcsServices() const { return m_ecsServices; }
290 inline bool EcsServicesHasBeenSet() const { return m_ecsServicesHasBeenSet; }
291 template<typename EcsServicesT = Aws::Vector<ECSService>>
292 void SetEcsServices(EcsServicesT&& value) { m_ecsServicesHasBeenSet = true; m_ecsServices = std::forward<EcsServicesT>(value); }
293 template<typename EcsServicesT = Aws::Vector<ECSService>>
294 UpdateDeploymentGroupRequest& WithEcsServices(EcsServicesT&& value) { SetEcsServices(std::forward<EcsServicesT>(value)); return *this;}
295 template<typename EcsServicesT = ECSService>
296 UpdateDeploymentGroupRequest& AddEcsServices(EcsServicesT&& value) { m_ecsServicesHasBeenSet = true; m_ecsServices.emplace_back(std::forward<EcsServicesT>(value)); return *this; }
298
300
304 inline const OnPremisesTagSet& GetOnPremisesTagSet() const { return m_onPremisesTagSet; }
305 inline bool OnPremisesTagSetHasBeenSet() const { return m_onPremisesTagSetHasBeenSet; }
306 template<typename OnPremisesTagSetT = OnPremisesTagSet>
307 void SetOnPremisesTagSet(OnPremisesTagSetT&& value) { m_onPremisesTagSetHasBeenSet = true; m_onPremisesTagSet = std::forward<OnPremisesTagSetT>(value); }
308 template<typename OnPremisesTagSetT = OnPremisesTagSet>
309 UpdateDeploymentGroupRequest& WithOnPremisesTagSet(OnPremisesTagSetT&& value) { SetOnPremisesTagSet(std::forward<OnPremisesTagSetT>(value)); return *this;}
311
313
330 inline bool GetTerminationHookEnabled() const { return m_terminationHookEnabled; }
331 inline bool TerminationHookEnabledHasBeenSet() const { return m_terminationHookEnabledHasBeenSet; }
332 inline void SetTerminationHookEnabled(bool value) { m_terminationHookEnabledHasBeenSet = true; m_terminationHookEnabled = value; }
335 private:
336
337 Aws::String m_applicationName;
338 bool m_applicationNameHasBeenSet = false;
339
340 Aws::String m_currentDeploymentGroupName;
341 bool m_currentDeploymentGroupNameHasBeenSet = false;
342
343 Aws::String m_newDeploymentGroupName;
344 bool m_newDeploymentGroupNameHasBeenSet = false;
345
346 Aws::String m_deploymentConfigName;
347 bool m_deploymentConfigNameHasBeenSet = false;
348
349 Aws::Vector<EC2TagFilter> m_ec2TagFilters;
350 bool m_ec2TagFiltersHasBeenSet = false;
351
352 Aws::Vector<TagFilter> m_onPremisesInstanceTagFilters;
353 bool m_onPremisesInstanceTagFiltersHasBeenSet = false;
354
355 Aws::Vector<Aws::String> m_autoScalingGroups;
356 bool m_autoScalingGroupsHasBeenSet = false;
357
358 Aws::String m_serviceRoleArn;
359 bool m_serviceRoleArnHasBeenSet = false;
360
361 Aws::Vector<TriggerConfig> m_triggerConfigurations;
362 bool m_triggerConfigurationsHasBeenSet = false;
363
364 AlarmConfiguration m_alarmConfiguration;
365 bool m_alarmConfigurationHasBeenSet = false;
366
367 AutoRollbackConfiguration m_autoRollbackConfiguration;
368 bool m_autoRollbackConfigurationHasBeenSet = false;
369
371 bool m_outdatedInstancesStrategyHasBeenSet = false;
372
373 DeploymentStyle m_deploymentStyle;
374 bool m_deploymentStyleHasBeenSet = false;
375
376 BlueGreenDeploymentConfiguration m_blueGreenDeploymentConfiguration;
377 bool m_blueGreenDeploymentConfigurationHasBeenSet = false;
378
379 LoadBalancerInfo m_loadBalancerInfo;
380 bool m_loadBalancerInfoHasBeenSet = false;
381
382 EC2TagSet m_ec2TagSet;
383 bool m_ec2TagSetHasBeenSet = false;
384
385 Aws::Vector<ECSService> m_ecsServices;
386 bool m_ecsServicesHasBeenSet = false;
387
388 OnPremisesTagSet m_onPremisesTagSet;
389 bool m_onPremisesTagSetHasBeenSet = false;
390
391 bool m_terminationHookEnabled{false};
392 bool m_terminationHookEnabledHasBeenSet = false;
393 };
394
395} // namespace Model
396} // namespace CodeDeploy
397} // 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