Class StorageBucketLogging.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_bucket.StorageBucketLogging.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageBucketLogging>
- Enclosing interface:
- StorageBucketLogging
@Stability(Stable) public static final class StorageBucketLogging.Builder extends Object implements software.amazon.jsii.Builder<StorageBucketLogging>
A builder forStorageBucketLogging
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageBucketLoggingbuild()Builds the configured instance.StorageBucketLogging.BuilderlogBucket(String logBucket)Sets the value ofStorageBucketLogging.getLogBucket()StorageBucketLogging.BuilderlogObjectPrefix(String logObjectPrefix)Sets the value ofStorageBucketLogging.getLogObjectPrefix()
-
-
-
Method Detail
-
logBucket
@Stability(Stable) public StorageBucketLogging.Builder logBucket(String logBucket)
Sets the value ofStorageBucketLogging.getLogBucket()- Parameters:
logBucket- The bucket that will receive log objects. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#log_bucket StorageBucket#log_bucket}- Returns:
this
-
logObjectPrefix
@Stability(Stable) public StorageBucketLogging.Builder logObjectPrefix(String logObjectPrefix)
Sets the value ofStorageBucketLogging.getLogObjectPrefix()- Parameters:
logObjectPrefix- The object prefix for log objects. If it's not provided, by default Google Cloud Storage sets this to this bucket's name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_bucket#log_object_prefix StorageBucket#log_object_prefix}- Returns:
this
-
build
@Stability(Stable) public StorageBucketLogging build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageBucketLogging>- Returns:
- a new instance of
StorageBucketLogging - Throws:
NullPointerException- if any required attribute was not provided
-
-