public class SetInstancesProtectionRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SetInstancesProtectionRequest() |
SetInstancesProtectionRequest(SetInstancesProtectionRequest 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 伸缩组ID。可以通过如下方式获取可用的伸缩组ID:
通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 查询伸缩组ID。
通过调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。
|
String[] |
getInstanceIds()
Get 实例ID。可以通过以下方式获取可用的实例ID:
通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。
通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。
|
Boolean |
getProtectedFromScaleIn()
Get 实例是否需要设置保护。
|
void |
setAutoScalingGroupId(String AutoScalingGroupId)
Set 伸缩组ID。可以通过如下方式获取可用的伸缩组ID:
通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 查询伸缩组ID。
通过调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。
|
void |
setInstanceIds(String[] InstanceIds)
Set 实例ID。可以通过以下方式获取可用的实例ID:
通过登录[控制台](https://console.cloud.tencent.com/cvm/index)查询实例ID。
通过调用接口 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) ,取返回信息中的 `InstanceId` 获取实例ID。
|
void |
setProtectedFromScaleIn(Boolean ProtectedFromScaleIn)
Set 实例是否需要设置保护。
|
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 SetInstancesProtectionRequest()
public SetInstancesProtectionRequest(SetInstancesProtectionRequest source)
public String getAutoScalingGroupId()
public void setAutoScalingGroupId(String AutoScalingGroupId)
AutoScalingGroupId
- 伸缩组ID。可以通过如下方式获取可用的伸缩组ID:
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds
- 实例ID。可以通过以下方式获取可用的实例ID:
public Boolean getProtectedFromScaleIn()
public void setProtectedFromScaleIn(Boolean ProtectedFromScaleIn)
ProtectedFromScaleIn
- 实例是否需要设置保护。Copyright © 2025. All rights reserved.