public class RecordLifecycleActionHeartbeatRequest extends AmazonWebServiceRequest implements Serializable
RecordLifecycleActionHeartbeat operation.
Records a heartbeat for the lifecycle action associated with a
specific token. This extends the timeout by the length of time defined
by the HeartbeatTimeout parameter of the PutLifecycleHook
operation.
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 |
|---|
RecordLifecycleActionHeartbeatRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAutoScalingGroupName()
The name of the Auto Scaling group to which the hook belongs.
|
String |
getLifecycleActionToken()
A token that uniquely 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 hook belongs.
|
void |
setLifecycleActionToken(String lifecycleActionToken)
A token that uniquely 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.
|
RecordLifecycleActionHeartbeatRequest |
withAutoScalingGroupName(String autoScalingGroupName)
The name of the Auto Scaling group to which the hook belongs.
|
RecordLifecycleActionHeartbeatRequest |
withLifecycleActionToken(String lifecycleActionToken)
A token that uniquely identifies a specific lifecycle action
associated with an instance.
|
RecordLifecycleActionHeartbeatRequest |
withLifecycleHookName(String lifecycleHookName)
The name of the lifecycle hook.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic RecordLifecycleActionHeartbeatRequest()
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 RecordLifecycleActionHeartbeatRequest 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 hook belongs.public RecordLifecycleActionHeartbeatRequest 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 hook belongs.public String getLifecycleActionToken()
Constraints:
Length: 36 - 36
public void setLifecycleActionToken(String lifecycleActionToken)
Constraints:
Length: 36 - 36
lifecycleActionToken - A token that uniquely 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 RecordLifecycleActionHeartbeatRequest withLifecycleActionToken(String lifecycleActionToken)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 36 - 36
lifecycleActionToken - A token that uniquely 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 toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.