public class UpgradeLifecycleHookRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
UpgradeLifecycleHookRequest() |
UpgradeLifecycleHookRequest(UpgradeLifecycleHookRequest 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, which can contain chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 characters.
|
String |
getLifecycleTransition()
Get Scenario for performing the lifecycle hook.
|
String |
getLifecycleTransitionType()
Get The scenario where the lifecycle hook is applied.
|
String |
getNotificationMetadata()
Get Additional information sent by auto scaling to notification targets, used when configuring a notification (default value: "").
|
NotificationTarget |
getNotificationTarget()
Get Notification result.
|
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, which can contain chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 characters.
|
void |
setLifecycleTransition(String LifecycleTransition)
Set Scenario for performing the lifecycle hook.
|
void |
setLifecycleTransitionType(String LifecycleTransitionType)
Set The scenario where the lifecycle hook is applied.
|
void |
setNotificationMetadata(String NotificationMetadata)
Set Additional information sent by auto scaling to notification targets, used when configuring a notification (default value: "").
|
void |
setNotificationTarget(NotificationTarget NotificationTarget)
Set Notification result.
|
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 UpgradeLifecycleHookRequest()
public UpgradeLifecycleHookRequest(UpgradeLifecycleHookRequest source)
public String getLifecycleHookId()
public void setLifecycleHookId(String LifecycleHookId)
LifecycleHookId
- Lifecycle hook ID. you can call the api [DescribeLifecycleHooks](https://intl.cloud.tencent.com/document/api/377/34452?from_cn_redirect=1) and retrieve the LifecycleHookId from the returned information to obtain the lifecycle hook ID.public String getLifecycleHookName()
public void setLifecycleHookName(String LifecycleHookName)
LifecycleHookName
- Lifecycle hook name, which can contain chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 characters.public String getLifecycleTransition()
public void setLifecycleTransition(String LifecycleTransition)
LifecycleTransition
- Scenario for performing 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 are as follows:.
Default value, means CONTINUE to execute capacity expansion or reduction.
ABANDON: for scale-out hooks, cvms that time out or fail to execute LifecycleCommand will be released directly or removed. for scale-in hooks, scale-in activities will 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-7200. Default value: 300public String getNotificationMetadata()
public void setNotificationMetadata(String NotificationMetadata)
NotificationMetadata
- Additional information sent by auto scaling to notification targets, used when configuring a notification (default value: ""). NotificationMetadata and LifecycleCommand are mutually exclusive parameters and cannot be specified simultaneously.public NotificationTarget getNotificationTarget()
public void setNotificationTarget(NotificationTarget NotificationTarget)
NotificationTarget
- Notification result. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time.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 RemoveInstaces is called. `NORMAL`: the lifecycle hook is not triggered by the above APIs.public LifecycleCommand getLifecycleCommand()
public void setLifecycleCommand(LifecycleCommand LifecycleCommand)
LifecycleCommand
- Remote command execution object. `NotificationMetadata`, `NotificationTarget`, and `LifecycleCommand` are mutually exclusive and cannot be specified simultaneously.Copyright © 2025. All rights reserved.