public class ModifyLifecycleHookRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyLifecycleHookRequest() |
ModifyLifecycleHookRequest(ModifyLifecycleHookRequest 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 |
getDefaultResult()
Get Action to be taken by the scaling group in case of lifecycle hook timeout or LifecycleCommand execution failure.
|
Long |
getHeartbeatTimeout()
Get The maximum length of time (in seconds) that can elapse before the lifecycle hook times out.
|
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 The scenario where the lifecycle hook is applied.
|
String |
getNotificationMetadata()
Get Specifies the additional information sent by auto scaling to the notification target.
|
NotificationTarget |
getNotificationTarget()
Get Notify the target information.
|
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 The maximum length of time (in seconds) that can elapse before the lifecycle hook times out.
|
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 The scenario where the lifecycle hook is applied.
|
void |
setNotificationMetadata(String NotificationMetadata)
Set Specifies the additional information sent by auto scaling to the notification target.
|
void |
setNotificationTarget(NotificationTarget NotificationTarget)
Set Notify the target information.
|
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, toJsonString
public ModifyLifecycleHookRequest()
public ModifyLifecycleHookRequest(ModifyLifecycleHookRequest source)
public String getLifecycleHookId()
public void setLifecycleHookId(String LifecycleHookId)
LifecycleHookId
- Lifecycle hook ID. you can get the lifecycle hook ID by calling the api [DescribeLifecycleHooks](https://intl.cloud.tencent.com/document/api/377/34452?from_cn_redirect=1) and retrieving the LifecycleHookId from the returned information.public String getLifecycleHookName()
public void setLifecycleHookName(String LifecycleHookName)
LifecycleHookName
- Lifecycle hook name. Name only supports chinese, english, digits, underscore (_), hyphen (-), decimal point (.), maximum length cannot exceed 128.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`: the lifecycle hook is being scaled in.public 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:.
Default value means CONTINUE to execute capacity expansion or reduction.
ABANDON: for scale-out hooks, cvms that time out or fail to execute LifecycleCommand are released directly or removed. for scale-in hooks, scale-in activities continue.public Long getHeartbeatTimeout()
public void setHeartbeatTimeout(Long HeartbeatTimeout)
HeartbeatTimeout
- The maximum length of time (in seconds) that can elapse before the lifecycle hook times out. Value range: 30 - 7,200 seconds.public String getNotificationMetadata()
public void setNotificationMetadata(String NotificationMetadata)
NotificationMetadata
- Specifies the additional information sent by auto scaling to the notification target. NotificationMetadata and LifecycleCommand are mutually exclusive. the two cannot be specified simultaneously.public String getLifecycleTransitionType()
public void setLifecycleTransitionType(String LifecycleTransitionType)
LifecycleTransitionType
- The scenario where the lifecycle hook is applied. `EXTENSION`: The lifecycle hook will be triggered when `AttachInstances`, `DetachInstances` or `RemoveInstances` is called. `NORMAL`: The lifecycle hook is not triggered by the above APIs.public NotificationTarget getNotificationTarget()
public void setNotificationTarget(NotificationTarget NotificationTarget)
NotificationTarget
- Notify the target information. NotificationTarget and LifecycleCommand are mutually exclusive. the two cannot be specified simultaneously.public LifecycleCommand getLifecycleCommand()
public void setLifecycleCommand(LifecycleCommand LifecycleCommand)
LifecycleCommand
- Remote command execution object. `NotificationMetadata`, `NotificationTarget`, and `LifecycleCommand` cannot be specified at the same time.Copyright © 2025. All rights reserved.