Skip to content

BackupPolicyProps

Properties for defining a BackupPolicy.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-adb-backuppolicy

Initializer

import com.aliyun.ros.cdk.adb.BackupPolicyProps;
BackupPolicyProps.builder()
    .dbClusterId(java.lang.String)
    .dbClusterId(IResolvable)
    .preferredBackupPeriod(IResolvable)
    .preferredBackupPeriod(java.util.List<java.lang.String)
    .preferredBackupPeriod(IResolvable>)
    .preferredBackupTime(java.lang.String)
    .preferredBackupTime(IResolvable)
//  .backupRetentionPeriod(java.lang.Number)
//  .backupRetentionPeriod(IResolvable)
//  .enableBackupLog(java.lang.String)
//  .enableBackupLog(IResolvable)
//  .logBackupRetentionPeriod(java.lang.Number)
//  .logBackupRetentionPeriod(IResolvable)
    .build();

Properties

Name Type Description
dbClusterId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property dbClusterId: The ID of the ADB cluster.
preferredBackupPeriod com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property preferredBackupPeriod: The preferred backup period.
preferredBackupTime java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property preferredBackupTime: The start time of the full backup within a time range.
backupRetentionPeriod java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property backupRetentionPeriod: The number of days for which to retain full backup files.
enableBackupLog java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property enableBackupLog: Specifies whether to enable real-time log backup.
logBackupRetentionPeriod java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property logBackupRetentionPeriod: The number of days for which to retain log backup files.

dbClusterIdRequired

public java.lang.Object getDbClusterId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property dbClusterId: The ID of the ADB cluster.


preferredBackupPeriodRequired

public java.lang.Object getPreferredBackupPeriod();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

Property preferredBackupPeriod: The preferred backup period.

Valid values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday.


preferredBackupTimeRequired

public java.lang.Object getPreferredBackupTime();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property preferredBackupTime: The start time of the full backup within a time range.

Specify the time range in the HH:mmZ-HH:mmZ format. The time must be in UTC.

The time range is 1 hour.


backupRetentionPeriodOptional

public java.lang.Object getBackupRetentionPeriod();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property backupRetentionPeriod: The number of days for which to retain full backup files.

Valid values: 7 to 730.

If you do not specify this parameter, the default value 7 is used.


enableBackupLogOptional

public java.lang.Object getEnableBackupLog();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property enableBackupLog: Specifies whether to enable real-time log backup.

Valid values:

  • Enable
  • Disable

If you leave this parameter empty, the default value Enable is used.


logBackupRetentionPeriodOptional

public java.lang.Object getLogBackupRetentionPeriod();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property logBackupRetentionPeriod: The number of days for which to retain log backup files.

Valid values: 7 to 730.

If you do not specify this parameter, the default value 7 is used.