public class LifecycleHook extends AbstractModel
header, skipSign| Constructor and Description |
|---|
LifecycleHook() |
LifecycleHook(LifecycleHook source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAutoScalingGroupId()
Get Auto scaling group ID
|
String |
getCreatedTime()
Get Creation time.
|
String |
getDefaultResult()
Get Action to be taken by the scaling group in case of lifecycle hook timeout or LifecycleCommand execution failure.
|
Long |
getHeartbeatTimeout()
Get Specifies the timeout waiting time of the lifecycle hook in seconds.
|
LifecycleCommand |
getLifecycleCommand()
Get Remote command execution object.
|
String |
getLifecycleHookId()
Get Lifecycle hook ID
|
String |
getLifecycleHookName()
Get Lifecycle hook name
|
String |
getLifecycleTransition()
Get Scenario for entering the lifecycle hook.
|
String |
getLifecycleTransitionType()
Get Specifies the scenario type for performing the lifecycle hook.
|
String |
getNotificationMetadata()
Get Additional information for the notification target
|
NotificationTarget |
getNotificationTarget()
Get Notification target
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Auto scaling group ID
|
void |
setCreatedTime(String CreatedTime)
Set Creation time.
|
void |
setDefaultResult(String DefaultResult)
Set Action to be taken by the scaling group in case of lifecycle hook timeout or LifecycleCommand execution failure.
|
void |
setHeartbeatTimeout(Long HeartbeatTimeout)
Set Specifies the timeout waiting time of the lifecycle hook in seconds.
|
void |
setLifecycleCommand(LifecycleCommand LifecycleCommand)
Set Remote command execution object.
|
void |
setLifecycleHookId(String LifecycleHookId)
Set Lifecycle hook ID
|
void |
setLifecycleHookName(String LifecycleHookName)
Set Lifecycle hook name
|
void |
setLifecycleTransition(String LifecycleTransition)
Set Scenario for entering the lifecycle hook.
|
void |
setLifecycleTransitionType(String LifecycleTransitionType)
Set Specifies the scenario type for performing the lifecycle hook.
|
void |
setNotificationMetadata(String NotificationMetadata)
Set Additional information for the notification target
|
void |
setNotificationTarget(NotificationTarget NotificationTarget)
Set Notification target
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonStringpublic LifecycleHook()
public LifecycleHook(LifecycleHook source)
public String getLifecycleHookId()
public void setLifecycleHookId(String LifecycleHookId)
LifecycleHookId - Lifecycle hook IDpublic String getLifecycleHookName()
public void setLifecycleHookName(String LifecycleHookName)
LifecycleHookName - Lifecycle hook namepublic String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId - Auto scaling group IDpublic String getDefaultResult()
public void setDefaultResult(String DefaultResult)
DefaultResult - Action to be taken by the scaling group in case of lifecycle hook timeout or LifecycleCommand execution failure. valid values:.
-CONTINUE execution by default means capacity expansion or reduction.
-For scale-out hooks, cvms with hook timeout or failed LifecycleCommand execution will be released directly or removed; for scale-in hooks, scale-in activities will continue.public Long getHeartbeatTimeout()
public void setHeartbeatTimeout(Long HeartbeatTimeout)
HeartbeatTimeout - Specifies the timeout waiting time of the lifecycle hook in seconds. value range: 30 to 7200.public String getLifecycleTransition()
public void setLifecycleTransition(String LifecycleTransition)
LifecycleTransition - Scenario for entering the lifecycle hook. valid values:.
-`INSTANCE_LAUNCHING`: the lifecycle hook is being scaled out.
-INSTANCE_TERMINATING: scale-in lifecycle hook.public String getNotificationMetadata()
public void setNotificationMetadata(String NotificationMetadata)
NotificationMetadata - Additional information for the notification targetpublic String getCreatedTime()
public void setCreatedTime(String CreatedTime)
CreatedTime - Creation time. uses UTC for timing.public NotificationTarget getNotificationTarget()
public void setNotificationTarget(NotificationTarget NotificationTarget)
NotificationTarget - Notification targetpublic String getLifecycleTransitionType()
public void setLifecycleTransitionType(String LifecycleTransitionType)
LifecycleTransitionType - Specifies the scenario type for performing the lifecycle hook. valid values: NORMAL and EXTENSION. default value: NORMAL.
Description: when set to `EXTENSION`, the lifecycle hook will be triggered during `AttachInstances`, `DetachInstances`, or `RemoveInstances` API calls. if set to `NORMAL`, the lifecycle hook will not be triggered by these apis.public LifecycleCommand getLifecycleCommand()
public void setLifecycleCommand(LifecycleCommand LifecycleCommand)
LifecycleCommand - Remote command execution object.Copyright © 2025. All rights reserved.