public static final class DescribeBackupPolicyResponseBody.Builder extends Object
构造器和说明 |
---|
Builder() |
限定符和类型 | 方法和说明 |
---|---|
DescribeBackupPolicyResponseBody.Builder |
backupFrequency(String backupFrequency)
The backup frequency.
|
DescribeBackupPolicyResponseBody.Builder |
backupRetentionPolicyOnClusterDeletion(String backupRetentionPolicyOnClusterDeletion)
Indicates whether backups are retained when you delete a cluster.
|
DescribeBackupPolicyResponseBody |
build() |
DescribeBackupPolicyResponseBody.Builder |
dataLevel1BackupFrequency(String dataLevel1BackupFrequency)
The backup frequency of level-1 backups.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel1BackupPeriod(String dataLevel1BackupPeriod)
The backup cycle of level-1 backups.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel1BackupRetentionPeriod(String dataLevel1BackupRetentionPeriod)
The retention period of level-1 backups.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel1BackupTime(String dataLevel1BackupTime)
The period of time during which automatic backup is performed.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel2BackupAnotherRegionRegion(String dataLevel2BackupAnotherRegionRegion)
The region where the cross-region level-2 backup is stored.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel2BackupAnotherRegionRetentionPeriod(String dataLevel2BackupAnotherRegionRetentionPeriod)
The retention period of cross-region level-2 backups.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel2BackupPeriod(String dataLevel2BackupPeriod)
The backup cycle of level-2 backups.
|
DescribeBackupPolicyResponseBody.Builder |
dataLevel2BackupRetentionPeriod(String dataLevel2BackupRetentionPeriod)
The retention period of level-2 backups.
|
DescribeBackupPolicyResponseBody.Builder |
preferredBackupPeriod(String preferredBackupPeriod)
The backup cycle.
|
DescribeBackupPolicyResponseBody.Builder |
preferredBackupTime(String preferredBackupTime)
The time period when automatic backups are performed.
|
DescribeBackupPolicyResponseBody.Builder |
preferredNextBackupTime(String preferredNextBackupTime)
The time when the next automatic backup will be performed.
|
DescribeBackupPolicyResponseBody.Builder |
requestId(String requestId)
The ID of the request.
|
public DescribeBackupPolicyResponseBody.Builder backupFrequency(String backupFrequency)
* **Normal**: standard backup. The system backs up data once a day. * **2/24H**: enhanced backup. The system backs up data every 2 hours. * **3/24H**: enhanced backup. The system backs up data every 3 hours. * **4/24H**: enhanced backup. The system backs up data every 4 hours. > - If enhanced backup is enabled, all backups are retained for 24 hours. Backups are automatically deleted when the retention period ends. However, the system permanently retains the first backup that is created after 00:00 every day. >- If enhanced backup is enabled, **PreferredBackupPeriod** is automatically set to all days in a week (from Monday to Sunday).
public DescribeBackupPolicyResponseBody.Builder backupRetentionPolicyOnClusterDeletion(String backupRetentionPolicyOnClusterDeletion)
* **ALL**: permanently retains all backups. * **LATEST**: permanently retains only the last backup. * **NONE**: does not retain backups.
public DescribeBackupPolicyResponseBody.Builder dataLevel1BackupFrequency(String dataLevel1BackupFrequency)
* **Normal**: standard backup. The system backs up data once a day. * **2/24H**: frequent backup. The system backs up data every 2 hours. * **3/24H**: frequent backup. The system backs up data every 3 hours. * **4/24H**: frequent backup. The system backs up data every 4 hours. >- This parameter is not supported for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. >- This parameter is unavailable if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about regions that support the cross-region backup feature, see [Overview](~~72672~~).
public DescribeBackupPolicyResponseBody.Builder dataLevel1BackupPeriod(String dataLevel1BackupPeriod)
* **Monday** * **Tuesday** * **Wednesday** * **Thursday** * **Friday** * **Saturday** * **Sunday** >- You need to specify at least two values. Separate multiple values with commas (,). >- This parameter is not supported for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. >- This parameter is unavailable if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about regions that support the cross-region backup feature, see [Overview](~~72672~~).
public DescribeBackupPolicyResponseBody.Builder dataLevel1BackupRetentionPeriod(String dataLevel1BackupRetentionPeriod)
public DescribeBackupPolicyResponseBody.Builder dataLevel1BackupTime(String dataLevel1BackupTime)
>- This parameter is not supported for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. >- This parameter is unavailable if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about regions that support the cross-region backup feature, see [Overview](~~72672~~).
public DescribeBackupPolicyResponseBody.Builder dataLevel2BackupAnotherRegionRegion(String dataLevel2BackupAnotherRegionRegion)
public DescribeBackupPolicyResponseBody.Builder dataLevel2BackupAnotherRegionRetentionPeriod(String dataLevel2BackupAnotherRegionRetentionPeriod)
* **0**: The cross-region level-2 backup feature is disabled. * **30 to 7300**: Cross-region level-2 backups are retained for 30 to 7,300 days. * **1**: Cross-region level-2 backups are permanently retained. > The default value is **0**. By default, the level-2 backup feature is disabled when you create a cluster.
public DescribeBackupPolicyResponseBody.Builder dataLevel2BackupPeriod(String dataLevel2BackupPeriod)
* **Monday** * **Tuesday** * **Wednesday** * **Thursday** * **Friday** * **Saturday** * **Sunday** >- You need to specify at least two values. Separate multiple values with commas (,). >- This parameter is not supported for PolarDB for PostgreSQL (Compatible with Oracle) clusters or PolarDB for PostgreSQL clusters. >- This parameter is unavailable if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about regions that support the cross-region backup feature, see [Overview](~~72672~~).
public DescribeBackupPolicyResponseBody.Builder dataLevel2BackupRetentionPeriod(String dataLevel2BackupRetentionPeriod)
* 0: The level-2 backup feature is disabled. * 30 to 7300: Level-2 backups are retained for 30 to 7,300 days. * \-1: Level-2 backups are permanently retained. > The default value is **0**. By default, the level-2 backup feature is disabled when you create a cluster.
public DescribeBackupPolicyResponseBody.Builder preferredBackupPeriod(String preferredBackupPeriod)
* Monday * Tuesday * Wednesday * Thursday * Friday * Saturday * Sunday
public DescribeBackupPolicyResponseBody.Builder preferredBackupTime(String preferredBackupTime)
public DescribeBackupPolicyResponseBody.Builder preferredNextBackupTime(String preferredNextBackupTime)
public DescribeBackupPolicyResponseBody.Builder requestId(String requestId)
public DescribeBackupPolicyResponseBody build()
Copyright © 2024. All rights reserved.