public static final class RestartApplicationRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
RestartApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
RestartApplicationRequest.Builder |
autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application.
|
RestartApplicationRequest |
build() |
RestartApplicationRequest.Builder |
minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances.
|
RestartApplicationRequest.Builder |
minReadyInstances(Integer minReadyInstances)
The minimum number of available instances.
|
public RestartApplicationRequest.Builder appId(String appId)
The ID of the application.
This parameter is required.
example:0099b7be-5f5b-4512-a7fc-56049ef1****
public RestartApplicationRequest.Builder autoEnableApplicationScalingRule(Boolean autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application. Valid values:
false
public RestartApplicationRequest.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 RestartApplicationRequest.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 RestartApplicationRequest build()
Copyright © 2026. All rights reserved.