Class StorageBucketLifecycleRule.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketLifecycleRule.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketLifecycleRule>
- Enclosing interface:
- StorageBucketLifecycleRule
@Stability(Stable) public static final class StorageBucketLifecycleRule.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketLifecycleRule>
A builder forStorageBucketLifecycleRule
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketLifecycleRule.Builderaction(StorageBucketLifecycleRuleAction action)Sets the value ofStorageBucketLifecycleRule.getAction()StorageBucketLifecycleRulebuild()Builds the configured instance.StorageBucketLifecycleRule.Buildercondition(StorageBucketLifecycleRuleCondition condition)Sets the value ofStorageBucketLifecycleRule.getCondition()
-
-
-
Method Detail
-
action
@Stability(Stable) public StorageBucketLifecycleRule.Builder action(StorageBucketLifecycleRuleAction action)
Sets the value ofStorageBucketLifecycleRule.getAction()- Parameters:
action- action block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#action StorageBucket#action}- Returns:
this
-
condition
@Stability(Stable) public StorageBucketLifecycleRule.Builder condition(StorageBucketLifecycleRuleCondition condition)
Sets the value ofStorageBucketLifecycleRule.getCondition()- Parameters:
condition- condition block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#condition StorageBucket#condition}- Returns:
this
-
build
@Stability(Stable) public StorageBucketLifecycleRule build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketLifecycleRule>- Returns:
- a new instance of
StorageBucketLifecycleRule - Throws:
NullPointerException- if any required attribute was not provided
-
-