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 number of seconds after a scaling activity completes before any
further scaling activities 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 that Auto Scaling waits before checking an
instance's health status.
|
String |
getHealthCheckType()
The service of interest for the health status check, which can be
either
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing. |
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.
|
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> |
getTerminationPolicies()
The termination policies for the group.
|
String |
getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
int |
hashCode() |
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 number of seconds after a scaling activity completes before any
further scaling activities 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 that Auto Scaling waits before checking an
instance's health status.
|
void |
setHealthCheckType(String healthCheckType)
The service of interest for the health status check, which can be
either
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing. |
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 |
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 |
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 number of seconds after a scaling activity completes before any
further scaling activities 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 that Auto Scaling waits before checking an
instance's health status.
|
AutoScalingGroup |
withHealthCheckType(String healthCheckType)
The service of interest for the health status check, which can be
either
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing. |
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 |
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 |
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 String getAutoScalingGroupName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the group.public AutoScalingGroup withAutoScalingGroupName(String autoScalingGroupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName - The name of the group.public String getAutoScalingGroupARN()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupARN(String autoScalingGroupARN)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupARN - The Amazon Resource Name (ARN) of the group.public AutoScalingGroup withAutoScalingGroupARN(String autoScalingGroupARN)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupARN - The Amazon Resource Name (ARN) of the group.public String getLaunchConfigurationName()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setLaunchConfigurationName(String launchConfigurationName)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The name of the associated launch configuration.public AutoScalingGroup withLaunchConfigurationName(String launchConfigurationName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
launchConfigurationName - The name of the associated launch configuration.public Integer getMinSize()
public void setMinSize(Integer minSize)
minSize - The minimum size of the group.public AutoScalingGroup withMinSize(Integer minSize)
Returns a reference to this object so that method calls can be chained together.
minSize - The minimum size of the group.public Integer getMaxSize()
public void setMaxSize(Integer maxSize)
maxSize - The maximum size of the group.public AutoScalingGroup withMaxSize(Integer maxSize)
Returns a reference to this object so that method calls can be chained together.
maxSize - The maximum size of the group.public Integer getDesiredCapacity()
public void setDesiredCapacity(Integer desiredCapacity)
desiredCapacity - The desired size of the group.public AutoScalingGroup withDesiredCapacity(Integer desiredCapacity)
Returns a reference to this object so that method calls can be chained together.
desiredCapacity - The desired size of the group.public Integer getDefaultCooldown()
public void setDefaultCooldown(Integer defaultCooldown)
defaultCooldown - The number of seconds after a scaling activity completes before any
further scaling activities can start.public AutoScalingGroup withDefaultCooldown(Integer defaultCooldown)
Returns a reference to this object so that method calls can be chained together.
defaultCooldown - The number of seconds after a scaling activity completes before any
further scaling activities can start.public List<String> getAvailabilityZones()
Constraints:
Length: 1 -
public void setAvailabilityZones(Collection<String> availabilityZones)
Constraints:
Length: 1 -
availabilityZones - One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(String... availabilityZones)
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
availabilityZones - One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(Collection<String> availabilityZones)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
availabilityZones - One or more Availability Zones for the group.public List<String> getLoadBalancerNames()
public void setLoadBalancerNames(Collection<String> loadBalancerNames)
loadBalancerNames - One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(String... loadBalancerNames)
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.
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames - One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(Collection<String> loadBalancerNames)
Returns a reference to this object so that method calls can be chained together.
loadBalancerNames - One or more load balancers associated with the group.public String getHealthCheckType()
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing.public void setHealthCheckType(String healthCheckType)
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
healthCheckType - The service of interest for the health status check, which can be
either EC2 for Amazon EC2 or ELB for Elastic
Load Balancing.public AutoScalingGroup withHealthCheckType(String healthCheckType)
EC2 for Amazon EC2 or ELB for Elastic
Load Balancing.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
healthCheckType - The service of interest for the health status check, which can be
either EC2 for Amazon EC2 or ELB for Elastic
Load Balancing.public Integer getHealthCheckGracePeriod()
public void setHealthCheckGracePeriod(Integer healthCheckGracePeriod)
healthCheckGracePeriod - The amount of time that Auto Scaling waits before checking an
instance's health status. The grace period begins when an instance
comes into service.public AutoScalingGroup withHealthCheckGracePeriod(Integer healthCheckGracePeriod)
Returns a reference to this object so that method calls can be chained together.
healthCheckGracePeriod - The amount of time that Auto Scaling waits before checking an
instance's health status. The grace period begins when an instance
comes into service.public List<Instance> getInstances()
public void setInstances(Collection<Instance> instances)
instances - The EC2 instances associated with the group.public AutoScalingGroup withInstances(Instance... instances)
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.
Returns a reference to this object so that method calls can be chained together.
instances - The EC2 instances associated with the group.public AutoScalingGroup withInstances(Collection<Instance> instances)
Returns a reference to this object so that method calls can be chained together.
instances - The EC2 instances associated with the group.public Date getCreatedTime()
public void setCreatedTime(Date createdTime)
createdTime - The date and time the group was created.public AutoScalingGroup withCreatedTime(Date createdTime)
Returns a reference to this object so that method calls can be chained together.
createdTime - The date and time the group was created.public List<SuspendedProcess> getSuspendedProcesses()
public void setSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
suspendedProcesses - The suspended processes associated with the group.public AutoScalingGroup withSuspendedProcesses(SuspendedProcess... suspendedProcesses)
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.
Returns a reference to this object so that method calls can be chained together.
suspendedProcesses - The suspended processes associated with the group.public AutoScalingGroup withSuspendedProcesses(Collection<SuspendedProcess> suspendedProcesses)
Returns a reference to this object so that method calls can be chained together.
suspendedProcesses - The suspended processes associated with the group.public String getPlacementGroup()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setPlacementGroup(String placementGroup)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
placementGroup - The name of the placement group into which you'll launch your
instances, if any. For more information, see Placement
Groups.public AutoScalingGroup withPlacementGroup(String placementGroup)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
placementGroup - The name of the placement group into which you'll launch your
instances, if any. For more information, see Placement
Groups.public String getVPCZoneIdentifier()
If you
specify VPCZoneIdentifier and
AvailabilityZones, ensure that the Availability Zones of
the subnets match the values for AvailabilityZones.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
If you
specify VPCZoneIdentifier and
AvailabilityZones, ensure that the Availability Zones of
the subnets match the values for AvailabilityZones.
public void setVPCZoneIdentifier(String vPCZoneIdentifier)
If you
specify VPCZoneIdentifier and
AvailabilityZones, ensure that the Availability Zones of
the subnets match the values for AvailabilityZones.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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 AutoScalingGroup withVPCZoneIdentifier(String vPCZoneIdentifier)
If you
specify VPCZoneIdentifier and
AvailabilityZones, ensure that the Availability Zones of
the subnets match the values for AvailabilityZones.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
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()
public void setEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
enabledMetrics - The metrics enabled for the group.public AutoScalingGroup withEnabledMetrics(EnabledMetric... enabledMetrics)
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.
Returns a reference to this object so that method calls can be chained together.
enabledMetrics - The metrics enabled for the group.public AutoScalingGroup withEnabledMetrics(Collection<EnabledMetric> enabledMetrics)
Returns a reference to this object so that method calls can be chained together.
enabledMetrics - The metrics enabled for the group.public String getStatus()
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setStatus(String status)
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
status - The current state of the group when DeleteAutoScalingGroup is
in progress.public AutoScalingGroup withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
status - The current state of the group when DeleteAutoScalingGroup is
in progress.public List<TagDescription> getTags()
public void setTags(Collection<TagDescription> tags)
tags - The tags for the group.public AutoScalingGroup withTags(TagDescription... tags)
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.
Returns a reference to this object so that method calls can be chained together.
tags - The tags for the group.public AutoScalingGroup withTags(Collection<TagDescription> tags)
Returns a reference to this object so that method calls can be chained together.
tags - The tags for the group.public List<String> getTerminationPolicies()
public void setTerminationPolicies(Collection<String> terminationPolicies)
terminationPolicies - The termination policies for the group.public AutoScalingGroup withTerminationPolicies(String... terminationPolicies)
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.
Returns a reference to this object so that method calls can be chained together.
terminationPolicies - The termination policies for the group.public AutoScalingGroup withTerminationPolicies(Collection<String> terminationPolicies)
Returns a reference to this object so that method calls can be chained together.
terminationPolicies - The termination policies for the group.public String toString()
toString in class ObjectObject.toString()public AutoScalingGroup clone()
Copyright © 2015. All rights reserved.