Class StorageBucketObjectRetention.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket_object.StorageBucketObjectRetention.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketObjectRetention>
- Enclosing interface:
- StorageBucketObjectRetention
@Stability(Stable) public static final class StorageBucketObjectRetention.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketObjectRetention>
A builder forStorageBucketObjectRetention
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketObjectRetentionbuild()Builds the configured instance.StorageBucketObjectRetention.Buildermode(String mode)Sets the value ofStorageBucketObjectRetention.getMode()StorageBucketObjectRetention.BuilderretainUntilTime(String retainUntilTime)Sets the value ofStorageBucketObjectRetention.getRetainUntilTime()
-
-
-
Method Detail
-
mode
@Stability(Stable) public StorageBucketObjectRetention.Builder mode(String mode)
Sets the value ofStorageBucketObjectRetention.getMode()- Parameters:
mode- The object retention mode. Supported values include: "Unlocked", "Locked". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#mode StorageBucketObject#mode}- Returns:
this
-
retainUntilTime
@Stability(Stable) public StorageBucketObjectRetention.Builder retainUntilTime(String retainUntilTime)
Sets the value ofStorageBucketObjectRetention.getRetainUntilTime()- Parameters:
retainUntilTime- Time in RFC 3339 (e.g. 2030-01-01T02:03:04Z) until which object retention protects this object. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket_object#retain_until_time StorageBucketObject#retain_until_time}- Returns:
this
-
build
@Stability(Stable) public StorageBucketObjectRetention build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketObjectRetention>- Returns:
- a new instance of
StorageBucketObjectRetention - Throws:
NullPointerException- if any required attribute was not provided
-
-