public class AutoScalingGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes an Auto Scaling group.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
autoScalingGroupARN
The Amazon Resource Name (ARN) of the group.
|
private java.lang.String |
autoScalingGroupName
The name of the group.
|
private SdkInternalList<java.lang.String> |
availabilityZones
One or more Availability Zones for the group.
|
private java.util.Date |
createdTime
The date and time the group was created.
|
private java.lang.Integer |
defaultCooldown
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
private java.lang.Integer |
desiredCapacity
The desired size of the group.
|
private SdkInternalList<EnabledMetric> |
enabledMetrics
The metrics enabled for the group.
|
private java.lang.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.
|
private java.lang.String |
healthCheckType
The service to use for the health checks.
|
private SdkInternalList<Instance> |
instances
The EC2 instances associated with the group.
|
private java.lang.String |
launchConfigurationName
The name of the associated launch configuration.
|
private SdkInternalList<java.lang.String> |
loadBalancerNames
One or more load balancers associated with the group.
|
private java.lang.Integer |
maxSize
The maximum size of the group.
|
private java.lang.Integer |
minSize
The minimum size of the group.
|
private java.lang.Boolean |
newInstancesProtectedFromScaleIn
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
private java.lang.String |
placementGroup
The name of the placement group into which you'll launch your instances,
if any.
|
private java.lang.String |
status
The current state of the group when DeleteAutoScalingGroup is in
progress.
|
private SdkInternalList<SuspendedProcess> |
suspendedProcesses
The suspended processes associated with the group.
|
private SdkInternalList<TagDescription> |
tags
The tags for the group.
|
private SdkInternalList<java.lang.String> |
terminationPolicies
The termination policies for the group.
|
private java.lang.String |
vPCZoneIdentifier
One or more subnet IDs, if applicable, separated by commas.
|
Constructor and Description |
---|
AutoScalingGroup() |
Modifier and Type | Method and Description |
---|---|
AutoScalingGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the group.
|
java.lang.String |
getAutoScalingGroupName()
The name of the group.
|
java.util.List<java.lang.String> |
getAvailabilityZones()
One or more Availability Zones for the group.
|
java.util.Date |
getCreatedTime()
The date and time the group was created.
|
java.lang.Integer |
getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
java.lang.Integer |
getDesiredCapacity()
The desired size of the group.
|
java.util.List<EnabledMetric> |
getEnabledMetrics()
The metrics enabled for the group.
|
java.lang.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.
|
java.lang.String |
getHealthCheckType()
The service to use for the health checks.
|
java.util.List<Instance> |
getInstances()
The EC2 instances associated with the group.
|
java.lang.String |
getLaunchConfigurationName()
The name of the associated launch configuration.
|
java.util.List<java.lang.String> |
getLoadBalancerNames()
One or more load balancers associated with the group.
|
java.lang.Integer |
getMaxSize()
The maximum size of the group.
|
java.lang.Integer |
getMinSize()
The minimum size of the group.
|
java.lang.Boolean |
getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
java.lang.String |
getPlacementGroup()
The name of the placement group into which you'll launch your instances,
if any.
|
java.lang.String |
getStatus()
The current state of the group when DeleteAutoScalingGroup is in
progress.
|
java.util.List<SuspendedProcess> |
getSuspendedProcesses()
The suspended processes associated with the group.
|
java.util.List<TagDescription> |
getTags()
The tags for the group.
|
java.util.List<java.lang.String> |
getTerminationPolicies()
The termination policies for the group.
|
java.lang.String |
getVPCZoneIdentifier()
One or more subnet IDs, if applicable, separated by commas.
|
int |
hashCode() |
java.lang.Boolean |
isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
void |
setAutoScalingGroupARN(java.lang.String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
|
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
void |
setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group.
|
void |
setCreatedTime(java.util.Date createdTime)
The date and time the group was created.
|
void |
setDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
void |
setDesiredCapacity(java.lang.Integer desiredCapacity)
The desired size of the group.
|
void |
setEnabledMetrics(java.util.Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
void |
setHealthCheckGracePeriod(java.lang.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(java.lang.String healthCheckType)
The service to use for the health checks.
|
void |
setInstances(java.util.Collection<Instance> instances)
The EC2 instances associated with the group.
|
void |
setLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the associated launch configuration.
|
void |
setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers associated with the group.
|
void |
setMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
|
void |
setMinSize(java.lang.Integer minSize)
The minimum size of the group.
|
void |
setNewInstancesProtectedFromScaleIn(java.lang.Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
void |
setPlacementGroup(java.lang.String placementGroup)
The name of the placement group into which you'll launch your instances,
if any.
|
void |
setStatus(java.lang.String status)
The current state of the group when DeleteAutoScalingGroup is in
progress.
|
void |
setSuspendedProcesses(java.util.Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
void |
setTags(java.util.Collection<TagDescription> tags)
The tags for the group.
|
void |
setTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
The termination policies for the group.
|
void |
setVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AutoScalingGroup |
withAutoScalingGroupARN(java.lang.String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
|
AutoScalingGroup |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
|
AutoScalingGroup |
withAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup |
withAvailabilityZones(java.lang.String... availabilityZones)
One or more Availability Zones for the group.
|
AutoScalingGroup |
withCreatedTime(java.util.Date createdTime)
The date and time the group was created.
|
AutoScalingGroup |
withDefaultCooldown(java.lang.Integer defaultCooldown)
The amount of time, in seconds, after a scaling activity completes before
another scaling activity can start.
|
AutoScalingGroup |
withDesiredCapacity(java.lang.Integer desiredCapacity)
The desired size of the group.
|
AutoScalingGroup |
withEnabledMetrics(java.util.Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup |
withEnabledMetrics(EnabledMetric... enabledMetrics)
The metrics enabled for the group.
|
AutoScalingGroup |
withHealthCheckGracePeriod(java.lang.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(java.lang.String healthCheckType)
The service to use for the health checks.
|
AutoScalingGroup |
withInstances(java.util.Collection<Instance> instances)
The EC2 instances associated with the group.
|
AutoScalingGroup |
withInstances(Instance... instances)
The EC2 instances associated with the group.
|
AutoScalingGroup |
withLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the associated launch configuration.
|
AutoScalingGroup |
withLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup |
withLoadBalancerNames(java.lang.String... loadBalancerNames)
One or more load balancers associated with the group.
|
AutoScalingGroup |
withMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
|
AutoScalingGroup |
withMinSize(java.lang.Integer minSize)
The minimum size of the group.
|
AutoScalingGroup |
withNewInstancesProtectedFromScaleIn(java.lang.Boolean newInstancesProtectedFromScaleIn)
Indicates whether newly launched instances are protected from termination
by Auto Scaling when scaling in.
|
AutoScalingGroup |
withPlacementGroup(java.lang.String placementGroup)
The name of the placement group into which you'll launch your instances,
if any.
|
AutoScalingGroup |
withStatus(java.lang.String status)
The current state of the group when DeleteAutoScalingGroup is in
progress.
|
AutoScalingGroup |
withSuspendedProcesses(java.util.Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup |
withSuspendedProcesses(SuspendedProcess... suspendedProcesses)
The suspended processes associated with the group.
|
AutoScalingGroup |
withTags(java.util.Collection<TagDescription> tags)
The tags for the group.
|
AutoScalingGroup |
withTags(TagDescription... tags)
The tags for the group.
|
AutoScalingGroup |
withTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup |
withTerminationPolicies(java.lang.String... terminationPolicies)
The termination policies for the group.
|
AutoScalingGroup |
withVPCZoneIdentifier(java.lang.String vPCZoneIdentifier)
One or more subnet IDs, if applicable, separated by commas.
|
private java.lang.String autoScalingGroupName
The name of the group.
private java.lang.String autoScalingGroupARN
The Amazon Resource Name (ARN) of the group.
private java.lang.String launchConfigurationName
The name of the associated launch configuration.
private java.lang.Integer minSize
The minimum size of the group.
private java.lang.Integer maxSize
The maximum size of the group.
private java.lang.Integer desiredCapacity
The desired size of the group.
private java.lang.Integer defaultCooldown
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
private SdkInternalList<java.lang.String> availabilityZones
One or more Availability Zones for the group.
private SdkInternalList<java.lang.String> loadBalancerNames
One or more load balancers associated with the group.
private java.lang.String healthCheckType
The service to use for the health checks. The valid values are
EC2
and ELB
.
private java.lang.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.
private SdkInternalList<Instance> instances
The EC2 instances associated with the group.
private java.util.Date createdTime
The date and time the group was created.
private SdkInternalList<SuspendedProcess> suspendedProcesses
The suspended processes associated with the group.
private java.lang.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.
private java.lang.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
.
private SdkInternalList<EnabledMetric> enabledMetrics
The metrics enabled for the group.
private java.lang.String status
The current state of the group when DeleteAutoScalingGroup is in progress.
private SdkInternalList<TagDescription> tags
The tags for the group.
private SdkInternalList<java.lang.String> terminationPolicies
The termination policies for the group.
private java.lang.Boolean newInstancesProtectedFromScaleIn
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public java.lang.String getAutoScalingGroupName()
The name of the group.
public AutoScalingGroup withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group.
autoScalingGroupName
- The name of the group.public void setAutoScalingGroupARN(java.lang.String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the group.public java.lang.String getAutoScalingGroupARN()
The Amazon Resource Name (ARN) of the group.
public AutoScalingGroup withAutoScalingGroupARN(java.lang.String autoScalingGroupARN)
The Amazon Resource Name (ARN) of the group.
autoScalingGroupARN
- The Amazon Resource Name (ARN) of the group.public void setLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.public java.lang.String getLaunchConfigurationName()
The name of the associated launch configuration.
public AutoScalingGroup withLaunchConfigurationName(java.lang.String launchConfigurationName)
The name of the associated launch configuration.
launchConfigurationName
- The name of the associated launch configuration.public void setMinSize(java.lang.Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.public java.lang.Integer getMinSize()
The minimum size of the group.
public AutoScalingGroup withMinSize(java.lang.Integer minSize)
The minimum size of the group.
minSize
- The minimum size of the group.public void setMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.public java.lang.Integer getMaxSize()
The maximum size of the group.
public AutoScalingGroup withMaxSize(java.lang.Integer maxSize)
The maximum size of the group.
maxSize
- The maximum size of the group.public void setDesiredCapacity(java.lang.Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.public java.lang.Integer getDesiredCapacity()
The desired size of the group.
public AutoScalingGroup withDesiredCapacity(java.lang.Integer desiredCapacity)
The desired size of the group.
desiredCapacity
- The desired size of the group.public void setDefaultCooldown(java.lang.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 java.lang.Integer getDefaultCooldown()
The amount of time, in seconds, after a scaling activity completes before another scaling activity can start.
public AutoScalingGroup withDefaultCooldown(java.lang.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 java.util.List<java.lang.String> getAvailabilityZones()
One or more Availability Zones for the group.
public void setAvailabilityZones(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.public AutoScalingGroup withAvailabilityZones(java.lang.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(java.util.Collection<java.lang.String> availabilityZones)
One or more Availability Zones for the group.
availabilityZones
- One or more Availability Zones for the group.public java.util.List<java.lang.String> getLoadBalancerNames()
One or more load balancers associated with the group.
public void setLoadBalancerNames(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.public AutoScalingGroup withLoadBalancerNames(java.lang.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(java.util.Collection<java.lang.String> loadBalancerNames)
One or more load balancers associated with the group.
loadBalancerNames
- One or more load balancers associated with the group.public void setHealthCheckType(java.lang.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 java.lang.String getHealthCheckType()
The service to use for the health checks. The valid values are
EC2
and ELB
.
EC2
and ELB
.public AutoScalingGroup withHealthCheckType(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.util.List<Instance> getInstances()
The EC2 instances associated with the group.
public void setInstances(java.util.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(java.util.Collection<Instance> instances)
The EC2 instances associated with the group.
instances
- The EC2 instances associated with the group.public void setCreatedTime(java.util.Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.public java.util.Date getCreatedTime()
The date and time the group was created.
public AutoScalingGroup withCreatedTime(java.util.Date createdTime)
The date and time the group was created.
createdTime
- The date and time the group was created.public java.util.List<SuspendedProcess> getSuspendedProcesses()
The suspended processes associated with the group.
public void setSuspendedProcesses(java.util.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(java.util.Collection<SuspendedProcess> suspendedProcesses)
The suspended processes associated with the group.
suspendedProcesses
- The suspended processes associated with the group.public void setPlacementGroup(java.lang.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 java.lang.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(java.lang.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(java.lang.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 java.lang.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(java.lang.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 java.util.List<EnabledMetric> getEnabledMetrics()
The metrics enabled for the group.
public void setEnabledMetrics(java.util.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(java.util.Collection<EnabledMetric> enabledMetrics)
The metrics enabled for the group.
enabledMetrics
- The metrics enabled for the group.public void setStatus(java.lang.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 java.lang.String getStatus()
The current state of the group when DeleteAutoScalingGroup is in progress.
public AutoScalingGroup withStatus(java.lang.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 java.util.List<TagDescription> getTags()
The tags for the group.
public void setTags(java.util.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(java.util.Collection<TagDescription> tags)
The tags for the group.
tags
- The tags for the group.public java.util.List<java.lang.String> getTerminationPolicies()
The termination policies for the group.
public void setTerminationPolicies(java.util.Collection<java.lang.String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.public AutoScalingGroup withTerminationPolicies(java.lang.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(java.util.Collection<java.lang.String> terminationPolicies)
The termination policies for the group.
terminationPolicies
- The termination policies for the group.public void setNewInstancesProtectedFromScaleIn(java.lang.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 java.lang.Boolean getNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public AutoScalingGroup withNewInstancesProtectedFromScaleIn(java.lang.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 java.lang.Boolean isNewInstancesProtectedFromScaleIn()
Indicates whether newly launched instances are protected from termination by Auto Scaling when scaling in.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AutoScalingGroup clone()
clone
in class java.lang.Object