public class ModifyInstancesAttributeRequest extends AbstractModel
Constructor and Description |
---|
ModifyInstancesAttributeRequest() |
ModifyInstancesAttributeRequest(ModifyInstancesAttributeRequest 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 |
getCamRoleName()
Get The role bound with the instance.
|
String |
getCamRoleType()
Get The role type, which is used in conjunction with `CamRoleName`.
|
Boolean |
getDisableApiTermination()
Get Whether the termination protection is enabled.
|
String |
getHostName()
Get Host name of the instance.
|
String[] |
getInstanceIds()
Get Instance ID(s).
|
String |
getInstanceName()
Get The instance name, which can not exceed 60 characters
|
String[] |
getSecurityGroups()
Get IDs of security groups associated with the specified instance.
|
void |
setCamRoleName(String CamRoleName)
Set The role bound with the instance.
|
void |
setCamRoleType(String CamRoleType)
Set The role type, which is used in conjunction with `CamRoleName`.
|
void |
setDisableApiTermination(Boolean DisableApiTermination)
Set Whether the termination protection is enabled.
|
void |
setHostName(String HostName)
Set Host name of the instance.
|
void |
setInstanceIds(String[] InstanceIds)
Set Instance ID(s).
|
void |
setInstanceName(String InstanceName)
Set The instance name, which can not exceed 60 characters
|
void |
setSecurityGroups(String[] SecurityGroups)
Set IDs of security groups associated with the specified instance.
|
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 ModifyInstancesAttributeRequest()
public ModifyInstancesAttributeRequest(ModifyInstancesAttributeRequest source)
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds
- Instance ID(s). To obtain the instance IDs, you can call [`DescribeInstances`](https://intl.cloud.tencent.com/document/api/213/15728?from_cn_redirect=1) and look for `InstanceId` in the response. The maximum number of instances in each request is 100.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- The instance name, which can not exceed 60 characters
public String[] getSecurityGroups()
public void setSecurityGroups(String[] SecurityGroups)
SecurityGroups
- IDs of security groups associated with the specified instance. You can associate with a security group by adding its ID, or cancel the association with a security group by removing its ID. public String getCamRoleName()
public void setCamRoleName(String CamRoleName)
CamRoleName
- The role bound with the instance. If it is not specified, it indicates to unbind the current role of the CVM.public String getHostName()
public void setHostName(String HostName)
HostName
- Host name of the instance. public Boolean getDisableApiTermination()
public void setDisableApiTermination(Boolean DisableApiTermination)
DisableApiTermination
- Whether the termination protection is enabled. Values: public String getCamRoleType()
public void setCamRoleType(String CamRoleType)
CamRoleType
- The role type, which is used in conjunction with `CamRoleName`. The value is obtained in `RoleType` field, returning by `CAM DescribeRoleList` and `GetRole` APIs. Valid value: `user`, `system` and `service_linked`.
For example, when `LinkedRoleIn` is contained in `CamRoleName` (such as `TKE_QCSLinkedRoleInPrometheusService`), the returned `RoleType` of `DescribeRoleList` and `GetRoleis` is `service_linked`, and the `CamRoleType` `service_linked`.
When the value obtained in `RoleType` is `user` (default) or `system`, `CamRoleType` can be left empty.Copyright © 2023. All rights reserved.