Class StorageBucketLifecycleRuleAction.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketLifecycleRuleAction.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketLifecycleRuleAction>
- Enclosing interface:
- StorageBucketLifecycleRuleAction
@Stability(Stable) public static final class StorageBucketLifecycleRuleAction.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketLifecycleRuleAction>
A builder forStorageBucketLifecycleRuleAction
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketLifecycleRuleActionbuild()Builds the configured instance.StorageBucketLifecycleRuleAction.BuilderstorageClass(String storageClass)Sets the value ofStorageBucketLifecycleRuleAction.getStorageClass()StorageBucketLifecycleRuleAction.Buildertype(String type)Sets the value ofStorageBucketLifecycleRuleAction.getType()
-
-
-
Method Detail
-
type
@Stability(Stable) public StorageBucketLifecycleRuleAction.Builder type(String type)
Sets the value ofStorageBucketLifecycleRuleAction.getType()- Parameters:
type- The type of the action of this Lifecycle Rule. Supported values include: Delete, SetStorageClass and AbortIncompleteMultipartUpload. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#type StorageBucket#type}- Returns:
this
-
storageClass
@Stability(Stable) public StorageBucketLifecycleRuleAction.Builder storageClass(String storageClass)
Sets the value ofStorageBucketLifecycleRuleAction.getStorageClass()- Parameters:
storageClass- The target Storage Class of objects affected by this Lifecycle Rule. Supported values include: MULTI_REGIONAL, REGIONAL, NEARLINE, COLDLINE, ARCHIVE. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#storage_class StorageBucket#storage_class}- Returns:
this
-
build
@Stability(Stable) public StorageBucketLifecycleRuleAction build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketLifecycleRuleAction>- Returns:
- a new instance of
StorageBucketLifecycleRuleAction - Throws:
NullPointerException- if any required attribute was not provided
-
-