Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.alicloud.polardb.BackupPolicyArgs Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing AliCloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.alicloud.polardb;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class BackupPolicyArgs extends com.pulumi.resources.ResourceArgs {
public static final BackupPolicyArgs Empty = new BackupPolicyArgs();
/**
* The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
*/
@Import(name="backupFrequency")
private @Nullable Output backupFrequency;
/**
* @return The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
*/
public Optional> backupFrequency() {
return Optional.ofNullable(this.backupFrequency);
}
/**
* Cluster backup retention days, Fixed for 7 days, not modified.
*
*/
@Import(name="backupRetentionPeriod")
private @Nullable Output backupRetentionPeriod;
/**
* @return Cluster backup retention days, Fixed for 7 days, not modified.
*
*/
public Optional> backupRetentionPeriod() {
return Optional.ofNullable(this.backupRetentionPeriod);
}
/**
* Specifies whether to retain backups when you delete a cluster. Valid values are `ALL`, `LATEST`, `NONE`. Default to `NONE`. Value options can refer to the latest docs [ModifyBackupPolicy](https://www.alibabacloud.com/help/en/polardb/latest/modifybackuppolicy)
*
*/
@Import(name="backupRetentionPolicyOnClusterDeletion")
private @Nullable Output backupRetentionPolicyOnClusterDeletion;
/**
* @return Specifies whether to retain backups when you delete a cluster. Valid values are `ALL`, `LATEST`, `NONE`. Default to `NONE`. Value options can refer to the latest docs [ModifyBackupPolicy](https://www.alibabacloud.com/help/en/polardb/latest/modifybackuppolicy)
*
*/
public Optional> backupRetentionPolicyOnClusterDeletion() {
return Optional.ofNullable(this.backupRetentionPolicyOnClusterDeletion);
}
/**
* The Id of cluster that can run database.The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
*/
@Import(name="dataLevel1BackupFrequency")
private @Nullable Output dataLevel1BackupFrequency;
/**
* @return The Id of cluster that can run database.The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
*/
public Optional> dataLevel1BackupFrequency() {
return Optional.ofNullable(this.dataLevel1BackupFrequency);
}
/**
* PolarDB Cluster of level-1 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
*/
@Import(name="dataLevel1BackupPeriods")
private @Nullable Output> dataLevel1BackupPeriods;
/**
* @return PolarDB Cluster of level-1 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
*/
public Optional>> dataLevel1BackupPeriods() {
return Optional.ofNullable(this.dataLevel1BackupPeriods);
}
/**
* The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
*
*/
@Import(name="dataLevel1BackupRetentionPeriod")
private @Nullable Output dataLevel1BackupRetentionPeriod;
/**
* @return The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
*
*/
public Optional> dataLevel1BackupRetentionPeriod() {
return Optional.ofNullable(this.dataLevel1BackupRetentionPeriod);
}
/**
* The time period during which automatic backup is performed. The format is HH: MMZ HH: MMZ (UTC time), and the entered value must be an hour apart, such as 14:00z-15:00z.
*
*/
@Import(name="dataLevel1BackupTime")
private @Nullable Output dataLevel1BackupTime;
/**
* @return The time period during which automatic backup is performed. The format is HH: MMZ HH: MMZ (UTC time), and the entered value must be an hour apart, such as 14:00z-15:00z.
*
*/
public Optional> dataLevel1BackupTime() {
return Optional.ofNullable(this.dataLevel1BackupTime);
}
/**
* PolarDB Cluster of level-2 backup is a cross regional backup area.
*
*/
@Import(name="dataLevel2BackupAnotherRegionRegion")
private @Nullable Output dataLevel2BackupAnotherRegionRegion;
/**
* @return PolarDB Cluster of level-2 backup is a cross regional backup area.
*
*/
public Optional> dataLevel2BackupAnotherRegionRegion() {
return Optional.ofNullable(this.dataLevel2BackupAnotherRegionRegion);
}
/**
* PolarDB Cluster of level-2 backup cross region backup retention period. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
*/
@Import(name="dataLevel2BackupAnotherRegionRetentionPeriod")
private @Nullable Output dataLevel2BackupAnotherRegionRetentionPeriod;
/**
* @return PolarDB Cluster of level-2 backup cross region backup retention period. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
*/
public Optional> dataLevel2BackupAnotherRegionRetentionPeriod() {
return Optional.ofNullable(this.dataLevel2BackupAnotherRegionRetentionPeriod);
}
/**
* PolarDB Cluster of level-2 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
*/
@Import(name="dataLevel2BackupPeriods")
private @Nullable Output> dataLevel2BackupPeriods;
/**
* @return PolarDB Cluster of level-2 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
*/
public Optional>> dataLevel2BackupPeriods() {
return Optional.ofNullable(this.dataLevel2BackupPeriods);
}
/**
* The retention period of level-2 backups. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
*/
@Import(name="dataLevel2BackupRetentionPeriod")
private @Nullable Output dataLevel2BackupRetentionPeriod;
/**
* @return The retention period of level-2 backups. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
*/
public Optional> dataLevel2BackupRetentionPeriod() {
return Optional.ofNullable(this.dataLevel2BackupRetentionPeriod);
}
/**
* The Id of cluster that can run database.
*
*/
@Import(name="dbClusterId", required=true)
private Output dbClusterId;
/**
* @return The Id of cluster that can run database.
*
*/
public Output dbClusterId() {
return this.dbClusterId;
}
/**
* The region in which you want to store cross-region log backups. For information about regions that support the cross-region backup feature, see [Overview.](https://www.alibabacloud.com/help/en/polardb/latest/backup-and-restoration-overview)
*
*/
@Import(name="logBackupAnotherRegionRegion")
private @Nullable Output logBackupAnotherRegionRegion;
/**
* @return The region in which you want to store cross-region log backups. For information about regions that support the cross-region backup feature, see [Overview.](https://www.alibabacloud.com/help/en/polardb/latest/backup-and-restoration-overview)
*
*/
public Optional> logBackupAnotherRegionRegion() {
return Optional.ofNullable(this.logBackupAnotherRegionRegion);
}
/**
* The retention period of cross-region log backups. Default value: OFF. Valid values are `0`, `30 to 7300`, `-1`.
* > **NOTE:** Note When you create a cluster, the default value of this parameter is 0.
*
*/
@Import(name="logBackupAnotherRegionRetentionPeriod")
private @Nullable Output logBackupAnotherRegionRetentionPeriod;
/**
* @return The retention period of cross-region log backups. Default value: OFF. Valid values are `0`, `30 to 7300`, `-1`.
* > **NOTE:** Note When you create a cluster, the default value of this parameter is 0.
*
*/
public Optional> logBackupAnotherRegionRetentionPeriod() {
return Optional.ofNullable(this.logBackupAnotherRegionRetentionPeriod);
}
/**
* The retention period of the log backups. Valid values are `3 to 7300`, `-1`.
*
*/
@Import(name="logBackupRetentionPeriod")
private @Nullable Output logBackupRetentionPeriod;
/**
* @return The retention period of the log backups. Valid values are `3 to 7300`, `-1`.
*
*/
public Optional> logBackupRetentionPeriod() {
return Optional.ofNullable(this.logBackupRetentionPeriod);
}
/**
* PolarDB Cluster backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. Default to ["Tuesday", "Thursday", "Saturday"].
*
*/
@Import(name="preferredBackupPeriods")
private @Nullable Output> preferredBackupPeriods;
/**
* @return PolarDB Cluster backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. Default to ["Tuesday", "Thursday", "Saturday"].
*
*/
public Optional>> preferredBackupPeriods() {
return Optional.ofNullable(this.preferredBackupPeriods);
}
/**
* PolarDB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to "02:00Z-03:00Z". China time is 8 hours behind it.
*
*/
@Import(name="preferredBackupTime")
private @Nullable Output preferredBackupTime;
/**
* @return PolarDB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to "02:00Z-03:00Z". China time is 8 hours behind it.
*
*/
public Optional> preferredBackupTime() {
return Optional.ofNullable(this.preferredBackupTime);
}
private BackupPolicyArgs() {}
private BackupPolicyArgs(BackupPolicyArgs $) {
this.backupFrequency = $.backupFrequency;
this.backupRetentionPeriod = $.backupRetentionPeriod;
this.backupRetentionPolicyOnClusterDeletion = $.backupRetentionPolicyOnClusterDeletion;
this.dataLevel1BackupFrequency = $.dataLevel1BackupFrequency;
this.dataLevel1BackupPeriods = $.dataLevel1BackupPeriods;
this.dataLevel1BackupRetentionPeriod = $.dataLevel1BackupRetentionPeriod;
this.dataLevel1BackupTime = $.dataLevel1BackupTime;
this.dataLevel2BackupAnotherRegionRegion = $.dataLevel2BackupAnotherRegionRegion;
this.dataLevel2BackupAnotherRegionRetentionPeriod = $.dataLevel2BackupAnotherRegionRetentionPeriod;
this.dataLevel2BackupPeriods = $.dataLevel2BackupPeriods;
this.dataLevel2BackupRetentionPeriod = $.dataLevel2BackupRetentionPeriod;
this.dbClusterId = $.dbClusterId;
this.logBackupAnotherRegionRegion = $.logBackupAnotherRegionRegion;
this.logBackupAnotherRegionRetentionPeriod = $.logBackupAnotherRegionRetentionPeriod;
this.logBackupRetentionPeriod = $.logBackupRetentionPeriod;
this.preferredBackupPeriods = $.preferredBackupPeriods;
this.preferredBackupTime = $.preferredBackupTime;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BackupPolicyArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private BackupPolicyArgs $;
public Builder() {
$ = new BackupPolicyArgs();
}
public Builder(BackupPolicyArgs defaults) {
$ = new BackupPolicyArgs(Objects.requireNonNull(defaults));
}
/**
* @param backupFrequency The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
* @return builder
*
*/
public Builder backupFrequency(@Nullable Output backupFrequency) {
$.backupFrequency = backupFrequency;
return this;
}
/**
* @param backupFrequency The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
* @return builder
*
*/
public Builder backupFrequency(String backupFrequency) {
return backupFrequency(Output.of(backupFrequency));
}
/**
* @param backupRetentionPeriod Cluster backup retention days, Fixed for 7 days, not modified.
*
* @return builder
*
*/
public Builder backupRetentionPeriod(@Nullable Output backupRetentionPeriod) {
$.backupRetentionPeriod = backupRetentionPeriod;
return this;
}
/**
* @param backupRetentionPeriod Cluster backup retention days, Fixed for 7 days, not modified.
*
* @return builder
*
*/
public Builder backupRetentionPeriod(String backupRetentionPeriod) {
return backupRetentionPeriod(Output.of(backupRetentionPeriod));
}
/**
* @param backupRetentionPolicyOnClusterDeletion Specifies whether to retain backups when you delete a cluster. Valid values are `ALL`, `LATEST`, `NONE`. Default to `NONE`. Value options can refer to the latest docs [ModifyBackupPolicy](https://www.alibabacloud.com/help/en/polardb/latest/modifybackuppolicy)
*
* @return builder
*
*/
public Builder backupRetentionPolicyOnClusterDeletion(@Nullable Output backupRetentionPolicyOnClusterDeletion) {
$.backupRetentionPolicyOnClusterDeletion = backupRetentionPolicyOnClusterDeletion;
return this;
}
/**
* @param backupRetentionPolicyOnClusterDeletion Specifies whether to retain backups when you delete a cluster. Valid values are `ALL`, `LATEST`, `NONE`. Default to `NONE`. Value options can refer to the latest docs [ModifyBackupPolicy](https://www.alibabacloud.com/help/en/polardb/latest/modifybackuppolicy)
*
* @return builder
*
*/
public Builder backupRetentionPolicyOnClusterDeletion(String backupRetentionPolicyOnClusterDeletion) {
return backupRetentionPolicyOnClusterDeletion(Output.of(backupRetentionPolicyOnClusterDeletion));
}
/**
* @param dataLevel1BackupFrequency The Id of cluster that can run database.The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
* @return builder
*
*/
public Builder dataLevel1BackupFrequency(@Nullable Output dataLevel1BackupFrequency) {
$.dataLevel1BackupFrequency = dataLevel1BackupFrequency;
return this;
}
/**
* @param dataLevel1BackupFrequency The Id of cluster that can run database.The backup frequency. Valid values are `Normal`, `2/24H`, `3/24H`, `4/24H`.Default to `Normal`.
*
* @return builder
*
*/
public Builder dataLevel1BackupFrequency(String dataLevel1BackupFrequency) {
return dataLevel1BackupFrequency(Output.of(dataLevel1BackupFrequency));
}
/**
* @param dataLevel1BackupPeriods PolarDB Cluster of level-1 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
* @return builder
*
*/
public Builder dataLevel1BackupPeriods(@Nullable Output> dataLevel1BackupPeriods) {
$.dataLevel1BackupPeriods = dataLevel1BackupPeriods;
return this;
}
/**
* @param dataLevel1BackupPeriods PolarDB Cluster of level-1 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
* @return builder
*
*/
public Builder dataLevel1BackupPeriods(List dataLevel1BackupPeriods) {
return dataLevel1BackupPeriods(Output.of(dataLevel1BackupPeriods));
}
/**
* @param dataLevel1BackupPeriods PolarDB Cluster of level-1 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
* @return builder
*
*/
public Builder dataLevel1BackupPeriods(String... dataLevel1BackupPeriods) {
return dataLevel1BackupPeriods(List.of(dataLevel1BackupPeriods));
}
/**
* @param dataLevel1BackupRetentionPeriod The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
*
* @return builder
*
*/
public Builder dataLevel1BackupRetentionPeriod(@Nullable Output dataLevel1BackupRetentionPeriod) {
$.dataLevel1BackupRetentionPeriod = dataLevel1BackupRetentionPeriod;
return this;
}
/**
* @param dataLevel1BackupRetentionPeriod The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
*
* @return builder
*
*/
public Builder dataLevel1BackupRetentionPeriod(Integer dataLevel1BackupRetentionPeriod) {
return dataLevel1BackupRetentionPeriod(Output.of(dataLevel1BackupRetentionPeriod));
}
/**
* @param dataLevel1BackupTime The time period during which automatic backup is performed. The format is HH: MMZ HH: MMZ (UTC time), and the entered value must be an hour apart, such as 14:00z-15:00z.
*
* @return builder
*
*/
public Builder dataLevel1BackupTime(@Nullable Output dataLevel1BackupTime) {
$.dataLevel1BackupTime = dataLevel1BackupTime;
return this;
}
/**
* @param dataLevel1BackupTime The time period during which automatic backup is performed. The format is HH: MMZ HH: MMZ (UTC time), and the entered value must be an hour apart, such as 14:00z-15:00z.
*
* @return builder
*
*/
public Builder dataLevel1BackupTime(String dataLevel1BackupTime) {
return dataLevel1BackupTime(Output.of(dataLevel1BackupTime));
}
/**
* @param dataLevel2BackupAnotherRegionRegion PolarDB Cluster of level-2 backup is a cross regional backup area.
*
* @return builder
*
*/
public Builder dataLevel2BackupAnotherRegionRegion(@Nullable Output dataLevel2BackupAnotherRegionRegion) {
$.dataLevel2BackupAnotherRegionRegion = dataLevel2BackupAnotherRegionRegion;
return this;
}
/**
* @param dataLevel2BackupAnotherRegionRegion PolarDB Cluster of level-2 backup is a cross regional backup area.
*
* @return builder
*
*/
public Builder dataLevel2BackupAnotherRegionRegion(String dataLevel2BackupAnotherRegionRegion) {
return dataLevel2BackupAnotherRegionRegion(Output.of(dataLevel2BackupAnotherRegionRegion));
}
/**
* @param dataLevel2BackupAnotherRegionRetentionPeriod PolarDB Cluster of level-2 backup cross region backup retention period. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
* @return builder
*
*/
public Builder dataLevel2BackupAnotherRegionRetentionPeriod(@Nullable Output dataLevel2BackupAnotherRegionRetentionPeriod) {
$.dataLevel2BackupAnotherRegionRetentionPeriod = dataLevel2BackupAnotherRegionRetentionPeriod;
return this;
}
/**
* @param dataLevel2BackupAnotherRegionRetentionPeriod PolarDB Cluster of level-2 backup cross region backup retention period. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
* @return builder
*
*/
public Builder dataLevel2BackupAnotherRegionRetentionPeriod(Integer dataLevel2BackupAnotherRegionRetentionPeriod) {
return dataLevel2BackupAnotherRegionRetentionPeriod(Output.of(dataLevel2BackupAnotherRegionRetentionPeriod));
}
/**
* @param dataLevel2BackupPeriods PolarDB Cluster of level-2 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
* @return builder
*
*/
public Builder dataLevel2BackupPeriods(@Nullable Output> dataLevel2BackupPeriods) {
$.dataLevel2BackupPeriods = dataLevel2BackupPeriods;
return this;
}
/**
* @param dataLevel2BackupPeriods PolarDB Cluster of level-2 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
* @return builder
*
*/
public Builder dataLevel2BackupPeriods(List dataLevel2BackupPeriods) {
return dataLevel2BackupPeriods(Output.of(dataLevel2BackupPeriods));
}
/**
* @param dataLevel2BackupPeriods PolarDB Cluster of level-2 backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"].
* > **NOTE:** Note Select at least two values. Separate multiple values with commas (,).
*
* @return builder
*
*/
public Builder dataLevel2BackupPeriods(String... dataLevel2BackupPeriods) {
return dataLevel2BackupPeriods(List.of(dataLevel2BackupPeriods));
}
/**
* @param dataLevel2BackupRetentionPeriod The retention period of level-2 backups. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
* @return builder
*
*/
public Builder dataLevel2BackupRetentionPeriod(@Nullable Output dataLevel2BackupRetentionPeriod) {
$.dataLevel2BackupRetentionPeriod = dataLevel2BackupRetentionPeriod;
return this;
}
/**
* @param dataLevel2BackupRetentionPeriod The retention period of level-2 backups. Valid values are `0`, `30 to 7300`, `-1`. Default to `0`.
*
* @return builder
*
*/
public Builder dataLevel2BackupRetentionPeriod(Integer dataLevel2BackupRetentionPeriod) {
return dataLevel2BackupRetentionPeriod(Output.of(dataLevel2BackupRetentionPeriod));
}
/**
* @param dbClusterId The Id of cluster that can run database.
*
* @return builder
*
*/
public Builder dbClusterId(Output dbClusterId) {
$.dbClusterId = dbClusterId;
return this;
}
/**
* @param dbClusterId The Id of cluster that can run database.
*
* @return builder
*
*/
public Builder dbClusterId(String dbClusterId) {
return dbClusterId(Output.of(dbClusterId));
}
/**
* @param logBackupAnotherRegionRegion The region in which you want to store cross-region log backups. For information about regions that support the cross-region backup feature, see [Overview.](https://www.alibabacloud.com/help/en/polardb/latest/backup-and-restoration-overview)
*
* @return builder
*
*/
public Builder logBackupAnotherRegionRegion(@Nullable Output logBackupAnotherRegionRegion) {
$.logBackupAnotherRegionRegion = logBackupAnotherRegionRegion;
return this;
}
/**
* @param logBackupAnotherRegionRegion The region in which you want to store cross-region log backups. For information about regions that support the cross-region backup feature, see [Overview.](https://www.alibabacloud.com/help/en/polardb/latest/backup-and-restoration-overview)
*
* @return builder
*
*/
public Builder logBackupAnotherRegionRegion(String logBackupAnotherRegionRegion) {
return logBackupAnotherRegionRegion(Output.of(logBackupAnotherRegionRegion));
}
/**
* @param logBackupAnotherRegionRetentionPeriod The retention period of cross-region log backups. Default value: OFF. Valid values are `0`, `30 to 7300`, `-1`.
* > **NOTE:** Note When you create a cluster, the default value of this parameter is 0.
*
* @return builder
*
*/
public Builder logBackupAnotherRegionRetentionPeriod(@Nullable Output logBackupAnotherRegionRetentionPeriod) {
$.logBackupAnotherRegionRetentionPeriod = logBackupAnotherRegionRetentionPeriod;
return this;
}
/**
* @param logBackupAnotherRegionRetentionPeriod The retention period of cross-region log backups. Default value: OFF. Valid values are `0`, `30 to 7300`, `-1`.
* > **NOTE:** Note When you create a cluster, the default value of this parameter is 0.
*
* @return builder
*
*/
public Builder logBackupAnotherRegionRetentionPeriod(Integer logBackupAnotherRegionRetentionPeriod) {
return logBackupAnotherRegionRetentionPeriod(Output.of(logBackupAnotherRegionRetentionPeriod));
}
/**
* @param logBackupRetentionPeriod The retention period of the log backups. Valid values are `3 to 7300`, `-1`.
*
* @return builder
*
*/
public Builder logBackupRetentionPeriod(@Nullable Output logBackupRetentionPeriod) {
$.logBackupRetentionPeriod = logBackupRetentionPeriod;
return this;
}
/**
* @param logBackupRetentionPeriod The retention period of the log backups. Valid values are `3 to 7300`, `-1`.
*
* @return builder
*
*/
public Builder logBackupRetentionPeriod(Integer logBackupRetentionPeriod) {
return logBackupRetentionPeriod(Output.of(logBackupRetentionPeriod));
}
/**
* @param preferredBackupPeriods PolarDB Cluster backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. Default to ["Tuesday", "Thursday", "Saturday"].
*
* @return builder
*
*/
public Builder preferredBackupPeriods(@Nullable Output> preferredBackupPeriods) {
$.preferredBackupPeriods = preferredBackupPeriods;
return this;
}
/**
* @param preferredBackupPeriods PolarDB Cluster backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. Default to ["Tuesday", "Thursday", "Saturday"].
*
* @return builder
*
*/
public Builder preferredBackupPeriods(List preferredBackupPeriods) {
return preferredBackupPeriods(Output.of(preferredBackupPeriods));
}
/**
* @param preferredBackupPeriods PolarDB Cluster backup period. Valid values: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]. Default to ["Tuesday", "Thursday", "Saturday"].
*
* @return builder
*
*/
public Builder preferredBackupPeriods(String... preferredBackupPeriods) {
return preferredBackupPeriods(List.of(preferredBackupPeriods));
}
/**
* @param preferredBackupTime PolarDB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to "02:00Z-03:00Z". China time is 8 hours behind it.
*
* @return builder
*
*/
public Builder preferredBackupTime(@Nullable Output preferredBackupTime) {
$.preferredBackupTime = preferredBackupTime;
return this;
}
/**
* @param preferredBackupTime PolarDB Cluster backup time, in the format of HH:mmZ- HH:mmZ. Time setting interval is one hour. Default to "02:00Z-03:00Z". China time is 8 hours behind it.
*
* @return builder
*
*/
public Builder preferredBackupTime(String preferredBackupTime) {
return preferredBackupTime(Output.of(preferredBackupTime));
}
public BackupPolicyArgs build() {
if ($.dbClusterId == null) {
throw new MissingRequiredPropertyException("BackupPolicyArgs", "dbClusterId");
}
return $;
}
}
}