public class CompleteLifecycleActionRequest extends AmazonWebServiceRequest implements Serializable
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:
To learn more, see Auto Scaling Pending State and Auto Scaling Terminating State .
NOOP
Constructor and Description |
---|
CompleteLifecycleActionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group to which the lifecycle hook
belongs.
|
String |
getLifecycleActionResult()
The action the Auto Scaling group should 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 Auto Scaling group to which the lifecycle hook
belongs.
|
void |
setLifecycleActionResult(String lifecycleActionResult)
The action the Auto Scaling group should 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 Auto Scaling group to which the lifecycle hook
belongs.
|
CompleteLifecycleActionRequest |
withLifecycleActionResult(String lifecycleActionResult)
The action the Auto Scaling group should 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.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, 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 Auto Scaling group to which the lifecycle hook
belongs.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 Auto Scaling group to which the lifecycle hook
belongs.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 the Auto Scaling group should take. The value for 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 the Auto Scaling group should take. The value for this
parameter can be either CONTINUE
or ABANDON
.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.