public class DeleteAutoScalingGroupRequest extends AmazonWebServiceRequest implements java.io.Serializable
Deletes the specified Auto Scaling group.
If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
Constructor and Description |
---|
DeleteAutoScalingGroupRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group to delete.
|
java.lang.Boolean |
getForceDelete()
Specifies that the group will be deleted along with all instances
associated with the group, without waiting for all instances to be
terminated.
|
int |
hashCode() |
java.lang.Boolean |
isForceDelete()
Specifies that the group will be deleted along with all instances
associated with the group, without waiting for all instances to be
terminated.
|
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group to delete.
|
void |
setForceDelete(java.lang.Boolean forceDelete)
Specifies that the group will be deleted along with all instances
associated with the group, without waiting for all instances to be
terminated.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DeleteAutoScalingGroupRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group to delete.
|
DeleteAutoScalingGroupRequest |
withForceDelete(java.lang.Boolean forceDelete)
Specifies that the group will be deleted along with all instances
associated with the group, without waiting for all instances to be
terminated.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getAutoScalingGroupName()
The name of the group to delete.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the group to delete.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group to delete.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group to delete.
public DeleteAutoScalingGroupRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group to delete.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group to delete.
public java.lang.Boolean isForceDelete()
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
public java.lang.Boolean getForceDelete()
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
public void setForceDelete(java.lang.Boolean forceDelete)
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
forceDelete
- Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
public DeleteAutoScalingGroupRequest withForceDelete(java.lang.Boolean forceDelete)
Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
Returns a reference to this object so that method calls can be chained together.
forceDelete
- Specifies that the group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated. This parameter also deletes any lifecycle actions associated with the group.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.