@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 group.
|
String |
getAutoScalingGroupName()
The name of the group.
|
List<String> |
getAvailabilityZones()
One or more Availability Zones for the group.
|
Date |
getCreatedTime()
The date and time the group was created.
|
Integer |
getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
Integer |
getDesiredCapacity()
The desired size of the group.
|
List<EnabledMetric> |
getEnabledMetrics()
The metrics enabled for the group.
|
Integer |
getHealthCheckGracePeriod()
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that
has come into service.
|
String |
getHealthCheckType()
The service to use for the health checks.
|
List<Instance> |
getInstances()
The EC2 instances associated with the group.
|
String |
getLaunchConfigurationName()
The name of the associated launch configuration.
|
List<String> |
getLoadBalancerNames()
One or more load balancers associated with the group.
|
Integer |
getMaxSize()
The maximum size of the group.
|
Integer |
getMinSize()
The minimum size of the group.
|
Boolean |
getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
|
String |
getPlacementGroup()
The name of the placement group into which you'll launch your instances, if any.
|
String |
getStatus()
The current state of the group when DeleteAutoScalingGroup 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.
|
String |
getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
int |
hashCode() |
Boolean |
isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
|
void |
setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
|
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
One or more Availability Zones for the group.
|
void |
setCreatedTime(Date createdTime)
The date and time the group was created.
|
void |
setDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
void |
setDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
void |
setEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
void |
setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that
has come into service.
|
void |
setHealthCheckType(String healthCheckType)
The service to use for the health checks.
|
void |
setInstances(Collection<Instance> instances)
The EC2 instances associated with the group.
|
void |
setLaunchConfigurationName(String launchConfigurationName)
The name of the associated launch configuration.
|
void |
setLoadBalancerNames(Collection<String> loadBalancerNames)
One or more load balancers associated with the group.
|
void |
setMaxSize(Integer maxSize)
The maximum size of the group.
|
void |
setMinSize(Integer minSize)
The minimum size of the group.
|
void |
setNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
|
void |
setPlacementGroup(String placementGroup)
The name of the placement group into which you'll launch your instances, if any.
|
void |
setStatus(String status)
The current state of the group when DeleteAutoScalingGroup 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 |
setVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
AutoScalingGroup |
withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
|
AutoScalingGroup |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the 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 |
withCreatedTime(Date createdTime)
The date and time the group was created.
|
AutoScalingGroup |
withDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
|
AutoScalingGroup |
withDesiredCapacity(Integer desiredCapacity)
The desired size of the group.
|
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 amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that
has come into service.
|
AutoScalingGroup |
withHealthCheckType(String healthCheckType)
The service to use for the health checks.
|
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 |
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 |
withMaxSize(Integer maxSize)
The maximum size of the group.
|
AutoScalingGroup |
withMinSize(Integer minSize)
The minimum size of the group.
|
AutoScalingGroup |
withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
|
AutoScalingGroup |
withPlacementGroup(String placementGroup)
The name of the placement group into which you'll launch your instances, if any.
|
AutoScalingGroup |
withStatus(String status)
The current state of the group when DeleteAutoScalingGroup 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 |
withVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
public void setAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public String getAutoScalingGroupName()
The name of the group.
public AutoScalingGroup withAutoScalingGroupName(String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public void setAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the group.public String getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the group.
public AutoScalingGroup withAutoScalingGroupARN(String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the 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 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 setDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can
start.public Integer getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
public AutoScalingGroup withDefaultCooldown(Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
defaultCooldown
- The amount of time, in seconds, after a scaling activity completes before another scaling activity can
start.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)
The service to use for the health checks. The valid values are EC2
and ELB
.
healthCheckType
- The service to use for the health checks. The valid values are EC2
and ELB
.public String getHealthCheckType()
The service to use for the health checks. The valid values are EC2
and ELB
.
EC2
and ELB
.public AutoScalingGroup withHealthCheckType(String healthCheckType)
The service to use for the health checks. The valid values are EC2
and ELB
.
healthCheckType
- The service to use for the health checks. The valid values are EC2
and ELB
.public void setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
healthCheckGracePeriod
- The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2
instance that has come into service.public Integer getHealthCheckGracePeriod()
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
public AutoScalingGroup withHealthCheckGracePeriod(Integer healthCheckGracePeriod)
The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2 instance that has come into service.
healthCheckGracePeriod
- The amount of time, in seconds, that Auto Scaling waits before checking the health status of an EC2
instance that has come into service.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 you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
placementGroup
- The name of the placement group into which you'll launch your instances, if any. For more information, see
Placement Groups in
the Amazon Elastic Compute Cloud User Guide.public String getPlacementGroup()
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
public AutoScalingGroup withPlacementGroup(String placementGroup)
The name of the placement group into which you'll launch your instances, if any. For more information, see Placement Groups in the Amazon Elastic Compute Cloud User Guide.
placementGroup
- The name of the placement group into which you'll launch your instances, if any. For more information, see
Placement Groups in
the Amazon Elastic Compute Cloud User Guide.public void setVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the Availability
Zones of the subnets match the values for AvailabilityZones
.
vPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the
Availability Zones of the subnets match the values for AvailabilityZones
.
public String getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the Availability
Zones of the subnets match the values for AvailabilityZones
.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the
Availability Zones of the subnets match the values for AvailabilityZones
.
public AutoScalingGroup withVPCZoneIdentifier(String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the Availability
Zones of the subnets match the values for AvailabilityZones
.
vPCZoneIdentifier
- One or more subnet IDs, if applicable, separated by commas.
If you specify VPCZoneIdentifier
and AvailabilityZones
, ensure that the
Availability Zones of the subnets match the values for AvailabilityZones
.
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 DeleteAutoScalingGroup is in progress.
status
- The current state of the group when DeleteAutoScalingGroup is in progress.public String getStatus()
The current state of the group when DeleteAutoScalingGroup is in progress.
public AutoScalingGroup withStatus(String status)
The current state of the group when DeleteAutoScalingGroup is in progress.
status
- The current state of the group when DeleteAutoScalingGroup 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 Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.public Boolean getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public AutoScalingGroup withNewInstancesProtectedFromScaleIn(Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
newInstancesProtectedFromScaleIn
- Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.public Boolean isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public String toString()
toString
in class Object
Object.toString()
public AutoScalingGroup clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.