public static final class EnableScalingGroupRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
EnableScalingGroupRequest.Builder |
activeScalingConfigurationId(String activeScalingConfigurationId)
The ID of the scaling configuration that you want to enable in the scaling group.
|
EnableScalingGroupRequest |
build() |
EnableScalingGroupRequest.Builder |
instanceIds(List<String> instanceIds)
The IDs of the ECS instances that you want to add to the scaling group after the scaling group is enabled.
|
EnableScalingGroupRequest.Builder |
launchTemplateId(String launchTemplateId)
The ID of the launch template that is used by Auto Scaling to create ECS instances.
|
EnableScalingGroupRequest.Builder |
launchTemplateOverrides(List<EnableScalingGroupRequest.LaunchTemplateOverrides> launchTemplateOverrides)
The information about the instance types that you want to extend in the launch template.
|
EnableScalingGroupRequest.Builder |
launchTemplateVersion(String launchTemplateVersion)
The version number of the launch template.
|
EnableScalingGroupRequest.Builder |
loadBalancerWeights(List<Integer> loadBalancerWeights)
The weights of ECS instances or elastic container instances as backend servers.
|
EnableScalingGroupRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
EnableScalingGroupRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
EnableScalingGroupRequest.Builder |
regionId(String regionId)
The region ID of the scaling group.
|
EnableScalingGroupRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
EnableScalingGroupRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
EnableScalingGroupRequest.Builder |
scalingGroupId(String scalingGroupId)
The ID of the scaling group.
|
public EnableScalingGroupRequest.Builder activeScalingConfigurationId(String activeScalingConfigurationId)
public EnableScalingGroupRequest.Builder instanceIds(List<String> instanceIds)
Before you add ECS instances to the scaling group, make sure that the instances meet the following requirements: * The instances must reside in the same region as the scaling group. * The instances must be in the Running state. * The instances do not belong to another scaling group. * The instances are billed on a subscription or pay-as-you-go basis, or the instances are preemptible instances. * If you specify VswitchID for the scaling group, the instances must share the same VPC as the scaling group. * If you do not specify VswitchID for the scaling group, the instances must use the classic network.
public EnableScalingGroupRequest.Builder launchTemplateId(String launchTemplateId)
public EnableScalingGroupRequest.Builder launchTemplateOverrides(List<EnableScalingGroupRequest.LaunchTemplateOverrides> launchTemplateOverrides)
public EnableScalingGroupRequest.Builder launchTemplateVersion(String launchTemplateVersion)
* A fixed template version number. * Default: The default template version is always used. * Latest: The latest template version is always used.
public EnableScalingGroupRequest.Builder loadBalancerWeights(List<Integer> loadBalancerWeights)
Default value: 50.
public EnableScalingGroupRequest.Builder ownerAccount(String ownerAccount)
public EnableScalingGroupRequest.Builder ownerId(Long ownerId)
public EnableScalingGroupRequest.Builder regionId(String regionId)
public EnableScalingGroupRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public EnableScalingGroupRequest.Builder resourceOwnerId(Long resourceOwnerId)
public EnableScalingGroupRequest.Builder scalingGroupId(String scalingGroupId)
public EnableScalingGroupRequest build()
Copyright © 2024. All rights reserved.