public class CompleteLifecycleActionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
CompleteLifecycleAction operation
.
Completes the lifecycle action for the associated token initiated under the given lifecycle hook with the specified result.
This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
NOOP
Constructor and Description |
---|
CompleteLifecycleActionRequest() |
Modifier and Type | Method and Description |
---|---|
CompleteLifecycleActionRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the group for the lifecycle hook.
|
String |
getLifecycleActionResult()
The action for the group to take.
|
String |
getLifecycleActionToken()
A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance.
|
String |
getLifecycleHookName()
The name of the lifecycle hook.
|
int |
hashCode() |
void |
setAutoScalingGroupName(String autoScalingGroupName)
The name of the group for the lifecycle hook.
|
void |
setLifecycleActionResult(String lifecycleActionResult)
The action for the group to take.
|
void |
setLifecycleActionToken(String lifecycleActionToken)
A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance.
|
void |
setLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CompleteLifecycleActionRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the group for the lifecycle hook.
|
CompleteLifecycleActionRequest |
withLifecycleActionResult(String lifecycleActionResult)
The action for the group to take.
|
CompleteLifecycleActionRequest |
withLifecycleActionToken(String lifecycleActionToken)
A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance.
|
CompleteLifecycleActionRequest |
withLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
copyBaseTo, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getLifecycleHookName()
Constraints:
Length: 1 - 255
Pattern: [A-Za-z0-9\-_\/]+
public void setLifecycleHookName(String lifecycleHookName)
Constraints:
Length: 1 - 255
Pattern: [A-Za-z0-9\-_\/]+
lifecycleHookName
- The name of the lifecycle hook.public CompleteLifecycleActionRequest withLifecycleHookName(String lifecycleHookName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [A-Za-z0-9\-_\/]+
lifecycleHookName
- The name of the lifecycle hook.public String getAutoScalingGroupName()
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setAutoScalingGroupName(String autoScalingGroupName)
Constraints:
Length: 1 - 1600
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
autoScalingGroupName
- The name of the group for the lifecycle hook.public CompleteLifecycleActionRequest withAutoScalingGroupName(String autoScalingGroupName)
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]*
autoScalingGroupName
- The name of the group for the lifecycle hook.public String getLifecycleActionToken()
Constraints:
Length: 36 - 36
public void setLifecycleActionToken(String lifecycleActionToken)
Constraints:
Length: 36 - 36
lifecycleActionToken
- A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance. Auto Scaling sends this
token to the notification target you specified when you created the
lifecycle hook.public CompleteLifecycleActionRequest withLifecycleActionToken(String lifecycleActionToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 36 - 36
lifecycleActionToken
- A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance. Auto Scaling sends this
token to the notification target you specified when you created the
lifecycle hook.public String getLifecycleActionResult()
CONTINUE
or ABANDON
.CONTINUE
or ABANDON
.public void setLifecycleActionResult(String lifecycleActionResult)
CONTINUE
or ABANDON
.lifecycleActionResult
- The action for the group to take. This parameter can be either
CONTINUE
or ABANDON
.public CompleteLifecycleActionRequest withLifecycleActionResult(String lifecycleActionResult)
CONTINUE
or ABANDON
.
Returns a reference to this object so that method calls can be chained together.
lifecycleActionResult
- The action for the group to take. This parameter can be either
CONTINUE
or ABANDON
.public String toString()
toString
in class Object
Object.toString()
public CompleteLifecycleActionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.