Class AlloydbClusterAutomatedBackupPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.alloydb_cluster.AlloydbClusterAutomatedBackupPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlloydbClusterAutomatedBackupPolicy>
- Enclosing interface:
- AlloydbClusterAutomatedBackupPolicy
@Stability(Stable) public static final class AlloydbClusterAutomatedBackupPolicy.Builder extends Object implements software.amazon.jsii.Builder<AlloydbClusterAutomatedBackupPolicy>
A builder forAlloydbClusterAutomatedBackupPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
backupWindow
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder backupWindow(String backupWindow)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getBackupWindow()- Parameters:
backupWindow- The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it will default to 1 hour. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#backup_window AlloydbCluster#backup_window}- Returns:
this
-
enabled
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder enabled(Boolean enabled)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getEnabled()- Parameters:
enabled- Whether automated backups are enabled. 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 AlloydbClusterAutomatedBackupPolicy.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getEnabled()- Parameters:
enabled- Whether automated backups are enabled. 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 AlloydbClusterAutomatedBackupPolicy.Builder encryptionConfig(AlloydbClusterAutomatedBackupPolicyEncryptionConfig encryptionConfig)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.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
-
labels
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder labels(Map<String,String> labels)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getLabels()- Parameters:
labels- Labels to apply to backups created using this configuration. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#labels AlloydbCluster#labels}- Returns:
this
-
location
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder location(String location)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getLocation()- Parameters:
location- The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#location AlloydbCluster#location}- Returns:
this
-
quantityBasedRetention
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder quantityBasedRetention(AlloydbClusterAutomatedBackupPolicyQuantityBasedRetention quantityBasedRetention)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getQuantityBasedRetention()- Parameters:
quantityBasedRetention- quantity_based_retention block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#quantity_based_retention AlloydbCluster#quantity_based_retention}- Returns:
this
-
timeBasedRetention
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder timeBasedRetention(AlloydbClusterAutomatedBackupPolicyTimeBasedRetention timeBasedRetention)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getTimeBasedRetention()- Parameters:
timeBasedRetention- time_based_retention block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#time_based_retention AlloydbCluster#time_based_retention}- Returns:
this
-
weeklySchedule
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy.Builder weeklySchedule(AlloydbClusterAutomatedBackupPolicyWeeklySchedule weeklySchedule)
Sets the value ofAlloydbClusterAutomatedBackupPolicy.getWeeklySchedule()- Parameters:
weeklySchedule- weekly_schedule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_cluster#weekly_schedule AlloydbCluster#weekly_schedule}- Returns:
this
-
build
@Stability(Stable) public AlloydbClusterAutomatedBackupPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlloydbClusterAutomatedBackupPolicy>- Returns:
- a new instance of
AlloydbClusterAutomatedBackupPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-