public class RecordLifecycleActionHeartbeatRequest extends AmazonWebServiceRequest implements java.io.Serializable
Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.
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 |
---|
RecordLifecycleActionHeartbeatRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAutoScalingGroupName()
The name of the Auto Scaling group for the hook.
|
java.lang.String |
getInstanceId()
The ID of the instance.
|
java.lang.String |
getLifecycleActionToken()
A token that uniquely 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 Auto Scaling group for the hook.
|
void |
setInstanceId(java.lang.String instanceId)
The ID of the instance.
|
void |
setLifecycleActionToken(java.lang.String lifecycleActionToken)
A token that uniquely 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.
|
RecordLifecycleActionHeartbeatRequest |
withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group for the hook.
|
RecordLifecycleActionHeartbeatRequest |
withInstanceId(java.lang.String instanceId)
The ID of the instance.
|
RecordLifecycleActionHeartbeatRequest |
withLifecycleActionToken(java.lang.String lifecycleActionToken)
A token that uniquely identifies a specific lifecycle action associated
with an instance.
|
RecordLifecycleActionHeartbeatRequest |
withLifecycleHookName(java.lang.String lifecycleHookName)
The name of the lifecycle hook.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public RecordLifecycleActionHeartbeatRequest()
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 RecordLifecycleActionHeartbeatRequest 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 Auto Scaling group for the hook.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
The name of the Auto Scaling group for the hook.
public void setAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group for the hook.
Constraints:
Length: 1 - 1600
Pattern: [ --�𐀀-\r\n\t]*
autoScalingGroupName
- The name of the Auto Scaling group for the hook.
public RecordLifecycleActionHeartbeatRequest withAutoScalingGroupName(java.lang.String autoScalingGroupName)
The name of the Auto Scaling group for the 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 Auto Scaling group for the hook.
public java.lang.String getLifecycleActionToken()
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.
Constraints:
Length: 36 - 36
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 void setLifecycleActionToken(java.lang.String 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.
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(java.lang.String 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.
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 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 RecordLifecycleActionHeartbeatRequest 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.