Class StorageBucketRetentionPolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketRetentionPolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketRetentionPolicy>
- Enclosing interface:
- StorageBucketRetentionPolicy
@Stability(Stable) public static final class StorageBucketRetentionPolicy.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketRetentionPolicy>
A builder forStorageBucketRetentionPolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketRetentionPolicybuild()Builds the configured instance.StorageBucketRetentionPolicy.BuilderisLocked(com.hashicorp.cdktf.IResolvable isLocked)Sets the value ofStorageBucketRetentionPolicy.getIsLocked()StorageBucketRetentionPolicy.BuilderisLocked(Boolean isLocked)Sets the value ofStorageBucketRetentionPolicy.getIsLocked()StorageBucketRetentionPolicy.BuilderretentionPeriod(Number retentionPeriod)Sets the value ofStorageBucketRetentionPolicy.getRetentionPeriod()
-
-
-
Method Detail
-
retentionPeriod
@Stability(Stable) public StorageBucketRetentionPolicy.Builder retentionPeriod(Number retentionPeriod)
Sets the value ofStorageBucketRetentionPolicy.getRetentionPeriod()- Parameters:
retentionPeriod- The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. This parameter is required. The value must be less than 3,155,760,000 seconds. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#retention_period StorageBucket#retention_period}- Returns:
this
-
isLocked
@Stability(Stable) public StorageBucketRetentionPolicy.Builder isLocked(Boolean isLocked)
Sets the value ofStorageBucketRetentionPolicy.getIsLocked()- Parameters:
isLocked- If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#is_locked StorageBucket#is_locked}- Returns:
this
-
isLocked
@Stability(Stable) public StorageBucketRetentionPolicy.Builder isLocked(com.hashicorp.cdktf.IResolvable isLocked)
Sets the value ofStorageBucketRetentionPolicy.getIsLocked()- Parameters:
isLocked- If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#is_locked StorageBucket#is_locked}- Returns:
this
-
build
@Stability(Stable) public StorageBucketRetentionPolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketRetentionPolicy>- Returns:
- a new instance of
StorageBucketRetentionPolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-