7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/autoscaling/model/LaunchTemplateSpecification.h>
11#include <aws/autoscaling/model/MixedInstancesPolicy.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/autoscaling/model/InstanceMaintenancePolicy.h>
14#include <aws/autoscaling/model/LifecycleHookSpecification.h>
15#include <aws/autoscaling/model/Tag.h>
16#include <aws/autoscaling/model/TrafficSourceIdentifier.h>
57 inline void SetAutoScalingGroupName(
const char* value) { m_autoScalingGroupNameHasBeenSet =
true; m_autoScalingGroupName.assign(value); }
75 inline void SetLaunchConfigurationName(
const char* value) { m_launchConfigurationNameHasBeenSet =
true; m_launchConfigurationName.assign(value); }
133 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
145 inline void SetMinSize(
int value) { m_minSizeHasBeenSet =
true; m_minSize = value; }
160 inline void SetMaxSize(
int value) { m_maxSizeHasBeenSet =
true; m_maxSize = value; }
175 inline void SetDesiredCapacity(
int value) { m_desiredCapacityHasBeenSet =
true; m_desiredCapacity = value; }
190 inline void SetDefaultCooldown(
int value) { m_defaultCooldownHasBeenSet =
true; m_defaultCooldown = value; }
266 inline void SetHealthCheckType(
const char* value) { m_healthCheckTypeHasBeenSet =
true; m_healthCheckType.assign(value); }
303 inline void SetPlacementGroup(
const char* value) { m_placementGroupHasBeenSet =
true; m_placementGroup.assign(value); }
320 inline void SetVPCZoneIdentifier(
const char* value) { m_vPCZoneIdentifierHasBeenSet =
true; m_vPCZoneIdentifier.assign(value); }
378 inline void SetCapacityRebalance(
bool value) { m_capacityRebalanceHasBeenSet =
true; m_capacityRebalance = value; }
434 inline void SetServiceLinkedRoleARN(
const char* value) { m_serviceLinkedRoleARNHasBeenSet =
true; m_serviceLinkedRoleARN.assign(value); }
463 inline void SetContext(
const char* value) { m_contextHasBeenSet =
true; m_context.assign(value); }
485 inline void SetDesiredCapacityType(
const char* value) { m_desiredCapacityTypeHasBeenSet =
true; m_desiredCapacityType.assign(value); }
551 bool m_autoScalingGroupNameHasBeenSet =
false;
554 bool m_launchConfigurationNameHasBeenSet =
false;
557 bool m_launchTemplateHasBeenSet =
false;
560 bool m_mixedInstancesPolicyHasBeenSet =
false;
563 bool m_instanceIdHasBeenSet =
false;
566 bool m_minSizeHasBeenSet =
false;
569 bool m_maxSizeHasBeenSet =
false;
571 int m_desiredCapacity;
572 bool m_desiredCapacityHasBeenSet =
false;
574 int m_defaultCooldown;
575 bool m_defaultCooldownHasBeenSet =
false;
578 bool m_availabilityZonesHasBeenSet =
false;
581 bool m_loadBalancerNamesHasBeenSet =
false;
584 bool m_targetGroupARNsHasBeenSet =
false;
587 bool m_healthCheckTypeHasBeenSet =
false;
589 int m_healthCheckGracePeriod;
590 bool m_healthCheckGracePeriodHasBeenSet =
false;
593 bool m_placementGroupHasBeenSet =
false;
596 bool m_vPCZoneIdentifierHasBeenSet =
false;
599 bool m_terminationPoliciesHasBeenSet =
false;
601 bool m_newInstancesProtectedFromScaleIn;
602 bool m_newInstancesProtectedFromScaleInHasBeenSet =
false;
604 bool m_capacityRebalance;
605 bool m_capacityRebalanceHasBeenSet =
false;
608 bool m_lifecycleHookSpecificationListHasBeenSet =
false;
611 bool m_tagsHasBeenSet =
false;
614 bool m_serviceLinkedRoleARNHasBeenSet =
false;
616 int m_maxInstanceLifetime;
617 bool m_maxInstanceLifetimeHasBeenSet =
false;
620 bool m_contextHasBeenSet =
false;
623 bool m_desiredCapacityTypeHasBeenSet =
false;
625 int m_defaultInstanceWarmup;
626 bool m_defaultInstanceWarmupHasBeenSet =
false;
629 bool m_trafficSourcesHasBeenSet =
false;
632 bool m_instanceMaintenancePolicyHasBeenSet =
false;
bool ContextHasBeenSet() const
CreateAutoScalingGroupRequest & WithTags(const Aws::Vector< Tag > &value)
CreateAutoScalingGroupRequest & WithInstanceId(Aws::String &&value)
void SetServiceLinkedRoleARN(Aws::String &&value)
void SetContext(Aws::String &&value)
void SetHealthCheckGracePeriod(int value)
CreateAutoScalingGroupRequest & WithDesiredCapacityType(Aws::String &&value)
void SetServiceLinkedRoleARN(const char *value)
void SetMaxInstanceLifetime(int value)
bool TargetGroupARNsHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
void SetAutoScalingGroupName(const Aws::String &value)
CreateAutoScalingGroupRequest & WithTrafficSources(Aws::Vector< TrafficSourceIdentifier > &&value)
bool LaunchTemplateHasBeenSet() const
void SetLifecycleHookSpecificationList(Aws::Vector< LifecycleHookSpecification > &&value)
CreateAutoScalingGroupRequest & WithDesiredCapacityType(const char *value)
AWS_AUTOSCALING_API CreateAutoScalingGroupRequest()
CreateAutoScalingGroupRequest & WithContext(const char *value)
CreateAutoScalingGroupRequest & AddTerminationPolicies(const Aws::String &value)
void SetHealthCheckType(const Aws::String &value)
CreateAutoScalingGroupRequest & AddTargetGroupARNs(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
CreateAutoScalingGroupRequest & AddAvailabilityZones(const char *value)
CreateAutoScalingGroupRequest & WithLoadBalancerNames(Aws::Vector< Aws::String > &&value)
void SetAutoScalingGroupName(Aws::String &&value)
CreateAutoScalingGroupRequest & WithLaunchConfigurationName(Aws::String &&value)
CreateAutoScalingGroupRequest & WithLoadBalancerNames(const Aws::Vector< Aws::String > &value)
const LaunchTemplateSpecification & GetLaunchTemplate() const
void SetPlacementGroup(const char *value)
const Aws::Vector< Aws::String > & GetLoadBalancerNames() const
CreateAutoScalingGroupRequest & AddTags(const Tag &value)
bool TrafficSourcesHasBeenSet() const
CreateAutoScalingGroupRequest & WithLaunchTemplate(const LaunchTemplateSpecification &value)
void SetTerminationPolicies(const Aws::Vector< Aws::String > &value)
CreateAutoScalingGroupRequest & AddTargetGroupARNs(const Aws::String &value)
CreateAutoScalingGroupRequest & WithServiceLinkedRoleARN(const char *value)
CreateAutoScalingGroupRequest & WithHealthCheckType(Aws::String &&value)
CreateAutoScalingGroupRequest & WithHealthCheckGracePeriod(int value)
CreateAutoScalingGroupRequest & WithInstanceId(const Aws::String &value)
void SetDesiredCapacityType(const char *value)
void SetTrafficSources(Aws::Vector< TrafficSourceIdentifier > &&value)
bool LifecycleHookSpecificationListHasBeenSet() const
const Aws::String & GetDesiredCapacityType() const
void SetDesiredCapacityType(const Aws::String &value)
CreateAutoScalingGroupRequest & WithInstanceMaintenancePolicy(InstanceMaintenancePolicy &&value)
int GetDesiredCapacity() const
CreateAutoScalingGroupRequest & WithLifecycleHookSpecificationList(const Aws::Vector< LifecycleHookSpecification > &value)
void SetLaunchConfigurationName(const Aws::String &value)
CreateAutoScalingGroupRequest & WithInstanceId(const char *value)
CreateAutoScalingGroupRequest & WithMixedInstancesPolicy(const MixedInstancesPolicy &value)
void SetVPCZoneIdentifier(const char *value)
void SetLoadBalancerNames(Aws::Vector< Aws::String > &&value)
CreateAutoScalingGroupRequest & AddTerminationPolicies(const char *value)
const Aws::String & GetInstanceId() const
const Aws::String & GetLaunchConfigurationName() const
CreateAutoScalingGroupRequest & AddLoadBalancerNames(const char *value)
void SetDefaultInstanceWarmup(int value)
bool InstanceMaintenancePolicyHasBeenSet() const
const InstanceMaintenancePolicy & GetInstanceMaintenancePolicy() const
const Aws::String & GetHealthCheckType() const
bool DesiredCapacityHasBeenSet() const
CreateAutoScalingGroupRequest & WithLaunchConfigurationName(const Aws::String &value)
int GetDefaultInstanceWarmup() const
CreateAutoScalingGroupRequest & WithAutoScalingGroupName(const Aws::String &value)
CreateAutoScalingGroupRequest & WithDesiredCapacity(int value)
const Aws::String & GetAutoScalingGroupName() const
CreateAutoScalingGroupRequest & WithMixedInstancesPolicy(MixedInstancesPolicy &&value)
bool HealthCheckTypeHasBeenSet() const
CreateAutoScalingGroupRequest & AddLoadBalancerNames(Aws::String &&value)
const Aws::String & GetContext() const
bool VPCZoneIdentifierHasBeenSet() const
bool MaxInstanceLifetimeHasBeenSet() const
bool AutoScalingGroupNameHasBeenSet() const
CreateAutoScalingGroupRequest & WithContext(const Aws::String &value)
CreateAutoScalingGroupRequest & WithTerminationPolicies(Aws::Vector< Aws::String > &&value)
CreateAutoScalingGroupRequest & WithCapacityRebalance(bool value)
void SetTerminationPolicies(Aws::Vector< Aws::String > &&value)
void SetInstanceId(const char *value)
CreateAutoScalingGroupRequest & WithNewInstancesProtectedFromScaleIn(bool value)
void SetTrafficSources(const Aws::Vector< TrafficSourceIdentifier > &value)
const Aws::Vector< Aws::String > & GetTargetGroupARNs() const
const Aws::Vector< Tag > & GetTags() const
void SetHealthCheckType(const char *value)
bool MixedInstancesPolicyHasBeenSet() const
void SetLaunchTemplate(const LaunchTemplateSpecification &value)
CreateAutoScalingGroupRequest & WithTargetGroupARNs(const Aws::Vector< Aws::String > &value)
CreateAutoScalingGroupRequest & WithDefaultInstanceWarmup(int value)
CreateAutoScalingGroupRequest & AddLifecycleHookSpecificationList(LifecycleHookSpecification &&value)
CreateAutoScalingGroupRequest & WithDefaultCooldown(int value)
void SetInstanceId(const Aws::String &value)
void SetInstanceMaintenancePolicy(InstanceMaintenancePolicy &&value)
void SetNewInstancesProtectedFromScaleIn(bool value)
const Aws::String & GetVPCZoneIdentifier() const
CreateAutoScalingGroupRequest & WithVPCZoneIdentifier(const char *value)
void SetLifecycleHookSpecificationList(const Aws::Vector< LifecycleHookSpecification > &value)
void SetContext(const Aws::String &value)
void SetDesiredCapacity(int value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
bool MinSizeHasBeenSet() const
void SetMixedInstancesPolicy(MixedInstancesPolicy &&value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateAutoScalingGroupRequest & WithHealthCheckType(const Aws::String &value)
bool NewInstancesProtectedFromScaleInHasBeenSet() const
CreateAutoScalingGroupRequest & WithAutoScalingGroupName(Aws::String &&value)
CreateAutoScalingGroupRequest & WithServiceLinkedRoleARN(Aws::String &&value)
bool GetCapacityRebalance() const
CreateAutoScalingGroupRequest & WithTags(Aws::Vector< Tag > &&value)
int GetHealthCheckGracePeriod() const
CreateAutoScalingGroupRequest & AddTags(Tag &&value)
void SetHealthCheckType(Aws::String &&value)
CreateAutoScalingGroupRequest & WithContext(Aws::String &&value)
const Aws::String & GetPlacementGroup() const
bool AvailabilityZonesHasBeenSet() const
CreateAutoScalingGroupRequest & AddTargetGroupARNs(Aws::String &&value)
bool DefaultCooldownHasBeenSet() const
virtual const char * GetServiceRequestName() const override
void SetMinSize(int value)
void SetDesiredCapacityType(Aws::String &&value)
bool TagsHasBeenSet() const
void SetContext(const char *value)
CreateAutoScalingGroupRequest & WithLifecycleHookSpecificationList(Aws::Vector< LifecycleHookSpecification > &&value)
bool DesiredCapacityTypeHasBeenSet() const
CreateAutoScalingGroupRequest & WithInstanceMaintenancePolicy(const InstanceMaintenancePolicy &value)
void SetCapacityRebalance(bool value)
bool InstanceIdHasBeenSet() const
void SetServiceLinkedRoleARN(const Aws::String &value)
void SetTargetGroupARNs(Aws::Vector< Aws::String > &&value)
void SetVPCZoneIdentifier(Aws::String &&value)
CreateAutoScalingGroupRequest & WithHealthCheckType(const char *value)
CreateAutoScalingGroupRequest & AddAvailabilityZones(const Aws::String &value)
CreateAutoScalingGroupRequest & WithServiceLinkedRoleARN(const Aws::String &value)
CreateAutoScalingGroupRequest & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
CreateAutoScalingGroupRequest & AddLoadBalancerNames(const Aws::String &value)
void SetInstanceMaintenancePolicy(const InstanceMaintenancePolicy &value)
void SetLaunchConfigurationName(Aws::String &&value)
void SetLaunchTemplate(LaunchTemplateSpecification &&value)
void SetInstanceId(Aws::String &&value)
bool LaunchConfigurationNameHasBeenSet() const
CreateAutoScalingGroupRequest & WithLaunchTemplate(LaunchTemplateSpecification &&value)
bool MaxSizeHasBeenSet() const
CreateAutoScalingGroupRequest & AddTrafficSources(const TrafficSourceIdentifier &value)
bool GetNewInstancesProtectedFromScaleIn() const
void SetDefaultCooldown(int value)
void SetLaunchConfigurationName(const char *value)
const Aws::Vector< TrafficSourceIdentifier > & GetTrafficSources() const
CreateAutoScalingGroupRequest & WithMaxSize(int value)
CreateAutoScalingGroupRequest & WithMaxInstanceLifetime(int value)
CreateAutoScalingGroupRequest & WithAutoScalingGroupName(const char *value)
void SetMaxSize(int value)
CreateAutoScalingGroupRequest & AddTerminationPolicies(Aws::String &&value)
void SetLoadBalancerNames(const Aws::Vector< Aws::String > &value)
void SetAutoScalingGroupName(const char *value)
CreateAutoScalingGroupRequest & AddAvailabilityZones(Aws::String &&value)
bool CapacityRebalanceHasBeenSet() const
CreateAutoScalingGroupRequest & WithPlacementGroup(const char *value)
bool DefaultInstanceWarmupHasBeenSet() const
CreateAutoScalingGroupRequest & WithMinSize(int value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
const Aws::Vector< Aws::String > & GetTerminationPolicies() const
bool PlacementGroupHasBeenSet() const
CreateAutoScalingGroupRequest & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
CreateAutoScalingGroupRequest & WithVPCZoneIdentifier(Aws::String &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
bool ServiceLinkedRoleARNHasBeenSet() const
CreateAutoScalingGroupRequest & AddLifecycleHookSpecificationList(const LifecycleHookSpecification &value)
void SetPlacementGroup(Aws::String &&value)
const Aws::String & GetServiceLinkedRoleARN() const
bool TerminationPoliciesHasBeenSet() const
bool LoadBalancerNamesHasBeenSet() const
void SetVPCZoneIdentifier(const Aws::String &value)
void SetPlacementGroup(const Aws::String &value)
const MixedInstancesPolicy & GetMixedInstancesPolicy() const
bool HealthCheckGracePeriodHasBeenSet() const
CreateAutoScalingGroupRequest & WithVPCZoneIdentifier(const Aws::String &value)
void SetMixedInstancesPolicy(const MixedInstancesPolicy &value)
CreateAutoScalingGroupRequest & WithTerminationPolicies(const Aws::Vector< Aws::String > &value)
CreateAutoScalingGroupRequest & WithPlacementGroup(Aws::String &&value)
CreateAutoScalingGroupRequest & WithTargetGroupARNs(Aws::Vector< Aws::String > &&value)
CreateAutoScalingGroupRequest & WithPlacementGroup(const Aws::String &value)
CreateAutoScalingGroupRequest & WithTrafficSources(const Aws::Vector< TrafficSourceIdentifier > &value)
const Aws::Vector< LifecycleHookSpecification > & GetLifecycleHookSpecificationList() const
CreateAutoScalingGroupRequest & WithLaunchConfigurationName(const char *value)
CreateAutoScalingGroupRequest & WithDesiredCapacityType(const Aws::String &value)
CreateAutoScalingGroupRequest & AddTrafficSources(TrafficSourceIdentifier &&value)
int GetMaxInstanceLifetime() const
void SetTargetGroupARNs(const Aws::Vector< Aws::String > &value)
int GetDefaultCooldown() const
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector