public class CreateLifecycleHookRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateLifecycleHookRequest() |
CreateLifecycleHookRequest(CreateLifecycleHookRequest 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 Scaling group ID.
|
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 Specifies the remote command execution object.
|
String |
getLifecycleHookName()
Get Lifecycle hook name, which can contain Chinese characters, letters, numbers, underscores (_), hyphens (-), and periods (.) with a maximum length of 128 bytes.
|
String |
getLifecycleTransition()
Get Scenario for performing the lifecycle hook.
|
String |
getLifecycleTransitionType()
Get Specifies the scenario type for performing the lifecycle hook.
|
String |
getNotificationMetadata()
Get Additional information of a notification that auto scaling sends to targets.
|
NotificationTarget |
getNotificationTarget()
Get Notification target.
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Scaling group ID.
|
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 Specifies the remote command execution object.
|
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 bytes.
|
void |
setLifecycleTransition(String LifecycleTransition)
Set Scenario for performing the lifecycle hook.
|
void |
setLifecycleTransitionType(String LifecycleTransitionType)
Set Specifies the scenario type for performing the lifecycle hook.
|
void |
setNotificationMetadata(String NotificationMetadata)
Set Additional information of a notification that auto scaling sends to targets.
|
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, toJsonString
public CreateLifecycleHookRequest()
public CreateLifecycleHookRequest(CreateLifecycleHookRequest source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- Scaling group ID. obtain available scaling group ids in the following ways:.
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 bytes.public String getLifecycleTransition()
public void setLifecycleTransition(String LifecycleTransition)
LifecycleTransition
- Scenario for performing the lifecycle hook. valid values:.
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:.
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 of a notification that auto scaling sends to targets. this parameter is set when you configure a notification (default value: ""), with a maximum length of 1024 characters. NotificationMetadata and LifecycleCommand are mutually exclusive, and either can be specified.public NotificationTarget getNotificationTarget()
public void setNotificationTarget(NotificationTarget NotificationTarget)
NotificationTarget
- Notification target. `NotificationTarget` and `LifecycleCommand` cannot be specified at the same time.public 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.
`EXTENSION`: the lifecycle hook will be triggered when calling [AttachInstances](https://intl.cloud.tencent.com/document/api/377/20441?from_cn_redirect=1), [DetachInstances](https://intl.cloud.tencent.com/document/api/377/20436?from_cn_redirect=1), [removeinstances](https://intl.cloud.tencent.com/document/api/377/20431?from_cn_redirect=1), [StopAutoScalingInstances](https://intl.cloud.tencent.com/document/api/377/40286?from_cn_redirect=1), [StartAutoScalingInstances](https://intl.cloud.tencent.com/document/api/377/40287?from_cn_redirect=1), or [StartInstanceRefresh](https://intl.cloud.tencent.com/document/api/377/99172?from_cn_redirect=1). `NORMAL`: the lifecycle hook is not triggered by these apis.public LifecycleCommand getLifecycleCommand()
public void setLifecycleCommand(LifecycleCommand LifecycleCommand)
LifecycleCommand
- Specifies the remote command execution object. NotificationTarget and NotificationMetadata are mutually exclusive with this parameter. either cannot be specified simultaneously.Copyright © 2025. All rights reserved.