public static final class RescaleApplicationRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
RescaleApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
RescaleApplicationRequest.Builder |
autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application.
|
RescaleApplicationRequest |
build() |
RescaleApplicationRequest.Builder |
minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances.
|
RescaleApplicationRequest.Builder |
minReadyInstances(Integer minReadyInstances)
The minimum number of available instances.
|
RescaleApplicationRequest.Builder |
replicas(Integer replicas)
The expected number of instances.
|
public RescaleApplicationRequest.Builder appId(String appId)
The ID of the application.
This parameter is required.
example:0099b7be-5f5b-4512-a7fc-56049ef1****
public RescaleApplicationRequest.Builder autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application. Take note of the following rules:
true
public RescaleApplicationRequest.Builder minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances. Take note of the following rules:
example:When MinReadyInstance and MinReadyInstanceRatio are specified and MinReadyInstanceRatio is set to a number from 0 to 100, the value of MinReadyInstanceRatio** takes precedence.**** For example, if MinReadyInstances is set to **5, and MinReadyInstanceRatio is set to 50, the minimum number of available instances is set to the nearest integer rounded up from the calculated result of the following formula: Current number of instances × 50%.
-1
public RescaleApplicationRequest.Builder minReadyInstances(Integer minReadyInstances)
The minimum number of available instances. Special values:
example:Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.
1
public RescaleApplicationRequest.Builder replicas(Integer replicas)
The expected number of instances.
This parameter is required.
example:5
public RescaleApplicationRequest build()
Copyright © 2026. All rights reserved.