@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingGroup extends Object implements Serializable, Cloneable
Describes an Auto Scaling group.
Constructor and Description |
---|
AutoScalingGroup() |
Modifier and Type | Method and Description |
---|---|
AutoScalingGroup |
clone() |
boolean |
equals(Object obj) |
String |
getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
List<String> |
getAvailabilityZones()
One or more Availability Zones for the group.
|
Boolean |
getCapacityRebalance()
Indicates whether Capacity Rebalancing is enabled.
|
String |
getContext()
Reserved.
|
Date |
getCreatedTime()
The date and time the group was created.
|
Integer |
getDefaultCooldown()
The duration of the default cooldown period, in seconds.
|
Integer |
getDefaultInstanceWarmup()
The duration of the default instance warmup, in seconds.
|
Integer |
getDesiredCapacity()
The desired size of the group.
|
String |
getDesiredCapacityType()
The unit of measurement for the value specified for desired capacity.
|
List<EnabledMetric> |
getEnabledMetrics()
The metrics enabled for the group.
|
Integer |
getHealthCheckGracePeriod()
The duration of the health check grace period, in seconds.
|
String |
getHealthCheckType()
A comma-separated value string of one or more health check types.
|
InstanceMaintenancePolicy |
getInstanceMaintenancePolicy()
An instance maintenance policy.
|
List<Instance> |
getInstances()
The EC2 instances associated with the group.
|
String |
getLaunchConfigurationName()
The name of the associated launch configuration.
|
LaunchTemplateSpecification |
getLaunchTemplate()
The launch template for the group.
|
List<String> |
getLoadBalancerNames()
One or more load balancers associated with the group.
|
Integer |
getMaxInstanceLifetime()
The maximum amount of time, in seconds, that an instance can be in service.
|
Integer |
getMaxSize()
The maximum size of the group.
|
Integer |
getMinSize()
The minimum size of the group.
|
MixedInstancesPolicy |
getMixedInstancesPolicy()
The mixed instances policy for the group.
|
Boolean |
getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
String |
getPlacementGroup()
The name of the placement group into which to launch your instances, if any.
|
Integer |
getPredictedCapacity()
The predicted capacity of the group when it has a predictive scaling policy.
|
String |
getServiceLinkedRoleARN()
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.
|
String |
getStatus()
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
|
List<SuspendedProcess> |
getSuspendedProcesses()
The suspended processes associated with the group.
|
List<TagDescription> |
getTags()
The tags for the group.
|
List<String> |
getTargetGroupARNs()
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
List<String> |
getTerminationPolicies()
The termination policies for the group.
|
List<TrafficSourceIdentifier> |
getTrafficSources()
The traffic sources associated with this Auto Scaling group.
|
String |
getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
WarmPoolConfiguration |
getWarmPoolConfiguration()
The warm pool for the group.
|
Integer |
getWarmPoolSize()
The current size of the warm pool.
|
int |
hashCode() |
Boolean |
isCapacityRebalance()
Indicates whether Capacity Rebalancing is enabled.
|
Boolean |
isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
void |
setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
void |
setCapacityRebalance(Boolean capacityRebalance)
Indicates whether Capacity Rebalancing is enabled.
|
void |
setContext(String context)
Reserved.
|
void |
setCreatedTime(Date createdTime)
The date and time the group was created.
|
void |
setDefaultCooldown(Integer defaultCooldown)
The duration of the default cooldown period, in seconds.
|
void |
setDefaultInstanceWarmup(Integer defaultInstanceWarmup)
The duration of the default instance warmup, in seconds.
|
void |
setDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
void |
setDesiredCapacityType(String desiredCapacityType)
The unit of measurement for the value specified for desired capacity.
|
void |
setEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
void |
setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The duration of the health check grace period, in seconds.
|
void |
setHealthCheckType(String healthCheckType)
A comma-separated value string of one or more health check types.
|
void |
setInstanceMaintenancePolicy(InstanceMaintenancePolicy instanceMaintenancePolicy)
An instance maintenance policy.
|
void |
setInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
|
void |
setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
|
void |
setLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
void |
setMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
|
void |
setMaxSize(Integer maxSize)
The maximum size of the group.
|
void |
setMinSize(Integer minSize)
The minimum size of the group.
|
void |
setMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
|
void |
setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
void |
setPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
|
void |
setPredictedCapacity(Integer predictedCapacity)
The predicted capacity of the group when it has a predictive scaling policy.
|
void |
setServiceLinkedRoleARN(String 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.
|
void |
setStatus(String status)
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
|
void |
setSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
void |
setTags(Collection<TagDescription> tags)
The tags for the group.
|
void |
setTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
void |
setTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
|
void |
setTrafficSources(Collection<TrafficSourceIdentifier> trafficSources)
The traffic sources associated with this Auto Scaling group.
|
void |
setVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
void |
setWarmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)
The warm pool for the group.
|
void |
setWarmPoolSize(Integer warmPoolSize)
The current size of the warm pool.
|
String |
toString()
Returns a string representation of this object.
|
AutoScalingGroup |
withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
|
AutoScalingGroup |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
|
AutoScalingGroup |
withAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup |
withAvailabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup |
withCapacityRebalance(Boolean capacityRebalance)
Indicates whether Capacity Rebalancing is enabled.
|
AutoScalingGroup |
withContext(String context)
Reserved.
|
AutoScalingGroup |
withCreatedTime(Date createdTime)
The date and time the group was created.
|
AutoScalingGroup |
withDefaultCooldown(Integer defaultCooldown)
The duration of the default cooldown period, in seconds.
|
AutoScalingGroup |
withDefaultInstanceWarmup(Integer defaultInstanceWarmup)
The duration of the default instance warmup, in seconds.
|
AutoScalingGroup |
withDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
AutoScalingGroup |
withDesiredCapacityType(String desiredCapacityType)
The unit of measurement for the value specified for desired capacity.
|
AutoScalingGroup |
withEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup |
withEnabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup |
withHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The duration of the health check grace period, in seconds.
|
AutoScalingGroup |
withHealthCheckType(String healthCheckType)
A comma-separated value string of one or more health check types.
|
AutoScalingGroup |
withInstanceMaintenancePolicy(InstanceMaintenancePolicy instanceMaintenancePolicy)
An instance maintenance policy.
|
AutoScalingGroup |
withInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
|
AutoScalingGroup |
withInstances(Instance... instances)
The EC2 instances associated with the group.
|
AutoScalingGroup |
withLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
|
AutoScalingGroup |
withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
|
AutoScalingGroup |
withLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup |
withLoadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup |
withMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
|
AutoScalingGroup |
withMaxSize(Integer maxSize)
The maximum size of the group.
|
AutoScalingGroup |
withMinSize(Integer minSize)
The minimum size of the group.
|
AutoScalingGroup |
withMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
|
AutoScalingGroup |
withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling
in.
|
AutoScalingGroup |
withPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
|
AutoScalingGroup |
withPredictedCapacity(Integer predictedCapacity)
The predicted capacity of the group when it has a predictive scaling policy.
|
AutoScalingGroup |
withServiceLinkedRoleARN(String 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.
|
AutoScalingGroup |
withStatus(String status)
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
|
AutoScalingGroup |
withSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup |
withSuspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup |
withTags(Collection<TagDescription> tags)
The tags for the group.
|
AutoScalingGroup |
withTags(TagDescription... tags)
The tags for the group.
|
AutoScalingGroup |
withTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup |
withTargetGroupARNs(String... targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
|
AutoScalingGroup |
withTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup |
withTerminationPolicies(String... terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup |
withTrafficSources(Collection<TrafficSourceIdentifier> trafficSources)
The traffic sources associated with this Auto Scaling group.
|
AutoScalingGroup |
withTrafficSources(TrafficSourceIdentifier... trafficSources)
The traffic sources associated with this Auto Scaling group.
|
AutoScalingGroup |
withVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
AutoScalingGroup |
withWarmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)
The warm pool for the group.
|
AutoScalingGroup |
withWarmPoolSize(Integer warmPoolSize)
The current size of the warm pool.
|
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public String getAutoScalingGroupName()
The name of the Auto Scaling group.
public AutoScalingGroup withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group.
autoScalingGroupName
- The name of the Auto Scaling group.public void setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.public String getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the Auto Scaling group.
public AutoScalingGroup withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the Auto Scaling group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the Auto Scaling group.public void setLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.public String getLaunchConfigurationName()
The name of the associated launch configuration.
public AutoScalingGroup withLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.public void setLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
launchTemplate
- The launch template for the group.public LaunchTemplateSpecification getLaunchTemplate()
The launch template for the group.
public AutoScalingGroup withLaunchTemplate(LaunchTemplateSpecification launchTemplate)
The launch template for the group.
launchTemplate
- The launch template for the group.public void setMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
mixedInstancesPolicy
- The mixed instances policy for the group.public MixedInstancesPolicy getMixedInstancesPolicy()
The mixed instances policy for the group.
public AutoScalingGroup withMixedInstancesPolicy(MixedInstancesPolicy mixedInstancesPolicy)
The mixed instances policy for the group.
mixedInstancesPolicy
- The mixed instances policy for the group.public void setMinSize(Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.public Integer getMinSize()
The minimum size of the group.
public AutoScalingGroup withMinSize(Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.public void setMaxSize(Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.public Integer getMaxSize()
The maximum size of the group.
public AutoScalingGroup withMaxSize(Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.public void setDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.public Integer getDesiredCapacity()
The desired size of the group.
public AutoScalingGroup withDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.public void setPredictedCapacity(Integer predictedCapacity)
The predicted capacity of the group when it has a predictive scaling policy.
predictedCapacity
- The predicted capacity of the group when it has a predictive scaling policy.public Integer getPredictedCapacity()
The predicted capacity of the group when it has a predictive scaling policy.
public AutoScalingGroup withPredictedCapacity(Integer predictedCapacity)
The predicted capacity of the group when it has a predictive scaling policy.
predictedCapacity
- The predicted capacity of the group when it has a predictive scaling policy.public void setDefaultCooldown(Integer defaultCooldown)
The duration of the default cooldown period, in seconds.
defaultCooldown
- The duration of the default cooldown period, in seconds.public Integer getDefaultCooldown()
The duration of the default cooldown period, in seconds.
public AutoScalingGroup withDefaultCooldown(Integer defaultCooldown)
The duration of the default cooldown period, in seconds.
defaultCooldown
- The duration of the default cooldown period, in seconds.public List<String> getAvailabilityZones()
One or more Availability Zones for the group.
public void setAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(String... availabilityZones)
One or more Availability Zones for the group.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
or withAvailabilityZones(java.util.Collection)
if
you want to override the existing values.
availabilityZones
- One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.public List<String> getLoadBalancerNames()
One or more load balancers associated with the group.
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(String... loadBalancerNames)
One or more load balancers associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
setLoadBalancerNames(java.util.Collection)
or withLoadBalancerNames(java.util.Collection)
if
you want to override the existing values.
loadBalancerNames
- One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.public List<String> getTargetGroupARNs()
The Amazon Resource Names (ARN) of the target groups for your load balancer.
public void setTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.public AutoScalingGroup withTargetGroupARNs(String... targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setTargetGroupARNs(java.util.Collection)
or withTargetGroupARNs(java.util.Collection)
if you
want to override the existing values.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.public AutoScalingGroup withTargetGroupARNs(Collection<String> targetGroupARNs)
The Amazon Resource Names (ARN) of the target groups for your load balancer.
targetGroupARNs
- The Amazon Resource Names (ARN) of the target groups for your load balancer.public void setHealthCheckType(String healthCheckType)
A comma-separated value string of one or more health check types.
healthCheckType
- A comma-separated value string of one or more health check types.public String getHealthCheckType()
A comma-separated value string of one or more health check types.
public AutoScalingGroup withHealthCheckType(String healthCheckType)
A comma-separated value string of one or more health check types.
healthCheckType
- A comma-separated value string of one or more health check types.public void setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The duration of the health check grace period, in seconds.
healthCheckGracePeriod
- The duration of the health check grace period, in seconds.public Integer getHealthCheckGracePeriod()
The duration of the health check grace period, in seconds.
public AutoScalingGroup withHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The duration of the health check grace period, in seconds.
healthCheckGracePeriod
- The duration of the health check grace period, in seconds.public List<Instance> getInstances()
The EC2 instances associated with the group.
public void setInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.public AutoScalingGroup withInstances(Instance... instances)
The EC2 instances associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
setInstances(java.util.Collection)
or withInstances(java.util.Collection)
if you want to
override the existing values.
instances
- The EC2 instances associated with the group.public AutoScalingGroup withInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.public void setCreatedTime(Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.public Date getCreatedTime()
The date and time the group was created.
public AutoScalingGroup withCreatedTime(Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.public List<SuspendedProcess> getSuspendedProcesses()
The suspended processes associated with the group.
public void setSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.public AutoScalingGroup withSuspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
NOTE: This method appends the values to the existing list (if any). Use
setSuspendedProcesses(java.util.Collection)
or withSuspendedProcesses(java.util.Collection)
if
you want to override the existing values.
suspendedProcesses
- The suspended processes associated with the group.public AutoScalingGroup withSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.public void setPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
placementGroup
- The name of the placement group into which to launch your instances, if any.public String getPlacementGroup()
The name of the placement group into which to launch your instances, if any.
public AutoScalingGroup withPlacementGroup(String placementGroup)
The name of the placement group into which to launch your instances, if any.
placementGroup
- The name of the placement group into which to launch your instances, if any.public void setVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
vPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.public String getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
public AutoScalingGroup withVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
vPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.public List<EnabledMetric> getEnabledMetrics()
The metrics enabled for the group.
public void setEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.public AutoScalingGroup withEnabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
NOTE: This method appends the values to the existing list (if any). Use
setEnabledMetrics(java.util.Collection)
or withEnabledMetrics(java.util.Collection)
if you want
to override the existing values.
enabledMetrics
- The metrics enabled for the group.public AutoScalingGroup withEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.public void setStatus(String status)
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
status
- The current state of the group when the DeleteAutoScalingGroup operation is in progress.public String getStatus()
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
public AutoScalingGroup withStatus(String status)
The current state of the group when the DeleteAutoScalingGroup operation is in progress.
status
- The current state of the group when the DeleteAutoScalingGroup operation is in progress.public List<TagDescription> getTags()
The tags for the group.
public void setTags(Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.public AutoScalingGroup withTags(TagDescription... tags)
The tags for the group.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the group.public AutoScalingGroup withTags(Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.public List<String> getTerminationPolicies()
The termination policies for the group.
public void setTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.public AutoScalingGroup withTerminationPolicies(String... terminationPolicies)
The termination policies for the group.
NOTE: This method appends the values to the existing list (if any). Use
setTerminationPolicies(java.util.Collection)
or withTerminationPolicies(java.util.Collection)
if you want to override the existing values.
terminationPolicies
- The termination policies for the group.public AutoScalingGroup withTerminationPolicies(Collection<String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.public void setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when
scaling in.public Boolean getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
public AutoScalingGroup withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when
scaling in.public Boolean isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Amazon EC2 Auto Scaling when scaling in.
public void setServiceLinkedRoleARN(String 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.
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.public String getServiceLinkedRoleARN()
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.
public AutoScalingGroup withServiceLinkedRoleARN(String 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.
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.public void setMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
maxInstanceLifetime
- The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
public Integer getMaxInstanceLifetime()
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
Valid Range: Minimum value of 0.
public AutoScalingGroup withMaxInstanceLifetime(Integer maxInstanceLifetime)
The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
maxInstanceLifetime
- The maximum amount of time, in seconds, that an instance can be in service.
Valid Range: Minimum value of 0.
public void setCapacityRebalance(Boolean capacityRebalance)
Indicates whether Capacity Rebalancing is enabled.
capacityRebalance
- Indicates whether Capacity Rebalancing is enabled.public Boolean getCapacityRebalance()
Indicates whether Capacity Rebalancing is enabled.
public AutoScalingGroup withCapacityRebalance(Boolean capacityRebalance)
Indicates whether Capacity Rebalancing is enabled.
capacityRebalance
- Indicates whether Capacity Rebalancing is enabled.public Boolean isCapacityRebalance()
Indicates whether Capacity Rebalancing is enabled.
public void setWarmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)
The warm pool for the group.
warmPoolConfiguration
- The warm pool for the group.public WarmPoolConfiguration getWarmPoolConfiguration()
The warm pool for the group.
public AutoScalingGroup withWarmPoolConfiguration(WarmPoolConfiguration warmPoolConfiguration)
The warm pool for the group.
warmPoolConfiguration
- The warm pool for the group.public void setWarmPoolSize(Integer warmPoolSize)
The current size of the warm pool.
warmPoolSize
- The current size of the warm pool.public Integer getWarmPoolSize()
The current size of the warm pool.
public AutoScalingGroup withWarmPoolSize(Integer warmPoolSize)
The current size of the warm pool.
warmPoolSize
- The current size of the warm pool.public void setContext(String context)
Reserved.
context
- Reserved.public String getContext()
Reserved.
public AutoScalingGroup withContext(String context)
Reserved.
context
- Reserved.public void setDesiredCapacityType(String 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.
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.public String getDesiredCapacityType()
The unit of measurement for the value specified for desired capacity. Amazon EC2 Auto Scaling supports
DesiredCapacityType
for attribute-based instance type selection only.
DesiredCapacityType
for attribute-based instance type selection only.public AutoScalingGroup withDesiredCapacityType(String 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.
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.public void setDefaultInstanceWarmup(Integer defaultInstanceWarmup)
The duration of the default instance warmup, in seconds.
defaultInstanceWarmup
- The duration of the default instance warmup, in seconds.public Integer getDefaultInstanceWarmup()
The duration of the default instance warmup, in seconds.
public AutoScalingGroup withDefaultInstanceWarmup(Integer defaultInstanceWarmup)
The duration of the default instance warmup, in seconds.
defaultInstanceWarmup
- The duration of the default instance warmup, in seconds.public List<TrafficSourceIdentifier> getTrafficSources()
The traffic sources associated with this Auto Scaling group.
public void setTrafficSources(Collection<TrafficSourceIdentifier> trafficSources)
The traffic sources associated with this Auto Scaling group.
trafficSources
- The traffic sources associated with this Auto Scaling group.public AutoScalingGroup withTrafficSources(TrafficSourceIdentifier... trafficSources)
The traffic sources associated with this Auto Scaling group.
NOTE: This method appends the values to the existing list (if any). Use
setTrafficSources(java.util.Collection)
or withTrafficSources(java.util.Collection)
if you want
to override the existing values.
trafficSources
- The traffic sources associated with this Auto Scaling group.public AutoScalingGroup withTrafficSources(Collection<TrafficSourceIdentifier> trafficSources)
The traffic sources associated with this Auto Scaling group.
trafficSources
- The traffic sources associated with this Auto Scaling group.public void setInstanceMaintenancePolicy(InstanceMaintenancePolicy instanceMaintenancePolicy)
An instance maintenance policy.
instanceMaintenancePolicy
- An instance maintenance policy.public InstanceMaintenancePolicy getInstanceMaintenancePolicy()
An instance maintenance policy.
public AutoScalingGroup withInstanceMaintenancePolicy(InstanceMaintenancePolicy instanceMaintenancePolicy)
An instance maintenance policy.
instanceMaintenancePolicy
- An instance maintenance policy.public String toString()
toString
in class Object
Object.toString()
public AutoScalingGroup clone()