Class PubsubSchemaConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.pubsub_schema.PubsubSchemaConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PubsubSchemaConfig>
- Enclosing interface:
- PubsubSchemaConfig
@Stability(Stable) public static final class PubsubSchemaConfig.Builder extends Object implements software.amazon.jsii.Builder<PubsubSchemaConfig>
A builder forPubsubSchemaConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubSchemaConfigbuild()Builds the configured instance.PubsubSchemaConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()PubsubSchemaConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()PubsubSchemaConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()PubsubSchemaConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()PubsubSchemaConfig.Builderdefinition(String definition)Sets the value ofPubsubSchemaConfig.getDefinition()PubsubSchemaConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()PubsubSchemaConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()PubsubSchemaConfig.Builderid(String id)Sets the value ofPubsubSchemaConfig.getId()PubsubSchemaConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()PubsubSchemaConfig.Buildername(String name)Sets the value ofPubsubSchemaConfig.getName()PubsubSchemaConfig.Builderproject(String project)Sets the value ofPubsubSchemaConfig.getProject()PubsubSchemaConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()PubsubSchemaConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()PubsubSchemaConfig.Buildertimeouts(PubsubSchemaTimeouts timeouts)Sets the value ofPubsubSchemaConfig.getTimeouts()PubsubSchemaConfig.Buildertype(String type)Sets the value ofPubsubSchemaConfig.getType()
-
-
-
Method Detail
-
name
@Stability(Stable) public PubsubSchemaConfig.Builder name(String name)
Sets the value ofPubsubSchemaConfig.getName()- Parameters:
name- The ID to use for the schema, which will become the final component of the schema's resource name. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_schema#name PubsubSchema#name}- Returns:
this
-
definition
@Stability(Stable) public PubsubSchemaConfig.Builder definition(String definition)
Sets the value ofPubsubSchemaConfig.getDefinition()- Parameters:
definition- The definition of the schema. This should contain a string representing the full definition of the schema that is a valid schema definition of the type specified in type. Changes to the definition commit new [schema revisions](https://cloud.google.com/pubsub/docs/commit-schema-revision). A schema can only have up to 20 revisions, so updates that fail with an error indicating that the limit has been reached require manually [deleting old revisions](https://cloud.google.com/pubsub/docs/delete-schema-revision). Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_schema#definition PubsubSchema#definition}- Returns:
this
-
id
@Stability(Stable) public PubsubSchemaConfig.Builder id(String id)
Sets the value ofPubsubSchemaConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_schema#id PubsubSchema#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
-
project
@Stability(Stable) public PubsubSchemaConfig.Builder project(String project)
Sets the value ofPubsubSchemaConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_schema#project PubsubSchema#project}.- Returns:
this
-
timeouts
@Stability(Stable) public PubsubSchemaConfig.Builder timeouts(PubsubSchemaTimeouts timeouts)
Sets the value ofPubsubSchemaConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_schema#timeouts PubsubSchema#timeouts}- Returns:
this
-
type
@Stability(Stable) public PubsubSchemaConfig.Builder type(String type)
Sets the value ofPubsubSchemaConfig.getType()- Parameters:
type- The type of the schema definition Default value: "TYPE_UNSPECIFIED" Possible values: ["TYPE_UNSPECIFIED", "PROTOCOL_BUFFER", "AVRO"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_schema#type PubsubSchema#type}- Returns:
this
-
connection
@Stability(Experimental) public PubsubSchemaConfig.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 PubsubSchemaConfig.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 PubsubSchemaConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public PubsubSchemaConfig.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 PubsubSchemaConfig.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 PubsubSchemaConfig.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 PubsubSchemaConfig.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 PubsubSchemaConfig.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 PubsubSchemaConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public PubsubSchemaConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PubsubSchemaConfig>- Returns:
- a new instance of
PubsubSchemaConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-