public static final class ModifyInstanceAttributeRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyInstanceAttributeRequest |
build() |
ModifyInstanceAttributeRequest.Builder |
entrusted(Boolean entrusted)
Specifies whether to allow the scaling group to manage the lifecycles of the manually added ECS instances.
|
ModifyInstanceAttributeRequest.Builder |
instanceId(String instanceId)
The ID of the ECS instance.
|
ModifyInstanceAttributeRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
ModifyInstanceAttributeRequest.Builder |
regionId(String regionId)
The region ID of the scaling group.
|
ModifyInstanceAttributeRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
ModifyInstanceAttributeRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public ModifyInstanceAttributeRequest.Builder entrusted(Boolean entrusted)
* true: allows the scaling group to manage the lifecycles of the manually added ECS instances. The scaling group manages the lifecycles of manually added instances and automatically created instances in the same manner. In this case, Auto Scaling releases the instances when they are removed from the scaling group. This rule does not apply to instances that are removed by calling the DetachInstances operation. * false: does not allow the scaling group to manage the lifecycles of the manually added ECS instances. In this case, Auto Scaling does not release the instances when they are removed from the scaling group. > You can specify this parameter only for ECS instances that are manually added to the scaling group.
public ModifyInstanceAttributeRequest.Builder instanceId(String instanceId)
public ModifyInstanceAttributeRequest.Builder ownerId(Long ownerId)
public ModifyInstanceAttributeRequest.Builder regionId(String regionId)
public ModifyInstanceAttributeRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public ModifyInstanceAttributeRequest.Builder scalingGroupId(String scalingGroupId)
public ModifyInstanceAttributeRequest build()
Copyright © 2024. All rights reserved.