Class PubsubLiteTopicRetentionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.pubsub_lite_topic.PubsubLiteTopicRetentionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PubsubLiteTopicRetentionConfig>
- Enclosing interface:
- PubsubLiteTopicRetentionConfig
@Stability(Stable) public static final class PubsubLiteTopicRetentionConfig.Builder extends Object implements software.amazon.jsii.Builder<PubsubLiteTopicRetentionConfig>
A builder forPubsubLiteTopicRetentionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubLiteTopicRetentionConfigbuild()Builds the configured instance.PubsubLiteTopicRetentionConfig.Builderperiod(String period)Sets the value ofPubsubLiteTopicRetentionConfig.getPeriod()PubsubLiteTopicRetentionConfig.BuilderperPartitionBytes(String perPartitionBytes)Sets the value ofPubsubLiteTopicRetentionConfig.getPerPartitionBytes()
-
-
-
Method Detail
-
perPartitionBytes
@Stability(Stable) public PubsubLiteTopicRetentionConfig.Builder perPartitionBytes(String perPartitionBytes)
Sets the value ofPubsubLiteTopicRetentionConfig.getPerPartitionBytes()- Parameters:
perPartitionBytes- The provisioned storage, in bytes, per partition. This parameter is required. If the number of bytes stored in any of the topic's partitions grows beyond this value, older messages will be dropped to make room for newer ones, regardless of the value of period. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#per_partition_bytes PubsubLiteTopic#per_partition_bytes}- Returns:
this
-
period
@Stability(Stable) public PubsubLiteTopicRetentionConfig.Builder period(String period)
Sets the value ofPubsubLiteTopicRetentionConfig.getPeriod()- Parameters:
period- How long a published message is retained. If unset, messages will be retained as long as the bytes retained for each partition is below perPartitionBytes. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#period PubsubLiteTopic#period}- Returns:
this
-
build
@Stability(Stable) public PubsubLiteTopicRetentionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PubsubLiteTopicRetentionConfig>- Returns:
- a new instance of
PubsubLiteTopicRetentionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-