AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateAutoScalingGroupRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace AutoScaling
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "UpdateAutoScalingGroup"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
46 
50  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
51 
55  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
56 
60  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
61 
65  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
66 
70  inline UpdateAutoScalingGroupRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
71 
75  inline UpdateAutoScalingGroupRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
76 
80  inline UpdateAutoScalingGroupRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
81 
82 
88  inline const Aws::String& GetLaunchConfigurationName() const{ return m_launchConfigurationName; }
89 
95  inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; }
96 
102  inline void SetLaunchConfigurationName(const Aws::String& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = value; }
103 
109  inline void SetLaunchConfigurationName(Aws::String&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::move(value); }
110 
116  inline void SetLaunchConfigurationName(const char* value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName.assign(value); }
117 
123  inline UpdateAutoScalingGroupRequest& WithLaunchConfigurationName(const Aws::String& value) { SetLaunchConfigurationName(value); return *this;}
124 
130  inline UpdateAutoScalingGroupRequest& WithLaunchConfigurationName(Aws::String&& value) { SetLaunchConfigurationName(std::move(value)); return *this;}
131 
137  inline UpdateAutoScalingGroupRequest& WithLaunchConfigurationName(const char* value) { SetLaunchConfigurationName(value); return *this;}
138 
139 
148  inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; }
149 
158  inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; }
159 
168  inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; }
169 
178  inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); }
179 
188  inline UpdateAutoScalingGroupRequest& WithLaunchTemplate(const LaunchTemplateSpecification& value) { SetLaunchTemplate(value); return *this;}
189 
198  inline UpdateAutoScalingGroupRequest& WithLaunchTemplate(LaunchTemplateSpecification&& value) { SetLaunchTemplate(std::move(value)); return *this;}
199 
200 
212  inline const MixedInstancesPolicy& GetMixedInstancesPolicy() const{ return m_mixedInstancesPolicy; }
213 
225  inline bool MixedInstancesPolicyHasBeenSet() const { return m_mixedInstancesPolicyHasBeenSet; }
226 
238  inline void SetMixedInstancesPolicy(const MixedInstancesPolicy& value) { m_mixedInstancesPolicyHasBeenSet = true; m_mixedInstancesPolicy = value; }
239 
251  inline void SetMixedInstancesPolicy(MixedInstancesPolicy&& value) { m_mixedInstancesPolicyHasBeenSet = true; m_mixedInstancesPolicy = std::move(value); }
252 
264  inline UpdateAutoScalingGroupRequest& WithMixedInstancesPolicy(const MixedInstancesPolicy& value) { SetMixedInstancesPolicy(value); return *this;}
265 
277  inline UpdateAutoScalingGroupRequest& WithMixedInstancesPolicy(MixedInstancesPolicy&& value) { SetMixedInstancesPolicy(std::move(value)); return *this;}
278 
279 
283  inline int GetMinSize() const{ return m_minSize; }
284 
288  inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; }
289 
293  inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; }
294 
298  inline UpdateAutoScalingGroupRequest& WithMinSize(int value) { SetMinSize(value); return *this;}
299 
300 
309  inline int GetMaxSize() const{ return m_maxSize; }
310 
319  inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; }
320 
329  inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; }
330 
339  inline UpdateAutoScalingGroupRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;}
340 
341 
348  inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
349 
356  inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
357 
364  inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
365 
372  inline UpdateAutoScalingGroupRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
373 
374 
384  inline int GetDefaultCooldown() const{ return m_defaultCooldown; }
385 
395  inline bool DefaultCooldownHasBeenSet() const { return m_defaultCooldownHasBeenSet; }
396 
406  inline void SetDefaultCooldown(int value) { m_defaultCooldownHasBeenSet = true; m_defaultCooldown = value; }
407 
417  inline UpdateAutoScalingGroupRequest& WithDefaultCooldown(int value) { SetDefaultCooldown(value); return *this;}
418 
419 
423  inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
424 
428  inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
429 
433  inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
434 
438  inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
439 
443  inline UpdateAutoScalingGroupRequest& WithAvailabilityZones(const Aws::Vector<Aws::String>& value) { SetAvailabilityZones(value); return *this;}
444 
448  inline UpdateAutoScalingGroupRequest& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
449 
453  inline UpdateAutoScalingGroupRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
454 
458  inline UpdateAutoScalingGroupRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
459 
463  inline UpdateAutoScalingGroupRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
464 
465 
472  inline const Aws::String& GetHealthCheckType() const{ return m_healthCheckType; }
473 
480  inline bool HealthCheckTypeHasBeenSet() const { return m_healthCheckTypeHasBeenSet; }
481 
488  inline void SetHealthCheckType(const Aws::String& value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType = value; }
489 
496  inline void SetHealthCheckType(Aws::String&& value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType = std::move(value); }
497 
504  inline void SetHealthCheckType(const char* value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType.assign(value); }
505 
512  inline UpdateAutoScalingGroupRequest& WithHealthCheckType(const Aws::String& value) { SetHealthCheckType(value); return *this;}
513 
520  inline UpdateAutoScalingGroupRequest& WithHealthCheckType(Aws::String&& value) { SetHealthCheckType(std::move(value)); return *this;}
521 
528  inline UpdateAutoScalingGroupRequest& WithHealthCheckType(const char* value) { SetHealthCheckType(value); return *this;}
529 
530 
539  inline int GetHealthCheckGracePeriod() const{ return m_healthCheckGracePeriod; }
540 
549  inline bool HealthCheckGracePeriodHasBeenSet() const { return m_healthCheckGracePeriodHasBeenSet; }
550 
559  inline void SetHealthCheckGracePeriod(int value) { m_healthCheckGracePeriodHasBeenSet = true; m_healthCheckGracePeriod = value; }
560 
569  inline UpdateAutoScalingGroupRequest& WithHealthCheckGracePeriod(int value) { SetHealthCheckGracePeriod(value); return *this;}
570 
571 
580  inline const Aws::String& GetPlacementGroup() const{ return m_placementGroup; }
581 
590  inline bool PlacementGroupHasBeenSet() const { return m_placementGroupHasBeenSet; }
591 
600  inline void SetPlacementGroup(const Aws::String& value) { m_placementGroupHasBeenSet = true; m_placementGroup = value; }
601 
610  inline void SetPlacementGroup(Aws::String&& value) { m_placementGroupHasBeenSet = true; m_placementGroup = std::move(value); }
611 
620  inline void SetPlacementGroup(const char* value) { m_placementGroupHasBeenSet = true; m_placementGroup.assign(value); }
621 
630  inline UpdateAutoScalingGroupRequest& WithPlacementGroup(const Aws::String& value) { SetPlacementGroup(value); return *this;}
631 
640  inline UpdateAutoScalingGroupRequest& WithPlacementGroup(Aws::String&& value) { SetPlacementGroup(std::move(value)); return *this;}
641 
650  inline UpdateAutoScalingGroupRequest& WithPlacementGroup(const char* value) { SetPlacementGroup(value); return *this;}
651 
652 
659  inline const Aws::String& GetVPCZoneIdentifier() const{ return m_vPCZoneIdentifier; }
660 
667  inline bool VPCZoneIdentifierHasBeenSet() const { return m_vPCZoneIdentifierHasBeenSet; }
668 
675  inline void SetVPCZoneIdentifier(const Aws::String& value) { m_vPCZoneIdentifierHasBeenSet = true; m_vPCZoneIdentifier = value; }
676 
683  inline void SetVPCZoneIdentifier(Aws::String&& value) { m_vPCZoneIdentifierHasBeenSet = true; m_vPCZoneIdentifier = std::move(value); }
684 
691  inline void SetVPCZoneIdentifier(const char* value) { m_vPCZoneIdentifierHasBeenSet = true; m_vPCZoneIdentifier.assign(value); }
692 
699  inline UpdateAutoScalingGroupRequest& WithVPCZoneIdentifier(const Aws::String& value) { SetVPCZoneIdentifier(value); return *this;}
700 
707  inline UpdateAutoScalingGroupRequest& WithVPCZoneIdentifier(Aws::String&& value) { SetVPCZoneIdentifier(std::move(value)); return *this;}
708 
715  inline UpdateAutoScalingGroupRequest& WithVPCZoneIdentifier(const char* value) { SetVPCZoneIdentifier(value); return *this;}
716 
717 
726  inline const Aws::Vector<Aws::String>& GetTerminationPolicies() const{ return m_terminationPolicies; }
727 
736  inline bool TerminationPoliciesHasBeenSet() const { return m_terminationPoliciesHasBeenSet; }
737 
746  inline void SetTerminationPolicies(const Aws::Vector<Aws::String>& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies = value; }
747 
756  inline void SetTerminationPolicies(Aws::Vector<Aws::String>&& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies = std::move(value); }
757 
766  inline UpdateAutoScalingGroupRequest& WithTerminationPolicies(const Aws::Vector<Aws::String>& value) { SetTerminationPolicies(value); return *this;}
767 
776  inline UpdateAutoScalingGroupRequest& WithTerminationPolicies(Aws::Vector<Aws::String>&& value) { SetTerminationPolicies(std::move(value)); return *this;}
777 
786  inline UpdateAutoScalingGroupRequest& AddTerminationPolicies(const Aws::String& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies.push_back(value); return *this; }
787 
796  inline UpdateAutoScalingGroupRequest& AddTerminationPolicies(Aws::String&& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies.push_back(std::move(value)); return *this; }
797 
806  inline UpdateAutoScalingGroupRequest& AddTerminationPolicies(const char* value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies.push_back(value); return *this; }
807 
808 
816  inline bool GetNewInstancesProtectedFromScaleIn() const{ return m_newInstancesProtectedFromScaleIn; }
817 
825  inline bool NewInstancesProtectedFromScaleInHasBeenSet() const { return m_newInstancesProtectedFromScaleInHasBeenSet; }
826 
834  inline void SetNewInstancesProtectedFromScaleIn(bool value) { m_newInstancesProtectedFromScaleInHasBeenSet = true; m_newInstancesProtectedFromScaleIn = value; }
835 
843  inline UpdateAutoScalingGroupRequest& WithNewInstancesProtectedFromScaleIn(bool value) { SetNewInstancesProtectedFromScaleIn(value); return *this;}
844 
845 
853  inline const Aws::String& GetServiceLinkedRoleARN() const{ return m_serviceLinkedRoleARN; }
854 
862  inline bool ServiceLinkedRoleARNHasBeenSet() const { return m_serviceLinkedRoleARNHasBeenSet; }
863 
871  inline void SetServiceLinkedRoleARN(const Aws::String& value) { m_serviceLinkedRoleARNHasBeenSet = true; m_serviceLinkedRoleARN = value; }
872 
880  inline void SetServiceLinkedRoleARN(Aws::String&& value) { m_serviceLinkedRoleARNHasBeenSet = true; m_serviceLinkedRoleARN = std::move(value); }
881 
889  inline void SetServiceLinkedRoleARN(const char* value) { m_serviceLinkedRoleARNHasBeenSet = true; m_serviceLinkedRoleARN.assign(value); }
890 
898  inline UpdateAutoScalingGroupRequest& WithServiceLinkedRoleARN(const Aws::String& value) { SetServiceLinkedRoleARN(value); return *this;}
899 
907  inline UpdateAutoScalingGroupRequest& WithServiceLinkedRoleARN(Aws::String&& value) { SetServiceLinkedRoleARN(std::move(value)); return *this;}
908 
916  inline UpdateAutoScalingGroupRequest& WithServiceLinkedRoleARN(const char* value) { SetServiceLinkedRoleARN(value); return *this;}
917 
918 
929  inline int GetMaxInstanceLifetime() const{ return m_maxInstanceLifetime; }
930 
941  inline bool MaxInstanceLifetimeHasBeenSet() const { return m_maxInstanceLifetimeHasBeenSet; }
942 
953  inline void SetMaxInstanceLifetime(int value) { m_maxInstanceLifetimeHasBeenSet = true; m_maxInstanceLifetime = value; }
954 
965  inline UpdateAutoScalingGroupRequest& WithMaxInstanceLifetime(int value) { SetMaxInstanceLifetime(value); return *this;}
966 
967  private:
968 
969  Aws::String m_autoScalingGroupName;
970  bool m_autoScalingGroupNameHasBeenSet;
971 
972  Aws::String m_launchConfigurationName;
973  bool m_launchConfigurationNameHasBeenSet;
974 
975  LaunchTemplateSpecification m_launchTemplate;
976  bool m_launchTemplateHasBeenSet;
977 
978  MixedInstancesPolicy m_mixedInstancesPolicy;
979  bool m_mixedInstancesPolicyHasBeenSet;
980 
981  int m_minSize;
982  bool m_minSizeHasBeenSet;
983 
984  int m_maxSize;
985  bool m_maxSizeHasBeenSet;
986 
987  int m_desiredCapacity;
988  bool m_desiredCapacityHasBeenSet;
989 
990  int m_defaultCooldown;
991  bool m_defaultCooldownHasBeenSet;
992 
993  Aws::Vector<Aws::String> m_availabilityZones;
994  bool m_availabilityZonesHasBeenSet;
995 
996  Aws::String m_healthCheckType;
997  bool m_healthCheckTypeHasBeenSet;
998 
999  int m_healthCheckGracePeriod;
1000  bool m_healthCheckGracePeriodHasBeenSet;
1001 
1002  Aws::String m_placementGroup;
1003  bool m_placementGroupHasBeenSet;
1004 
1005  Aws::String m_vPCZoneIdentifier;
1006  bool m_vPCZoneIdentifierHasBeenSet;
1007 
1008  Aws::Vector<Aws::String> m_terminationPolicies;
1009  bool m_terminationPoliciesHasBeenSet;
1010 
1011  bool m_newInstancesProtectedFromScaleIn;
1012  bool m_newInstancesProtectedFromScaleInHasBeenSet;
1013 
1014  Aws::String m_serviceLinkedRoleARN;
1015  bool m_serviceLinkedRoleARNHasBeenSet;
1016 
1017  int m_maxInstanceLifetime;
1018  bool m_maxInstanceLifetimeHasBeenSet;
1019  };
1020 
1021 } // namespace Model
1022 } // namespace AutoScaling
1023 } // namespace Aws
UpdateAutoScalingGroupRequest & WithLaunchTemplate(const LaunchTemplateSpecification &value)
UpdateAutoScalingGroupRequest & WithLaunchConfigurationName(const char *value)
UpdateAutoScalingGroupRequest & WithPlacementGroup(Aws::String &&value)
UpdateAutoScalingGroupRequest & WithServiceLinkedRoleARN(const Aws::String &value)
UpdateAutoScalingGroupRequest & WithTerminationPolicies(Aws::Vector< Aws::String > &&value)
UpdateAutoScalingGroupRequest & AddAvailabilityZones(const Aws::String &value)
UpdateAutoScalingGroupRequest & WithLaunchConfigurationName(const Aws::String &value)
UpdateAutoScalingGroupRequest & WithMixedInstancesPolicy(MixedInstancesPolicy &&value)
UpdateAutoScalingGroupRequest & WithServiceLinkedRoleARN(Aws::String &&value)
UpdateAutoScalingGroupRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
UpdateAutoScalingGroupRequest & AddTerminationPolicies(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
UpdateAutoScalingGroupRequest & WithDefaultCooldown(int value)
UpdateAutoScalingGroupRequest & AddTerminationPolicies(Aws::String &&value)
UpdateAutoScalingGroupRequest & WithMaxInstanceLifetime(int value)
UpdateAutoScalingGroupRequest & WithHealthCheckType(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTerminationPolicies() const
UpdateAutoScalingGroupRequest & WithServiceLinkedRoleARN(const char *value)
UpdateAutoScalingGroupRequest & WithAutoScalingGroupName(const char *value)
UpdateAutoScalingGroupRequest & WithLaunchTemplate(LaunchTemplateSpecification &&value)
void SetTerminationPolicies(const Aws::Vector< Aws::String > &value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
UpdateAutoScalingGroupRequest & WithPlacementGroup(const char *value)
UpdateAutoScalingGroupRequest & AddAvailabilityZones(Aws::String &&value)
UpdateAutoScalingGroupRequest & WithTerminationPolicies(const Aws::Vector< Aws::String > &value)
UpdateAutoScalingGroupRequest & WithHealthCheckType(const char *value)
UpdateAutoScalingGroupRequest & AddAvailabilityZones(const char *value)
UpdateAutoScalingGroupRequest & WithHealthCheckGracePeriod(int value)
UpdateAutoScalingGroupRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
UpdateAutoScalingGroupRequest & WithLaunchConfigurationName(Aws::String &&value)
UpdateAutoScalingGroupRequest & WithVPCZoneIdentifier(const char *value)
UpdateAutoScalingGroupRequest & WithDesiredCapacity(int value)
UpdateAutoScalingGroupRequest & WithAutoScalingGroupName(const Aws::String &value)
UpdateAutoScalingGroupRequest & WithMixedInstancesPolicy(const MixedInstancesPolicy &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateAutoScalingGroupRequest & AddTerminationPolicies(const Aws::String &value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
UpdateAutoScalingGroupRequest & WithNewInstancesProtectedFromScaleIn(bool value)
UpdateAutoScalingGroupRequest & WithAutoScalingGroupName(Aws::String &&value)
#define AWS_AUTOSCALING_API
UpdateAutoScalingGroupRequest & WithVPCZoneIdentifier(Aws::String &&value)
UpdateAutoScalingGroupRequest & WithHealthCheckType(const Aws::String &value)
UpdateAutoScalingGroupRequest & WithPlacementGroup(const Aws::String &value)
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
UpdateAutoScalingGroupRequest & WithVPCZoneIdentifier(const Aws::String &value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)