public static final class SetInstancesProtectionRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
SetInstancesProtectionRequest |
build() |
SetInstancesProtectionRequest.Builder |
instanceIds(List<String> instanceIds)
The IDs of the ECS instances.
|
SetInstancesProtectionRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
SetInstancesProtectionRequest.Builder |
protectedFromScaleIn(Boolean protectedFromScaleIn)
Specifies whether to protect ECS instances from being stopped or removed from the scaling group during scale-ins.
|
SetInstancesProtectionRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
SetInstancesProtectionRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public SetInstancesProtectionRequest.Builder instanceIds(List<String> instanceIds)
public SetInstancesProtectionRequest.Builder ownerId(Long ownerId)
public SetInstancesProtectionRequest.Builder protectedFromScaleIn(Boolean protectedFromScaleIn)
* true * false
public SetInstancesProtectionRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public SetInstancesProtectionRequest.Builder scalingGroupId(String scalingGroupId)
public SetInstancesProtectionRequest build()
Copyright © 2024. All rights reserved.