/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace AutoScaling { namespace Model { /** */ class UpdateAutoScalingGroupRequest : public AutoScalingRequest { public: AWS_AUTOSCALING_API UpdateAutoScalingGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAutoScalingGroup"; } AWS_AUTOSCALING_API Aws::String SerializePayload() const override; protected: AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the Auto Scaling group.

*/ inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; } /** *

The name of the Auto Scaling group.

*/ inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); } /** *

The name of the Auto Scaling group.

*/ inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); } /** *

The name of the Auto Scaling group.

*/ inline UpdateAutoScalingGroupRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the Auto Scaling group.

*/ inline UpdateAutoScalingGroupRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;} /** *

The name of the Auto Scaling group.

*/ inline UpdateAutoScalingGroupRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;} /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline const Aws::String& GetLaunchConfigurationName() const{ return m_launchConfigurationName; } /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline bool LaunchConfigurationNameHasBeenSet() const { return m_launchConfigurationNameHasBeenSet; } /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline void SetLaunchConfigurationName(const Aws::String& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = value; } /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline void SetLaunchConfigurationName(Aws::String&& value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName = std::move(value); } /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline void SetLaunchConfigurationName(const char* value) { m_launchConfigurationNameHasBeenSet = true; m_launchConfigurationName.assign(value); } /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline UpdateAutoScalingGroupRequest& WithLaunchConfigurationName(const Aws::String& value) { SetLaunchConfigurationName(value); return *this;} /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline UpdateAutoScalingGroupRequest& WithLaunchConfigurationName(Aws::String&& value) { SetLaunchConfigurationName(std::move(value)); return *this;} /** *

The name of the launch configuration. If you specify * LaunchConfigurationName in your update request, you can't specify * LaunchTemplate or MixedInstancesPolicy.

*/ inline UpdateAutoScalingGroupRequest& WithLaunchConfigurationName(const char* value) { SetLaunchConfigurationName(value); return *this;} /** *

The launch template and version to use to specify the updates. If you specify * LaunchTemplate in your update request, you can't specify * LaunchConfigurationName or MixedInstancesPolicy.

*/ inline const LaunchTemplateSpecification& GetLaunchTemplate() const{ return m_launchTemplate; } /** *

The launch template and version to use to specify the updates. If you specify * LaunchTemplate in your update request, you can't specify * LaunchConfigurationName or MixedInstancesPolicy.

*/ inline bool LaunchTemplateHasBeenSet() const { return m_launchTemplateHasBeenSet; } /** *

The launch template and version to use to specify the updates. If you specify * LaunchTemplate in your update request, you can't specify * LaunchConfigurationName or MixedInstancesPolicy.

*/ inline void SetLaunchTemplate(const LaunchTemplateSpecification& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = value; } /** *

The launch template and version to use to specify the updates. If you specify * LaunchTemplate in your update request, you can't specify * LaunchConfigurationName or MixedInstancesPolicy.

*/ inline void SetLaunchTemplate(LaunchTemplateSpecification&& value) { m_launchTemplateHasBeenSet = true; m_launchTemplate = std::move(value); } /** *

The launch template and version to use to specify the updates. If you specify * LaunchTemplate in your update request, you can't specify * LaunchConfigurationName or MixedInstancesPolicy.

*/ inline UpdateAutoScalingGroupRequest& WithLaunchTemplate(const LaunchTemplateSpecification& value) { SetLaunchTemplate(value); return *this;} /** *

The launch template and version to use to specify the updates. If you specify * LaunchTemplate in your update request, you can't specify * LaunchConfigurationName or MixedInstancesPolicy.

*/ inline UpdateAutoScalingGroupRequest& WithLaunchTemplate(LaunchTemplateSpecification&& value) { SetLaunchTemplate(std::move(value)); return *this;} /** *

The mixed instances policy. For more information, see Auto * Scaling groups with multiple instance types and purchase options in the * Amazon EC2 Auto Scaling User Guide.

*/ inline const MixedInstancesPolicy& GetMixedInstancesPolicy() const{ return m_mixedInstancesPolicy; } /** *

The mixed instances policy. For more information, see Auto * Scaling groups with multiple instance types and purchase options in the * Amazon EC2 Auto Scaling User Guide.

*/ inline bool MixedInstancesPolicyHasBeenSet() const { return m_mixedInstancesPolicyHasBeenSet; } /** *

The mixed instances policy. For more information, see Auto * Scaling groups with multiple instance types and purchase options in the * Amazon EC2 Auto Scaling User Guide.

*/ inline void SetMixedInstancesPolicy(const MixedInstancesPolicy& value) { m_mixedInstancesPolicyHasBeenSet = true; m_mixedInstancesPolicy = value; } /** *

The mixed instances policy. For more information, see Auto * Scaling groups with multiple instance types and purchase options in the * Amazon EC2 Auto Scaling User Guide.

*/ inline void SetMixedInstancesPolicy(MixedInstancesPolicy&& value) { m_mixedInstancesPolicyHasBeenSet = true; m_mixedInstancesPolicy = std::move(value); } /** *

The mixed instances policy. For more information, see Auto * Scaling groups with multiple instance types and purchase options in the * Amazon EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithMixedInstancesPolicy(const MixedInstancesPolicy& value) { SetMixedInstancesPolicy(value); return *this;} /** *

The mixed instances policy. For more information, see Auto * Scaling groups with multiple instance types and purchase options in the * Amazon EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithMixedInstancesPolicy(MixedInstancesPolicy&& value) { SetMixedInstancesPolicy(std::move(value)); return *this;} /** *

The minimum size of the Auto Scaling group.

*/ inline int GetMinSize() const{ return m_minSize; } /** *

The minimum size of the Auto Scaling group.

*/ inline bool MinSizeHasBeenSet() const { return m_minSizeHasBeenSet; } /** *

The minimum size of the Auto Scaling group.

*/ inline void SetMinSize(int value) { m_minSizeHasBeenSet = true; m_minSize = value; } /** *

The minimum size of the Auto Scaling group.

*/ inline UpdateAutoScalingGroupRequest& WithMinSize(int value) { SetMinSize(value); return *this;} /** *

The maximum size of the Auto Scaling group.

With a mixed * instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need * to go above MaxSize to meet your capacity requirements. In this * event, Amazon EC2 Auto Scaling will never go above MaxSize by more * than your largest instance weight (weights that define how many units each * instance contributes to the desired capacity of the group).

*/ inline int GetMaxSize() const{ return m_maxSize; } /** *

The maximum size of the Auto Scaling group.

With a mixed * instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need * to go above MaxSize to meet your capacity requirements. In this * event, Amazon EC2 Auto Scaling will never go above MaxSize by more * than your largest instance weight (weights that define how many units each * instance contributes to the desired capacity of the group).

*/ inline bool MaxSizeHasBeenSet() const { return m_maxSizeHasBeenSet; } /** *

The maximum size of the Auto Scaling group.

With a mixed * instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need * to go above MaxSize to meet your capacity requirements. In this * event, Amazon EC2 Auto Scaling will never go above MaxSize by more * than your largest instance weight (weights that define how many units each * instance contributes to the desired capacity of the group).

*/ inline void SetMaxSize(int value) { m_maxSizeHasBeenSet = true; m_maxSize = value; } /** *

The maximum size of the Auto Scaling group.

With a mixed * instances policy that uses instance weighting, Amazon EC2 Auto Scaling may need * to go above MaxSize to meet your capacity requirements. In this * event, Amazon EC2 Auto Scaling will never go above MaxSize by more * than your largest instance weight (weights that define how many units each * instance contributes to the desired capacity of the group).

*/ inline UpdateAutoScalingGroupRequest& WithMaxSize(int value) { SetMaxSize(value); return *this;} /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain. This number * must be greater than or equal to the minimum size of the group and less than or * equal to the maximum size of the group.

*/ inline int GetDesiredCapacity() const{ return m_desiredCapacity; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain. This number * must be greater than or equal to the minimum size of the group and less than or * equal to the maximum size of the group.

*/ inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain. This number * must be greater than or equal to the minimum size of the group and less than or * equal to the maximum size of the group.

*/ inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; } /** *

The desired capacity is the initial capacity of the Auto Scaling group after * this operation completes and the capacity it attempts to maintain. This number * must be greater than or equal to the minimum size of the group and less than or * equal to the maximum size of the group.

*/ inline UpdateAutoScalingGroupRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} /** *

Only needed if you use simple scaling policies.

The amount of * time, in seconds, between one scaling activity ending and another one starting * due to simple scaling policies. For more information, see Scaling * cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.

*/ inline int GetDefaultCooldown() const{ return m_defaultCooldown; } /** *

Only needed if you use simple scaling policies.

The amount of * time, in seconds, between one scaling activity ending and another one starting * due to simple scaling policies. For more information, see Scaling * cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.

*/ inline bool DefaultCooldownHasBeenSet() const { return m_defaultCooldownHasBeenSet; } /** *

Only needed if you use simple scaling policies.

The amount of * time, in seconds, between one scaling activity ending and another one starting * due to simple scaling policies. For more information, see Scaling * cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.

*/ inline void SetDefaultCooldown(int value) { m_defaultCooldownHasBeenSet = true; m_defaultCooldown = value; } /** *

Only needed if you use simple scaling policies.

The amount of * time, in seconds, between one scaling activity ending and another one starting * due to simple scaling policies. For more information, see Scaling * cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User * Guide.

*/ inline UpdateAutoScalingGroupRequest& WithDefaultCooldown(int value) { SetDefaultCooldown(value); return *this;} /** *

One or more Availability Zones for the group.

*/ inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; } /** *

One or more Availability Zones for the group.

*/ inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; } /** *

One or more Availability Zones for the group.

*/ inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; } /** *

One or more Availability Zones for the group.

*/ inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); } /** *

One or more Availability Zones for the group.

*/ inline UpdateAutoScalingGroupRequest& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;} /** *

One or more Availability Zones for the group.

*/ inline UpdateAutoScalingGroupRequest& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;} /** *

One or more Availability Zones for the group.

*/ inline UpdateAutoScalingGroupRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

One or more Availability Zones for the group.

*/ inline UpdateAutoScalingGroupRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; } /** *

One or more Availability Zones for the group.

*/ inline UpdateAutoScalingGroupRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; } /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline const Aws::String& GetHealthCheckType() const{ return m_healthCheckType; } /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline bool HealthCheckTypeHasBeenSet() const { return m_healthCheckTypeHasBeenSet; } /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline void SetHealthCheckType(const Aws::String& value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType = value; } /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline void SetHealthCheckType(Aws::String&& value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType = std::move(value); } /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline void SetHealthCheckType(const char* value) { m_healthCheckTypeHasBeenSet = true; m_healthCheckType.assign(value); } /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline UpdateAutoScalingGroupRequest& WithHealthCheckType(const Aws::String& value) { SetHealthCheckType(value); return *this;} /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline UpdateAutoScalingGroupRequest& WithHealthCheckType(Aws::String&& value) { SetHealthCheckType(std::move(value)); return *this;} /** *

A comma-separated value string of one or more health check types.

The * valid values are EC2, ELB, and * VPC_LATTICE. EC2 is the default health check and * cannot be disabled. For more information, see Health * checks for Auto Scaling instances in the Amazon EC2 Auto Scaling User * Guide.

Only specify EC2 if you must clear a value that * was previously set.

*/ inline UpdateAutoScalingGroupRequest& WithHealthCheckType(const char* value) { SetHealthCheckType(value); return *this;} /** *

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before * checking the health status of an EC2 instance that has come into service and * marking it unhealthy due to a failed health check. This is useful if your * instances do not immediately pass their health checks after they enter the * InService state. For more information, see Set * the health check grace period for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

*/ inline int GetHealthCheckGracePeriod() const{ return m_healthCheckGracePeriod; } /** *

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before * checking the health status of an EC2 instance that has come into service and * marking it unhealthy due to a failed health check. This is useful if your * instances do not immediately pass their health checks after they enter the * InService state. For more information, see Set * the health check grace period for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

*/ inline bool HealthCheckGracePeriodHasBeenSet() const { return m_healthCheckGracePeriodHasBeenSet; } /** *

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before * checking the health status of an EC2 instance that has come into service and * marking it unhealthy due to a failed health check. This is useful if your * instances do not immediately pass their health checks after they enter the * InService state. For more information, see Set * the health check grace period for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

*/ inline void SetHealthCheckGracePeriod(int value) { m_healthCheckGracePeriodHasBeenSet = true; m_healthCheckGracePeriod = value; } /** *

The amount of time, in seconds, that Amazon EC2 Auto Scaling waits before * checking the health status of an EC2 instance that has come into service and * marking it unhealthy due to a failed health check. This is useful if your * instances do not immediately pass their health checks after they enter the * InService state. For more information, see Set * the health check grace period for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithHealthCheckGracePeriod(int value) { SetHealthCheckGracePeriod(value); return *this;} /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline const Aws::String& GetPlacementGroup() const{ return m_placementGroup; } /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline bool PlacementGroupHasBeenSet() const { return m_placementGroupHasBeenSet; } /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline void SetPlacementGroup(const Aws::String& value) { m_placementGroupHasBeenSet = true; m_placementGroup = value; } /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline void SetPlacementGroup(Aws::String&& value) { m_placementGroupHasBeenSet = true; m_placementGroup = std::move(value); } /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline void SetPlacementGroup(const char* value) { m_placementGroupHasBeenSet = true; m_placementGroup.assign(value); } /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline UpdateAutoScalingGroupRequest& WithPlacementGroup(const Aws::String& value) { SetPlacementGroup(value); return *this;} /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline UpdateAutoScalingGroupRequest& WithPlacementGroup(Aws::String&& value) { SetPlacementGroup(std::move(value)); return *this;} /** *

The name of an existing placement group into which to launch your instances. * For more information, see Placement * groups in the Amazon EC2 User Guide for Linux Instances.

*

A cluster placement group is a logical grouping of instances within a * single Availability Zone. You cannot specify multiple Availability Zones and a * cluster placement group.

*/ inline UpdateAutoScalingGroupRequest& WithPlacementGroup(const char* value) { SetPlacementGroup(value); return *this;} /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline const Aws::String& GetVPCZoneIdentifier() const{ return m_vPCZoneIdentifier; } /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline bool VPCZoneIdentifierHasBeenSet() const { return m_vPCZoneIdentifierHasBeenSet; } /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline void SetVPCZoneIdentifier(const Aws::String& value) { m_vPCZoneIdentifierHasBeenSet = true; m_vPCZoneIdentifier = value; } /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline void SetVPCZoneIdentifier(Aws::String&& value) { m_vPCZoneIdentifierHasBeenSet = true; m_vPCZoneIdentifier = std::move(value); } /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline void SetVPCZoneIdentifier(const char* value) { m_vPCZoneIdentifierHasBeenSet = true; m_vPCZoneIdentifier.assign(value); } /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline UpdateAutoScalingGroupRequest& WithVPCZoneIdentifier(const Aws::String& value) { SetVPCZoneIdentifier(value); return *this;} /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline UpdateAutoScalingGroupRequest& WithVPCZoneIdentifier(Aws::String&& value) { SetVPCZoneIdentifier(std::move(value)); return *this;} /** *

A comma-separated list of subnet IDs for a virtual private cloud (VPC). If * you specify VPCZoneIdentifier with AvailabilityZones, * the subnets that you specify must reside in those Availability Zones.

*/ inline UpdateAutoScalingGroupRequest& WithVPCZoneIdentifier(const char* value) { SetVPCZoneIdentifier(value); return *this;} /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline const Aws::Vector& GetTerminationPolicies() const{ return m_terminationPolicies; } /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline bool TerminationPoliciesHasBeenSet() const { return m_terminationPoliciesHasBeenSet; } /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline void SetTerminationPolicies(const Aws::Vector& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies = value; } /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline void SetTerminationPolicies(Aws::Vector&& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies = std::move(value); } /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline UpdateAutoScalingGroupRequest& WithTerminationPolicies(const Aws::Vector& value) { SetTerminationPolicies(value); return *this;} /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline UpdateAutoScalingGroupRequest& WithTerminationPolicies(Aws::Vector&& value) { SetTerminationPolicies(std::move(value)); return *this;} /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline UpdateAutoScalingGroupRequest& AddTerminationPolicies(const Aws::String& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies.push_back(value); return *this; } /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline UpdateAutoScalingGroupRequest& AddTerminationPolicies(Aws::String&& value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies.push_back(std::move(value)); return *this; } /** *

A policy or a list of policies that are used to select the instances to * terminate. The policies are executed in the order that you list them. For more * information, see Work * with Amazon EC2 Auto Scaling termination policies in the Amazon EC2 Auto * Scaling User Guide.

Valid values: Default | * AllocationStrategy | ClosestToNextInstanceHour | * NewestInstance | OldestInstance | * OldestLaunchConfiguration | OldestLaunchTemplate | * arn:aws:lambda:region:account-id:function:my-function:my-alias

*/ inline UpdateAutoScalingGroupRequest& AddTerminationPolicies(const char* value) { m_terminationPoliciesHasBeenSet = true; m_terminationPolicies.push_back(value); return *this; } /** *

Indicates whether newly launched instances are protected from termination by * Amazon EC2 Auto Scaling when scaling in. For more information about preventing * instances from terminating on scale in, see Using * instance scale-in protection in the Amazon EC2 Auto Scaling User * Guide.

*/ inline bool GetNewInstancesProtectedFromScaleIn() const{ return m_newInstancesProtectedFromScaleIn; } /** *

Indicates whether newly launched instances are protected from termination by * Amazon EC2 Auto Scaling when scaling in. For more information about preventing * instances from terminating on scale in, see Using * instance scale-in protection in the Amazon EC2 Auto Scaling User * Guide.

*/ inline bool NewInstancesProtectedFromScaleInHasBeenSet() const { return m_newInstancesProtectedFromScaleInHasBeenSet; } /** *

Indicates whether newly launched instances are protected from termination by * Amazon EC2 Auto Scaling when scaling in. For more information about preventing * instances from terminating on scale in, see Using * instance scale-in protection in the Amazon EC2 Auto Scaling User * Guide.

*/ inline void SetNewInstancesProtectedFromScaleIn(bool value) { m_newInstancesProtectedFromScaleInHasBeenSet = true; m_newInstancesProtectedFromScaleIn = value; } /** *

Indicates whether newly launched instances are protected from termination by * Amazon EC2 Auto Scaling when scaling in. For more information about preventing * instances from terminating on scale in, see Using * instance scale-in protection in the Amazon EC2 Auto Scaling User * Guide.

*/ inline UpdateAutoScalingGroupRequest& WithNewInstancesProtectedFromScaleIn(bool value) { SetNewInstancesProtectedFromScaleIn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline const Aws::String& GetServiceLinkedRoleARN() const{ return m_serviceLinkedRoleARN; } /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline bool ServiceLinkedRoleARNHasBeenSet() const { return m_serviceLinkedRoleARNHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline void SetServiceLinkedRoleARN(const Aws::String& value) { m_serviceLinkedRoleARNHasBeenSet = true; m_serviceLinkedRoleARN = value; } /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline void SetServiceLinkedRoleARN(Aws::String&& value) { m_serviceLinkedRoleARNHasBeenSet = true; m_serviceLinkedRoleARN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline void SetServiceLinkedRoleARN(const char* value) { m_serviceLinkedRoleARNHasBeenSet = true; m_serviceLinkedRoleARN.assign(value); } /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithServiceLinkedRoleARN(const Aws::String& value) { SetServiceLinkedRoleARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithServiceLinkedRoleARN(Aws::String&& value) { SetServiceLinkedRoleARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the service-linked role that the Auto * Scaling group uses to call other Amazon Web Services on your behalf. For more * information, see Service-linked * roles in the Amazon EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithServiceLinkedRoleARN(const char* value) { SetServiceLinkedRoleARN(value); return *this;} /** *

The maximum amount of time, in seconds, that an instance can be in service. * The default is null. If specified, the value must be either 0 or a number equal * to or greater than 86,400 seconds (1 day). To clear a previously set value, * specify a new value of 0. For more information, see Replacing * Auto Scaling instances based on maximum instance lifetime in the Amazon * EC2 Auto Scaling User Guide.

*/ inline int GetMaxInstanceLifetime() const{ return m_maxInstanceLifetime; } /** *

The maximum amount of time, in seconds, that an instance can be in service. * The default is null. If specified, the value must be either 0 or a number equal * to or greater than 86,400 seconds (1 day). To clear a previously set value, * specify a new value of 0. For more information, see Replacing * Auto Scaling instances based on maximum instance lifetime in the Amazon * EC2 Auto Scaling User Guide.

*/ inline bool MaxInstanceLifetimeHasBeenSet() const { return m_maxInstanceLifetimeHasBeenSet; } /** *

The maximum amount of time, in seconds, that an instance can be in service. * The default is null. If specified, the value must be either 0 or a number equal * to or greater than 86,400 seconds (1 day). To clear a previously set value, * specify a new value of 0. For more information, see Replacing * Auto Scaling instances based on maximum instance lifetime in the Amazon * EC2 Auto Scaling User Guide.

*/ inline void SetMaxInstanceLifetime(int value) { m_maxInstanceLifetimeHasBeenSet = true; m_maxInstanceLifetime = value; } /** *

The maximum amount of time, in seconds, that an instance can be in service. * The default is null. If specified, the value must be either 0 or a number equal * to or greater than 86,400 seconds (1 day). To clear a previously set value, * specify a new value of 0. For more information, see Replacing * Auto Scaling instances based on maximum instance lifetime in the Amazon * EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithMaxInstanceLifetime(int value) { SetMaxInstanceLifetime(value); return *this;} /** *

Enables or disables Capacity Rebalancing. For more information, see Use * Capacity Rebalancing to handle Amazon EC2 Spot Interruptions in the * Amazon EC2 Auto Scaling User Guide.

*/ inline bool GetCapacityRebalance() const{ return m_capacityRebalance; } /** *

Enables or disables Capacity Rebalancing. For more information, see Use * Capacity Rebalancing to handle Amazon EC2 Spot Interruptions in the * Amazon EC2 Auto Scaling User Guide.

*/ inline bool CapacityRebalanceHasBeenSet() const { return m_capacityRebalanceHasBeenSet; } /** *

Enables or disables Capacity Rebalancing. For more information, see Use * Capacity Rebalancing to handle Amazon EC2 Spot Interruptions in the * Amazon EC2 Auto Scaling User Guide.

*/ inline void SetCapacityRebalance(bool value) { m_capacityRebalanceHasBeenSet = true; m_capacityRebalance = value; } /** *

Enables or disables Capacity Rebalancing. For more information, see Use * Capacity Rebalancing to handle Amazon EC2 Spot Interruptions in the * Amazon EC2 Auto Scaling User Guide.

*/ inline UpdateAutoScalingGroupRequest& WithCapacityRebalance(bool value) { SetCapacityRebalance(value); return *this;} /** *

Reserved.

*/ inline const Aws::String& GetContext() const{ return m_context; } /** *

Reserved.

*/ inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; } /** *

Reserved.

*/ inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; } /** *

Reserved.

*/ inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); } /** *

Reserved.

*/ inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); } /** *

Reserved.

*/ inline UpdateAutoScalingGroupRequest& WithContext(const Aws::String& value) { SetContext(value); return *this;} /** *

Reserved.

*/ inline UpdateAutoScalingGroupRequest& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;} /** *

Reserved.

*/ inline UpdateAutoScalingGroupRequest& WithContext(const char* value) { SetContext(value); return *this;} /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline const Aws::String& GetDesiredCapacityType() const{ return m_desiredCapacityType; } /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline bool DesiredCapacityTypeHasBeenSet() const { return m_desiredCapacityTypeHasBeenSet; } /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline void SetDesiredCapacityType(const Aws::String& value) { m_desiredCapacityTypeHasBeenSet = true; m_desiredCapacityType = value; } /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline void SetDesiredCapacityType(Aws::String&& value) { m_desiredCapacityTypeHasBeenSet = true; m_desiredCapacityType = std::move(value); } /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline void SetDesiredCapacityType(const char* value) { m_desiredCapacityTypeHasBeenSet = true; m_desiredCapacityType.assign(value); } /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline UpdateAutoScalingGroupRequest& WithDesiredCapacityType(const Aws::String& value) { SetDesiredCapacityType(value); return *this;} /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline UpdateAutoScalingGroupRequest& WithDesiredCapacityType(Aws::String&& value) { SetDesiredCapacityType(std::move(value)); return *this;} /** *

The unit of measurement for the value specified for desired capacity. Amazon * EC2 Auto Scaling supports DesiredCapacityType for attribute-based * instance type selection only. For more information, see Creating * an Auto Scaling group using attribute-based instance type selection in the * Amazon EC2 Auto Scaling User Guide.

By default, Amazon EC2 Auto * Scaling specifies units, which translates into number of * instances.

Valid values: units | vcpu | * memory-mib

*/ inline UpdateAutoScalingGroupRequest& WithDesiredCapacityType(const char* value) { SetDesiredCapacityType(value); return *this;} /** *

The amount of time, in seconds, until a new instance is considered to have * finished initializing and resource consumption to become stable after it enters * the InService state.

During an instance refresh, Amazon EC2 * Auto Scaling waits for the warm-up period after it replaces an instance before * it moves on to replacing the next instance. Amazon EC2 Auto Scaling also waits * for the warm-up period before aggregating the metrics for new instances with * existing instances in the Amazon CloudWatch metrics that are used for scaling, * resulting in more reliable usage data. For more information, see Set * the default instance warmup for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

To manage various warm-up * settings at the group level, we recommend that you set the default instance * warmup, even if it is set to 0 seconds. To remove a value that you * previously set, include the property but specify -1 for the value. * However, we strongly recommend keeping the default instance warmup enabled by * specifying a value of 0 or other nominal value.

*/ inline int GetDefaultInstanceWarmup() const{ return m_defaultInstanceWarmup; } /** *

The amount of time, in seconds, until a new instance is considered to have * finished initializing and resource consumption to become stable after it enters * the InService state.

During an instance refresh, Amazon EC2 * Auto Scaling waits for the warm-up period after it replaces an instance before * it moves on to replacing the next instance. Amazon EC2 Auto Scaling also waits * for the warm-up period before aggregating the metrics for new instances with * existing instances in the Amazon CloudWatch metrics that are used for scaling, * resulting in more reliable usage data. For more information, see Set * the default instance warmup for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

To manage various warm-up * settings at the group level, we recommend that you set the default instance * warmup, even if it is set to 0 seconds. To remove a value that you * previously set, include the property but specify -1 for the value. * However, we strongly recommend keeping the default instance warmup enabled by * specifying a value of 0 or other nominal value.

*/ inline bool DefaultInstanceWarmupHasBeenSet() const { return m_defaultInstanceWarmupHasBeenSet; } /** *

The amount of time, in seconds, until a new instance is considered to have * finished initializing and resource consumption to become stable after it enters * the InService state.

During an instance refresh, Amazon EC2 * Auto Scaling waits for the warm-up period after it replaces an instance before * it moves on to replacing the next instance. Amazon EC2 Auto Scaling also waits * for the warm-up period before aggregating the metrics for new instances with * existing instances in the Amazon CloudWatch metrics that are used for scaling, * resulting in more reliable usage data. For more information, see Set * the default instance warmup for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

To manage various warm-up * settings at the group level, we recommend that you set the default instance * warmup, even if it is set to 0 seconds. To remove a value that you * previously set, include the property but specify -1 for the value. * However, we strongly recommend keeping the default instance warmup enabled by * specifying a value of 0 or other nominal value.

*/ inline void SetDefaultInstanceWarmup(int value) { m_defaultInstanceWarmupHasBeenSet = true; m_defaultInstanceWarmup = value; } /** *

The amount of time, in seconds, until a new instance is considered to have * finished initializing and resource consumption to become stable after it enters * the InService state.

During an instance refresh, Amazon EC2 * Auto Scaling waits for the warm-up period after it replaces an instance before * it moves on to replacing the next instance. Amazon EC2 Auto Scaling also waits * for the warm-up period before aggregating the metrics for new instances with * existing instances in the Amazon CloudWatch metrics that are used for scaling, * resulting in more reliable usage data. For more information, see Set * the default instance warmup for an Auto Scaling group in the Amazon EC2 * Auto Scaling User Guide.

To manage various warm-up * settings at the group level, we recommend that you set the default instance * warmup, even if it is set to 0 seconds. To remove a value that you * previously set, include the property but specify -1 for the value. * However, we strongly recommend keeping the default instance warmup enabled by * specifying a value of 0 or other nominal value.

*/ inline UpdateAutoScalingGroupRequest& WithDefaultInstanceWarmup(int value) { SetDefaultInstanceWarmup(value); return *this;} private: Aws::String m_autoScalingGroupName; bool m_autoScalingGroupNameHasBeenSet = false; Aws::String m_launchConfigurationName; bool m_launchConfigurationNameHasBeenSet = false; LaunchTemplateSpecification m_launchTemplate; bool m_launchTemplateHasBeenSet = false; MixedInstancesPolicy m_mixedInstancesPolicy; bool m_mixedInstancesPolicyHasBeenSet = false; int m_minSize; bool m_minSizeHasBeenSet = false; int m_maxSize; bool m_maxSizeHasBeenSet = false; int m_desiredCapacity; bool m_desiredCapacityHasBeenSet = false; int m_defaultCooldown; bool m_defaultCooldownHasBeenSet = false; Aws::Vector m_availabilityZones; bool m_availabilityZonesHasBeenSet = false; Aws::String m_healthCheckType; bool m_healthCheckTypeHasBeenSet = false; int m_healthCheckGracePeriod; bool m_healthCheckGracePeriodHasBeenSet = false; Aws::String m_placementGroup; bool m_placementGroupHasBeenSet = false; Aws::String m_vPCZoneIdentifier; bool m_vPCZoneIdentifierHasBeenSet = false; Aws::Vector m_terminationPolicies; bool m_terminationPoliciesHasBeenSet = false; bool m_newInstancesProtectedFromScaleIn; bool m_newInstancesProtectedFromScaleInHasBeenSet = false; Aws::String m_serviceLinkedRoleARN; bool m_serviceLinkedRoleARNHasBeenSet = false; int m_maxInstanceLifetime; bool m_maxInstanceLifetimeHasBeenSet = false; bool m_capacityRebalance; bool m_capacityRebalanceHasBeenSet = false; Aws::String m_context; bool m_contextHasBeenSet = false; Aws::String m_desiredCapacityType; bool m_desiredCapacityTypeHasBeenSet = false; int m_defaultInstanceWarmup; bool m_defaultInstanceWarmupHasBeenSet = false; }; } // namespace Model } // namespace AutoScaling } // namespace Aws