public static final class ModifyUniBackupPolicyRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
ModifyUniBackupPolicyRequest.Builder |
accountName(String accountName)
The name of the database account.
|
ModifyUniBackupPolicyRequest.Builder |
accountPassword(String accountPassword)
The password of the database account.
|
ModifyUniBackupPolicyRequest |
build() |
ModifyUniBackupPolicyRequest.Builder |
fullPlan(Map<String,?> fullPlan)
The policy for full backup.
|
ModifyUniBackupPolicyRequest.Builder |
incPlan(Map<String,?> incPlan)
The policy for incremental backup.
|
ModifyUniBackupPolicyRequest.Builder |
policyId(Long policyId)
The ID of the anti-ransomware policy.
|
ModifyUniBackupPolicyRequest.Builder |
policyName(String policyName)
The name of the anti-ransomware policy.
|
ModifyUniBackupPolicyRequest.Builder |
policyStatus(String policyStatus)
The status of the anti-ransomware policy.
|
ModifyUniBackupPolicyRequest.Builder |
retention(Integer retention)
The retention period of the backup snapshot.
|
ModifyUniBackupPolicyRequest.Builder |
speedLimiter(Long speedLimiter)
The maximum network bandwidth that is allowed during data backup.
|
public ModifyUniBackupPolicyRequest.Builder accountName(String accountName)
The name of the database account.
example:sa
public ModifyUniBackupPolicyRequest.Builder accountPassword(String accountPassword)
The password of the database account.
example:Sa@****
public ModifyUniBackupPolicyRequest.Builder fullPlan(Map<String,?> fullPlan)
The policy for full backup. The value of this parameter is a JSON string that contains the following fields:
{"days":[4],"interval":1,"planType":"weekly","startTime":"22:00:00"}
public ModifyUniBackupPolicyRequest.Builder incPlan(Map<String,?> incPlan)
The policy for incremental backup. The value of this parameter is a JSON string that contains the following fields:
{"interval":1,"planType":"daily","startTime":"23:30:00"}
public ModifyUniBackupPolicyRequest.Builder policyId(Long policyId)
The ID of the anti-ransomware policy.
You can call the DescribeUniBackupPolicies operation to query the IDs of anti-ransomware policies.
This parameter is required.
example:123
public ModifyUniBackupPolicyRequest.Builder policyName(String policyName)
The name of the anti-ransomware policy.
example:databak
public ModifyUniBackupPolicyRequest.Builder policyStatus(String policyStatus)
The status of the anti-ransomware policy. Valid values:
enabled
public ModifyUniBackupPolicyRequest.Builder retention(Integer retention)
The retention period of the backup snapshot.
example:7
public ModifyUniBackupPolicyRequest.Builder speedLimiter(Long speedLimiter)
The maximum network bandwidth that is allowed during data backup. Unit: bytes.
example:1048576
public ModifyUniBackupPolicyRequest build()
Copyright © 2026. All rights reserved.