public static final class RollbackApplicationRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
RollbackApplicationRequest.Builder |
appId(String appId)
The ID of the application.
|
RollbackApplicationRequest.Builder |
autoEnableApplicationScalingRule(String autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application.
|
RollbackApplicationRequest.Builder |
batchWaitTime(Integer batchWaitTime)
The wait time between batches.
|
RollbackApplicationRequest |
build() |
RollbackApplicationRequest.Builder |
minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances.
|
RollbackApplicationRequest.Builder |
minReadyInstances(Integer minReadyInstances)
The minimum number of available instances.
|
RollbackApplicationRequest.Builder |
updateStrategy(String updateStrategy)
The deployment policy.
|
RollbackApplicationRequest.Builder |
versionId(String versionId)
The ID of the application version.
|
public RollbackApplicationRequest.Builder appId(String appId)
The ID of the application.
This parameter is required.
example:017f39b8-dfa4-4e16-a84b-1dcee4b1****
public RollbackApplicationRequest.Builder autoEnableApplicationScalingRule(String autoEnableApplicationScalingRule)
Specifies whether to automatically enable an auto scaling policy for the application. Take note of the following rules:
true
public RollbackApplicationRequest.Builder batchWaitTime(Integer batchWaitTime)
The wait time between batches. Unit: seconds.
example:10
public RollbackApplicationRequest.Builder minReadyInstanceRatio(Integer minReadyInstanceRatio)
The percentage of the minimum number of available instances. Take note of the following rules:
example:When both 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 RollbackApplicationRequest.Builder minReadyInstances(Integer minReadyInstances)
The minimum number of available instances. Take note of the following rules:
example:Make sure that at least one instance is available during application deployment and rollback to prevent business interruptions.
1
public RollbackApplicationRequest.Builder updateStrategy(String updateStrategy)
The deployment policy. If the minimum number of available instances is 1, the value of the UpdateStrategy parameter is an empty string (""). If the minimum number of available instances is larger than 1, specify this parameter based on your requirements. Examples:
Perform canary release for one instance and release the remaining instances in two batches automatically with a one-minute interval between the deployment of each instance:
{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}
Perform canary release for one instance and release the remaining instances in two batches manually:
{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"manual"},"grayUpdate":{"gray":1}}
Release the instances in two batches automatically with no interval between the deployment of each instance:
{"type":"BatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":0}}
The following table describes the parameters that are used in the preceding statements.
type: the type of the release policy. Valid values: GrayBatchUpdate and BatchUpdate.
batchUpdate: the phased release policy.
grayUpdate: the number of release batches in the phased release after a canary release. This parameter is returned only if the type parameter is set to GrayBatchUpdate.
{"type":"GrayBatchUpdate","batchUpdate":{"batch":2,"releaseType":"auto","batchWaitTime":1},"grayUpdate":{"gray":1}}
public RollbackApplicationRequest.Builder versionId(String versionId)
The ID of the application version. Call the ListAppVersions operation to obtain the version ID.
This parameter is required.
example:0026ff7f-2b57-4127-bdd0-9bf202bb9****
public RollbackApplicationRequest build()
Copyright © 2026. All rights reserved.