public class CompleteLifecycleActionRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CompleteLifecycleActionRequest() |
CompleteLifecycleActionRequest(CompleteLifecycleActionRequest 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 |
getInstanceId()
Get 实例ID,`InstanceId` 和 `LifecycleActionToken` 参数必须填写其中一个。可通过登录 [控制台](https://console.cloud.tencent.com/cvm/index) 或调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。
|
String |
getLifecycleActionResult()
Get 生命周期动作的结果,取值范围如下:
CONTINUE: 默认值,表示继续执行扩缩容活动
ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
|
String |
getLifecycleActionToken()
Get 生命周期动作令牌,`InstanceId` 和 `LifecycleActionToken` 必须填充其中一个。
该参数获取方式如下:配置 `NotificationTarget ` 参数的挂钩被触发时,向 `NotificationTarget ` 参数中指定的消息队列投递包含令牌的消息,消息队列的消费者可从消息中获取令牌。
|
String |
getLifecycleHookId()
Get 生命周期挂钩ID。可以通过调用接口 [DescribeLifecycleHooks](https://cloud.tencent.com/document/api/377/34452) ,取返回信息中的 LifecycleHookId 获取生命周期挂钩ID。
|
void |
setInstanceId(String InstanceId)
Set 实例ID,`InstanceId` 和 `LifecycleActionToken` 参数必须填写其中一个。可通过登录 [控制台](https://console.cloud.tencent.com/cvm/index) 或调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。
|
void |
setLifecycleActionResult(String LifecycleActionResult)
Set 生命周期动作的结果,取值范围如下:
CONTINUE: 默认值,表示继续执行扩缩容活动
ABANDON: 针对扩容挂钩,挂钩超时或 LifecycleCommand 执行失败的 CVM 实例会直接释放或移出;而针对缩容挂钩,会继续执行缩容活动。
|
void |
setLifecycleActionToken(String LifecycleActionToken)
Set 生命周期动作令牌,`InstanceId` 和 `LifecycleActionToken` 必须填充其中一个。
该参数获取方式如下:配置 `NotificationTarget ` 参数的挂钩被触发时,向 `NotificationTarget ` 参数中指定的消息队列投递包含令牌的消息,消息队列的消费者可从消息中获取令牌。
|
void |
setLifecycleHookId(String LifecycleHookId)
Set 生命周期挂钩ID。可以通过调用接口 [DescribeLifecycleHooks](https://cloud.tencent.com/document/api/377/34452) ,取返回信息中的 LifecycleHookId 获取生命周期挂钩ID。
|
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 CompleteLifecycleActionRequest()
public CompleteLifecycleActionRequest(CompleteLifecycleActionRequest source)
public String getLifecycleHookId()
public void setLifecycleHookId(String LifecycleHookId)
LifecycleHookId
- 生命周期挂钩ID。可以通过调用接口 [DescribeLifecycleHooks](https://cloud.tencent.com/document/api/377/34452) ,取返回信息中的 LifecycleHookId 获取生命周期挂钩ID。public String getLifecycleActionResult()
public void setLifecycleActionResult(String LifecycleActionResult)
LifecycleActionResult
- 生命周期动作的结果,取值范围如下:
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- 实例ID,`InstanceId` 和 `LifecycleActionToken` 参数必须填写其中一个。可通过登录 [控制台](https://console.cloud.tencent.com/cvm/index) 或调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。public String getLifecycleActionToken()
public void setLifecycleActionToken(String LifecycleActionToken)
LifecycleActionToken
- 生命周期动作令牌,`InstanceId` 和 `LifecycleActionToken` 必须填充其中一个。
该参数获取方式如下:配置 `NotificationTarget ` 参数的挂钩被触发时,向 `NotificationTarget ` 参数中指定的消息队列投递包含令牌的消息,消息队列的消费者可从消息中获取令牌。Copyright © 2025. All rights reserved.