Class PubsubLiteTopicConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.pubsub_lite_topic.PubsubLiteTopicConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PubsubLiteTopicConfig>
- Enclosing interface:
- PubsubLiteTopicConfig
@Stability(Stable) public static final class PubsubLiteTopicConfig.Builder extends Object implements software.amazon.jsii.Builder<PubsubLiteTopicConfig>
A builder forPubsubLiteTopicConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubLiteTopicConfigbuild()Builds the configured instance.PubsubLiteTopicConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()PubsubLiteTopicConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()PubsubLiteTopicConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()PubsubLiteTopicConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()PubsubLiteTopicConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()PubsubLiteTopicConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()PubsubLiteTopicConfig.Builderid(String id)Sets the value ofPubsubLiteTopicConfig.getId()PubsubLiteTopicConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()PubsubLiteTopicConfig.Buildername(String name)Sets the value ofPubsubLiteTopicConfig.getName()PubsubLiteTopicConfig.BuilderpartitionConfig(PubsubLiteTopicPartitionConfig partitionConfig)Sets the value ofPubsubLiteTopicConfig.getPartitionConfig()PubsubLiteTopicConfig.Builderproject(String project)Sets the value ofPubsubLiteTopicConfig.getProject()PubsubLiteTopicConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()PubsubLiteTopicConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()PubsubLiteTopicConfig.Builderregion(String region)Sets the value ofPubsubLiteTopicConfig.getRegion()PubsubLiteTopicConfig.BuilderreservationConfig(PubsubLiteTopicReservationConfig reservationConfig)Sets the value ofPubsubLiteTopicConfig.getReservationConfig()PubsubLiteTopicConfig.BuilderretentionConfig(PubsubLiteTopicRetentionConfig retentionConfig)Sets the value ofPubsubLiteTopicConfig.getRetentionConfig()PubsubLiteTopicConfig.Buildertimeouts(PubsubLiteTopicTimeouts timeouts)Sets the value ofPubsubLiteTopicConfig.getTimeouts()PubsubLiteTopicConfig.Builderzone(String zone)Sets the value ofPubsubLiteTopicConfig.getZone()
-
-
-
Method Detail
-
name
@Stability(Stable) public PubsubLiteTopicConfig.Builder name(String name)
Sets the value ofPubsubLiteTopicConfig.getName()- Parameters:
name- Name of the topic. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#name PubsubLiteTopic#name}- Returns:
this
-
id
@Stability(Stable) public PubsubLiteTopicConfig.Builder id(String id)
Sets the value ofPubsubLiteTopicConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#id PubsubLiteTopic#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
partitionConfig
@Stability(Stable) public PubsubLiteTopicConfig.Builder partitionConfig(PubsubLiteTopicPartitionConfig partitionConfig)
Sets the value ofPubsubLiteTopicConfig.getPartitionConfig()- Parameters:
partitionConfig- partition_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#partition_config PubsubLiteTopic#partition_config}- Returns:
this
-
project
@Stability(Stable) public PubsubLiteTopicConfig.Builder project(String project)
Sets the value ofPubsubLiteTopicConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#project PubsubLiteTopic#project}.- Returns:
this
-
region
@Stability(Stable) public PubsubLiteTopicConfig.Builder region(String region)
Sets the value ofPubsubLiteTopicConfig.getRegion()- Parameters:
region- The region of the pubsub lite topic. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#region PubsubLiteTopic#region}- Returns:
this
-
reservationConfig
@Stability(Stable) public PubsubLiteTopicConfig.Builder reservationConfig(PubsubLiteTopicReservationConfig reservationConfig)
Sets the value ofPubsubLiteTopicConfig.getReservationConfig()- Parameters:
reservationConfig- reservation_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#reservation_config PubsubLiteTopic#reservation_config}- Returns:
this
-
retentionConfig
@Stability(Stable) public PubsubLiteTopicConfig.Builder retentionConfig(PubsubLiteTopicRetentionConfig retentionConfig)
Sets the value ofPubsubLiteTopicConfig.getRetentionConfig()- Parameters:
retentionConfig- retention_config block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#retention_config PubsubLiteTopic#retention_config}- Returns:
this
-
timeouts
@Stability(Stable) public PubsubLiteTopicConfig.Builder timeouts(PubsubLiteTopicTimeouts timeouts)
Sets the value ofPubsubLiteTopicConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#timeouts PubsubLiteTopic#timeouts}- Returns:
this
-
zone
@Stability(Stable) public PubsubLiteTopicConfig.Builder zone(String zone)
Sets the value ofPubsubLiteTopicConfig.getZone()- Parameters:
zone- The zone of the pubsub lite topic. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_lite_topic#zone PubsubLiteTopic#zone}- Returns:
this
-
connection
@Stability(Experimental) public PubsubLiteTopicConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public PubsubLiteTopicConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public PubsubLiteTopicConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public PubsubLiteTopicConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public PubsubLiteTopicConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public PubsubLiteTopicConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public PubsubLiteTopicConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public PubsubLiteTopicConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public PubsubLiteTopicConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public PubsubLiteTopicConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PubsubLiteTopicConfig>- Returns:
- a new instance of
PubsubLiteTopicConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-