Class StorageBucketSoftDeletePolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketSoftDeletePolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketSoftDeletePolicy>
- Enclosing interface:
- StorageBucketSoftDeletePolicy
@Stability(Stable) public static final class StorageBucketSoftDeletePolicy.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketSoftDeletePolicy>
A builder forStorageBucketSoftDeletePolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketSoftDeletePolicybuild()Builds the configured instance.StorageBucketSoftDeletePolicy.BuilderretentionDurationSeconds(Number retentionDurationSeconds)Sets the value ofStorageBucketSoftDeletePolicy.getRetentionDurationSeconds()
-
-
-
Method Detail
-
retentionDurationSeconds
@Stability(Stable) public StorageBucketSoftDeletePolicy.Builder retentionDurationSeconds(Number retentionDurationSeconds)
Sets the value ofStorageBucketSoftDeletePolicy.getRetentionDurationSeconds()- Parameters:
retentionDurationSeconds- The duration in seconds that soft-deleted objects in the bucket will be retained and cannot be permanently deleted. Default value is 604800. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#retention_duration_seconds StorageBucket#retention_duration_seconds}- Returns:
this
-
build
@Stability(Stable) public StorageBucketSoftDeletePolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketSoftDeletePolicy>- Returns:
- a new instance of
StorageBucketSoftDeletePolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-