public class CreateLifecycleHookRequest extends AbstractModel
Constructor and Description |
---|
CreateLifecycleHookRequest() |
Modifier and Type | Method and Description |
---|---|
String |
getAutoScalingGroupId()
Get Auto scaling group ID
|
String |
getDefaultResult()
Get Defined actions when lifecycle hook times out.
|
Long |
getHeartbeatTimeout()
Get The maximum length of time (in seconds) that can elapse before the lifecycle hook times out.
|
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 the lifecycle hook.
|
String |
getLifecycleTransitionType()
Get The scenario where the lifecycle hook is applied.
|
String |
getNotificationMetadata()
Get Additional information sent by Auto Scaling to the notification target.
|
NotificationTarget |
getNotificationTarget()
Get Notification target
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set Auto scaling group ID
|
void |
setDefaultResult(String DefaultResult)
Set Defined actions when lifecycle hook times out.
|
void |
setHeartbeatTimeout(Long HeartbeatTimeout)
Set The maximum length of time (in seconds) that can elapse before the lifecycle hook times out.
|
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 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 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- Auto scaling group IDpublic 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 the lifecycle hook. Valid values: "INSTANCE_LAUNCHING" and "INSTANCE_TERMINATING"public String getDefaultResult()
public void setDefaultResult(String DefaultResult)
DefaultResult
- Defined actions when lifecycle hook times out. Valid values: "CONTINUE" and "ABANDON". Default value: "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-3,600. Default value: 300public String getNotificationMetadata()
public void setNotificationMetadata(String NotificationMetadata)
NotificationMetadata
- Additional information sent by Auto Scaling to the notification target. Default value is ''. Maximum length is 1024 characters.public NotificationTarget getNotificationTarget()
public void setNotificationTarget(NotificationTarget NotificationTarget)
NotificationTarget
- Notification targetpublic 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.Copyright © 2020. All rights reserved.