com.aliyun.polardb20170801.models.DescribeBackupPolicyResponseBody Maven / Gradle / Ivy
Show all versions of polardb20170801 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.polardb20170801.models;
import com.aliyun.tea.*;
public class DescribeBackupPolicyResponseBody extends TeaModel {
/**
* The backup frequency. Default value: Normal. Valid values:
*
* - 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).
*
*
*
* example:
* Normal
*/
@NameInMap("BackupFrequency")
public String backupFrequency;
/**
* Indicates whether backups are retained when you delete a cluster. Valid values:
*
* - ALL: permanently retains all backups.
* - LATEST: permanently retains only the last backup.
* - NONE: does not retain backups.
*
*
* example:
* NONE
*/
@NameInMap("BackupRetentionPolicyOnClusterDeletion")
public String backupRetentionPolicyOnClusterDeletion;
/**
* The backup frequency of level-1 backups. Default value: Normal. Valid values:
*
* - 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.
*
*
*
* example:
* Normal
*/
@NameInMap("DataLevel1BackupFrequency")
public String dataLevel1BackupFrequency;
/**
* The backup cycle of level-1 backups. Valid values:
*
* - 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.
*
*
*
* example:
* Monday,Tuesday
*/
@NameInMap("DataLevel1BackupPeriod")
public String dataLevel1BackupPeriod;
/**
* The retention period of level-1 backups. Valid values: 3 to 14. Unit: day.
*
* example:
* 7
*/
@NameInMap("DataLevel1BackupRetentionPeriod")
public String dataLevel1BackupRetentionPeriod;
/**
* The period of time during which automatic backup is performed. The value must be in the hh:mmZ-hh:mmZ
format. The time must be in UTC. The start time and the end time must be on the hour and must have an interval of 1 hour. Example: 14:00Z-15:00Z
.
*
*
* - 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.
*
*
*
* example:
* 15:00Z-16:00Z
*/
@NameInMap("DataLevel1BackupTime")
public String dataLevel1BackupTime;
/**
* The region where the cross-region level-2 backup is stored. For information about regions that support the cross-region backup feature, see Overview.
*
* example:
* cn-hangzhou
*/
@NameInMap("DataLevel2BackupAnotherRegionRegion")
public String dataLevel2BackupAnotherRegionRegion;
/**
* The retention period of cross-region level-2 backups. Valid values:
*
* - 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.
*
*
* example:
* 30
*/
@NameInMap("DataLevel2BackupAnotherRegionRetentionPeriod")
public String dataLevel2BackupAnotherRegionRetentionPeriod;
/**
* The backup cycle of level-2 backups. Valid values:
*
* - 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.
*
*
*
* example:
* Monday,Tuesday
*/
@NameInMap("DataLevel2BackupPeriod")
public String dataLevel2BackupPeriod;
/**
* The retention period of level-2 backups. Valid values:
*
* - 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.
*
*
* example:
* 0
*/
@NameInMap("DataLevel2BackupRetentionPeriod")
public String dataLevel2BackupRetentionPeriod;
/**
* The backup cycle. Valid values:
*
* - Monday
* - Tuesday
* - Wednesday
* - Thursday
* - Friday
* - Saturday
* - Sunday
*
*
* example:
* Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
*/
@NameInMap("PreferredBackupPeriod")
public String preferredBackupPeriod;
/**
* The time period when automatic backups are performed. The format is HH:mmZ-HH:mmZ
. The time is displayed in UTC.
*
* example:
* 07:00Z-08:00Z
*/
@NameInMap("PreferredBackupTime")
public String preferredBackupTime;
/**
* The time when the next automatic backup will be performed. The format is YYYY-MM-DDThh:mmZ
. The time is displayed in UTC.
*
* example:
* 2020-11-16T07:30Z
*/
@NameInMap("PreferredNextBackupTime")
public String preferredNextBackupTime;
/**
* The ID of the request.
*
* example:
* EADFCE0F-9FB5-4685-B395-1440B******
*/
@NameInMap("RequestId")
public String requestId;
public static DescribeBackupPolicyResponseBody build(java.util.Map map) throws Exception {
DescribeBackupPolicyResponseBody self = new DescribeBackupPolicyResponseBody();
return TeaModel.build(map, self);
}
public DescribeBackupPolicyResponseBody setBackupFrequency(String backupFrequency) {
this.backupFrequency = backupFrequency;
return this;
}
public String getBackupFrequency() {
return this.backupFrequency;
}
public DescribeBackupPolicyResponseBody setBackupRetentionPolicyOnClusterDeletion(String backupRetentionPolicyOnClusterDeletion) {
this.backupRetentionPolicyOnClusterDeletion = backupRetentionPolicyOnClusterDeletion;
return this;
}
public String getBackupRetentionPolicyOnClusterDeletion() {
return this.backupRetentionPolicyOnClusterDeletion;
}
public DescribeBackupPolicyResponseBody setDataLevel1BackupFrequency(String dataLevel1BackupFrequency) {
this.dataLevel1BackupFrequency = dataLevel1BackupFrequency;
return this;
}
public String getDataLevel1BackupFrequency() {
return this.dataLevel1BackupFrequency;
}
public DescribeBackupPolicyResponseBody setDataLevel1BackupPeriod(String dataLevel1BackupPeriod) {
this.dataLevel1BackupPeriod = dataLevel1BackupPeriod;
return this;
}
public String getDataLevel1BackupPeriod() {
return this.dataLevel1BackupPeriod;
}
public DescribeBackupPolicyResponseBody setDataLevel1BackupRetentionPeriod(String dataLevel1BackupRetentionPeriod) {
this.dataLevel1BackupRetentionPeriod = dataLevel1BackupRetentionPeriod;
return this;
}
public String getDataLevel1BackupRetentionPeriod() {
return this.dataLevel1BackupRetentionPeriod;
}
public DescribeBackupPolicyResponseBody setDataLevel1BackupTime(String dataLevel1BackupTime) {
this.dataLevel1BackupTime = dataLevel1BackupTime;
return this;
}
public String getDataLevel1BackupTime() {
return this.dataLevel1BackupTime;
}
public DescribeBackupPolicyResponseBody setDataLevel2BackupAnotherRegionRegion(String dataLevel2BackupAnotherRegionRegion) {
this.dataLevel2BackupAnotherRegionRegion = dataLevel2BackupAnotherRegionRegion;
return this;
}
public String getDataLevel2BackupAnotherRegionRegion() {
return this.dataLevel2BackupAnotherRegionRegion;
}
public DescribeBackupPolicyResponseBody setDataLevel2BackupAnotherRegionRetentionPeriod(String dataLevel2BackupAnotherRegionRetentionPeriod) {
this.dataLevel2BackupAnotherRegionRetentionPeriod = dataLevel2BackupAnotherRegionRetentionPeriod;
return this;
}
public String getDataLevel2BackupAnotherRegionRetentionPeriod() {
return this.dataLevel2BackupAnotherRegionRetentionPeriod;
}
public DescribeBackupPolicyResponseBody setDataLevel2BackupPeriod(String dataLevel2BackupPeriod) {
this.dataLevel2BackupPeriod = dataLevel2BackupPeriod;
return this;
}
public String getDataLevel2BackupPeriod() {
return this.dataLevel2BackupPeriod;
}
public DescribeBackupPolicyResponseBody setDataLevel2BackupRetentionPeriod(String dataLevel2BackupRetentionPeriod) {
this.dataLevel2BackupRetentionPeriod = dataLevel2BackupRetentionPeriod;
return this;
}
public String getDataLevel2BackupRetentionPeriod() {
return this.dataLevel2BackupRetentionPeriod;
}
public DescribeBackupPolicyResponseBody setPreferredBackupPeriod(String preferredBackupPeriod) {
this.preferredBackupPeriod = preferredBackupPeriod;
return this;
}
public String getPreferredBackupPeriod() {
return this.preferredBackupPeriod;
}
public DescribeBackupPolicyResponseBody setPreferredBackupTime(String preferredBackupTime) {
this.preferredBackupTime = preferredBackupTime;
return this;
}
public String getPreferredBackupTime() {
return this.preferredBackupTime;
}
public DescribeBackupPolicyResponseBody setPreferredNextBackupTime(String preferredNextBackupTime) {
this.preferredNextBackupTime = preferredNextBackupTime;
return this;
}
public String getPreferredNextBackupTime() {
return this.preferredNextBackupTime;
}
public DescribeBackupPolicyResponseBody setRequestId(String requestId) {
this.requestId = requestId;
return this;
}
public String getRequestId() {
return this.requestId;
}
}