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 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 number of seconds after a scaling activity completes before any further scaling activities can start.
defaultCooldown - The number of seconds after a scaling activity completes before
any further scaling activities can start.public Integer getDefaultCooldown()
The number of seconds after a scaling activity completes before any further scaling activities can start.
public AutoScalingGroup withDefaultCooldown(Integer defaultCooldown)
The number of seconds after a scaling activity completes before any further scaling activities can start.
defaultCooldown - The number of seconds after a scaling activity completes before
any further scaling activities 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 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.
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 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.
EC2 for Amazon EC2 or ELB for
Elastic Load Balancing.public 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.
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 void setHealthCheckGracePeriod(Integer 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.
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 Integer getHealthCheckGracePeriod()
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)
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.
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()
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 String toString()
toString in class ObjectObject.toString()public AutoScalingGroup clone()
Copyright © 2015. All rights reserved.