public static final class DescribeScalingInstancesResponseBody.ScalingInstances.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder createdTime(String createdTime)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder creationTime(String creationTime)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder creationType(String creationType)
* AutoCreated: Auto Scaling created the ECS instances based on the instance configuration source. * Attached: You manually added the ECS instances to the scaling group.
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder entrusted(Boolean entrusted)
* true * false
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder healthStatus(String healthStatus)
* Healthy * Unhealthy Auto Scaling automatically removes unhealthy ECS instances from the scaling group and then releases the automatically created instances among the unhealthy instances. Unhealthy ECS instances that are manually added to the scaling group are released based on the management mode of their lifecycles. If the lifecycles of the ECS instances are not managed by the scaling group, Auto Scaling removes the instances from the scaling group but does not release the instances. If the lifecycles of the ECS instances are managed by the scaling group, Auto Scaling removes the instances from the scaling group and releases the instances. > Make sure that you have sufficient balance within your Alibaba Cloud account. If your account has an overdue payment, all pay-as-you-go ECS instances, including preemptible instances, may be stopped or even released. For information about how the status of ECS instances changes when you have an overdue payment in your Alibaba Cloud account, see [Overdue payments](~~170589~~).
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder instanceId(String instanceId)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder launchTemplateId(String launchTemplateId)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder launchTemplateVersion(String launchTemplateVersion)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder lifecycleState(String lifecycleState)
* InService: The ECS instances have been successfully added to the scaling group and are providing the intended services. * Pending: The ECS instances are in the process of being added to the scaling group. When an ECS instance is being added to the scaling group, Auto Scaling also adds it to the backend server groups of the attached load balancers and adds its private IP address to the IP address whitelists of the attached ApsaraDB RDS instances. * Pending:Wait: The ECS instances are awaiting addition to the scaling group. If a scale-out lifecycle hook is in effect, ECS instances will remain in the Pending:Wait state until the timeout period for the lifecycle hook expires. * Protected: The ECS instances are being safeguarded. Protected ECS instances can continue to provide services as expected, but Auto Scaling does not manage their lifecycles. You must manually manage the lifecycles of the ECS instances. * Standby: The ECS instances are on standby. Standby ECS instances do not provide services as expected, and their weights as backend servers are reset to zero. Auto Scaling does not manage their lifecycles. Therefore, you must manually manage the lifecycles of the ECS instances. * Stopped: The ECS instances are stopped. Stopped ECS instances do not provide services anymore. * Removing: The ECS instances are in the process of being removed from the scaling group. When an ECS instance is being removed from the scaling group, Auto Scaling also removes it from the backend server groups of the attached load balancers and removes its private IP address from the IP address whitelists of the attached ApsaraDB RDS instances. * Removing:Wait: The ECS instances are awaiting removal from the scaling group. If a scale-in lifecycle hook is in effect, ECS instances will remain in the Removing:Wait state until the timeout period for the lifecycle hook expires.
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder loadBalancerWeight(Integer loadBalancerWeight)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder privateIpAddress(String privateIpAddress)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder scalingActivityId(String scalingActivityId)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder scalingConfigurationId(String scalingConfigurationId)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder scalingGroupId(String scalingGroupId)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder scalingInstanceId(String scalingInstanceId)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder spotStrategy(String spotStrategy)
* SpotWithPriceLimit: The instances were created as preemptible instances with a user-defined maximum hourly price. * SpotAsPriceGo: The instances were preemptible instances for which the market price at the time of purchase was automatically used as the bidding price.
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder warmupState(String warmupState)
* NoNeedWarmup: The ECS instances do not need to go through a warm-up period. * WaitingForInstanceWarmup: The ECS instances are undergoing the warm-up process. * InstanceWarmupFinish: The warm-up process for the ECS instances is completed.
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder weightedCapacity(Integer weightedCapacity)
public DescribeScalingInstancesResponseBody.ScalingInstances.Builder zoneId(String zoneId)
public DescribeScalingInstancesResponseBody.ScalingInstances build()
Copyright © 2024. All rights reserved.