Class PubsubLiteTopicPartitionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.pubsub_lite_topic.PubsubLiteTopicPartitionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PubsubLiteTopicPartitionConfig>
- Enclosing interface:
- PubsubLiteTopicPartitionConfig
@Stability(Stable) public static final class PubsubLiteTopicPartitionConfig.Builder extends Object implements software.amazon.jsii.Builder<PubsubLiteTopicPartitionConfig>
A builder forPubsubLiteTopicPartitionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubLiteTopicPartitionConfigbuild()Builds the configured instance.PubsubLiteTopicPartitionConfig.Buildercapacity(PubsubLiteTopicPartitionConfigCapacity capacity)Sets the value ofPubsubLiteTopicPartitionConfig.getCapacity()PubsubLiteTopicPartitionConfig.Buildercount(Number count)Sets the value ofPubsubLiteTopicPartitionConfig.getCount()
-
-
-
Method Detail
-
count
@Stability(Stable) public PubsubLiteTopicPartitionConfig.Builder count(Number count)
Sets the value ofPubsubLiteTopicPartitionConfig.getCount()- Parameters:
count- The number of partitions in the topic. Must be at least 1. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#count PubsubLiteTopic#count}- Returns:
this
-
capacity
@Stability(Stable) public PubsubLiteTopicPartitionConfig.Builder capacity(PubsubLiteTopicPartitionConfigCapacity capacity)
Sets the value ofPubsubLiteTopicPartitionConfig.getCapacity()- Parameters:
capacity- capacity block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#capacity PubsubLiteTopic#capacity}- Returns:
this
-
build
@Stability(Stable) public PubsubLiteTopicPartitionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PubsubLiteTopicPartitionConfig>- Returns:
- a new instance of
PubsubLiteTopicPartitionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-