public class CompleteLifecycleActionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Completes the lifecycle action for the specified token or instance with the specified result.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
Constructor and Description |
---|
CompleteLifecycleActionRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the group for the lifecycle hook.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getLifecycleActionResult()
The action for the group to take.
|
java.lang.String |
getLifecycleActionToken()
A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance.
|
java.lang.String |
getLifecycleHookName()
The name of the lifecycle hook.
|
int |
hashCode() |
void |
setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group for the lifecycle hook.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setLifecycleActionResult(java.lang.String lifecycleActionResult)
The action for the group to take.
|
void |
setLifecycleActionToken(java.lang.String lifecycleActionToken)
A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance.
|
void |
setLifecycleHookName(java.lang.String lifecycleHookName)
The name of the lifecycle hook.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CompleteLifecycleActionRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group for the lifecycle hook.
|
CompleteLifecycleActionRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
CompleteLifecycleActionRequest |
withLifecycleActionResult(java.lang.String lifecycleActionResult)
The action for the group to take.
|
CompleteLifecycleActionRequest |
withLifecycleActionToken(java.lang.String lifecycleActionToken)
A universally unique identifier (UUID) that identifies a specific
lifecycle action associated with an instance.
|
CompleteLifecycleActionRequest |
withLifecycleHookName(java.lang.String lifecycleHookName)
The name of the lifecycle hook.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getLifecycleHookName()
The name of the lifecycle hook.
Constraints:
Length: 1 - 255
Pattern: [A-Za-z0-9\-_\/]+
The name of the lifecycle hook.
public void setLifecycleHookName(java.lang.String lifecycleHookName)
The name of the lifecycle hook.
Constraints:
Length: 1 - 255
Pattern: [A-Za-z0-9\-_\/]+
lifecycleHookName
- The name of the lifecycle hook.
public CompleteLifecycleActionRequest withLifecycleHookName(java.lang.String lifecycleHookName)
The name of the lifecycle hook.
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 java.lang.String getAutoScalingGroupName()
The name of the group for the lifecycle hook.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the group for the lifecycle hook.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group for the lifecycle hook.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the group for the lifecycle hook.
public CompleteLifecycleActionRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the group for the lifecycle hook.
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 for the lifecycle hook.
public java.lang.String getLifecycleActionToken()
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.
Constraints:
Length: 36 - 36
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 void setLifecycleActionToken(java.lang.String 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.
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(java.lang.String 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.
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 java.lang.String getLifecycleActionResult()
The action for the group to take. This parameter can be either
CONTINUE
or ABANDON
.
The action for the group to take. This parameter can be either
CONTINUE
or ABANDON
.
public void setLifecycleActionResult(java.lang.String lifecycleActionResult)
The action for the group to take. This parameter can be either
CONTINUE
or ABANDON
.
lifecycleActionResult
-
The action for the group to take. This parameter can be either
CONTINUE
or ABANDON
.
public CompleteLifecycleActionRequest withLifecycleActionResult(java.lang.String lifecycleActionResult)
The action for the group to take. This parameter can be either
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 java.lang.String getInstanceId()
The ID of the instance.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
The ID of the instance.
public void setInstanceId(java.lang.String instanceId)
The ID of the instance.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance.
public CompleteLifecycleActionRequest withInstanceId(java.lang.String instanceId)
The ID of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 19
Pattern: [ --�𐀀-\r\n\t]*
instanceId
- The ID of the instance.
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.