Class AlloydbClusterContinuousBackupConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.alloydb_cluster.AlloydbClusterContinuousBackupConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlloydbClusterContinuousBackupConfig>
- Enclosing interface:
- AlloydbClusterContinuousBackupConfig
@Stability(Stable) public static final class AlloydbClusterContinuousBackupConfig.Builder extends Object implements software.amazon.jsii.Builder<AlloydbClusterContinuousBackupConfig>
A builder forAlloydbClusterContinuousBackupConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlloydbClusterContinuousBackupConfigbuild()Builds the configured instance.AlloydbClusterContinuousBackupConfig.Builderenabled(com.hashicorp.cdktf.IResolvable enabled)Sets the value ofAlloydbClusterContinuousBackupConfig.getEnabled()AlloydbClusterContinuousBackupConfig.Builderenabled(Boolean enabled)Sets the value ofAlloydbClusterContinuousBackupConfig.getEnabled()AlloydbClusterContinuousBackupConfig.BuilderencryptionConfig(AlloydbClusterContinuousBackupConfigEncryptionConfig encryptionConfig)Sets the value ofAlloydbClusterContinuousBackupConfig.getEncryptionConfig()AlloydbClusterContinuousBackupConfig.BuilderrecoveryWindowDays(Number recoveryWindowDays)Sets the value ofAlloydbClusterContinuousBackupConfig.getRecoveryWindowDays()
-
-
-
Method Detail
-
enabled
@Stability(Stable) public AlloydbClusterContinuousBackupConfig.Builder enabled(Boolean enabled)
Sets the value ofAlloydbClusterContinuousBackupConfig.getEnabled()- Parameters:
enabled- Whether continuous backup recovery is enabled. If not set, defaults to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#enabled AlloydbCluster#enabled}- Returns:
this
-
enabled
@Stability(Stable) public AlloydbClusterContinuousBackupConfig.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofAlloydbClusterContinuousBackupConfig.getEnabled()- Parameters:
enabled- Whether continuous backup recovery is enabled. If not set, defaults to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#enabled AlloydbCluster#enabled}- Returns:
this
-
encryptionConfig
@Stability(Stable) public AlloydbClusterContinuousBackupConfig.Builder encryptionConfig(AlloydbClusterContinuousBackupConfigEncryptionConfig encryptionConfig)
Sets the value ofAlloydbClusterContinuousBackupConfig.getEncryptionConfig()- Parameters:
encryptionConfig- encryption_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#encryption_config AlloydbCluster#encryption_config}- Returns:
this
-
recoveryWindowDays
@Stability(Stable) public AlloydbClusterContinuousBackupConfig.Builder recoveryWindowDays(Number recoveryWindowDays)
Sets the value ofAlloydbClusterContinuousBackupConfig.getRecoveryWindowDays()- Parameters:
recoveryWindowDays- The numbers of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#recovery_window_days AlloydbCluster#recovery_window_days}- Returns:
this
-
build
@Stability(Stable) public AlloydbClusterContinuousBackupConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlloydbClusterContinuousBackupConfig>- Returns:
- a new instance of
AlloydbClusterContinuousBackupConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-