Class PubsubTopicSchemaSettings.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.pubsub_topic.PubsubTopicSchemaSettings.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PubsubTopicSchemaSettings>
- Enclosing interface:
- PubsubTopicSchemaSettings
@Stability(Stable) public static final class PubsubTopicSchemaSettings.Builder extends Object implements software.amazon.jsii.Builder<PubsubTopicSchemaSettings>
A builder forPubsubTopicSchemaSettings
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubTopicSchemaSettingsbuild()Builds the configured instance.PubsubTopicSchemaSettings.Builderencoding(String encoding)Sets the value ofPubsubTopicSchemaSettings.getEncoding()PubsubTopicSchemaSettings.Builderschema(String schema)Sets the value ofPubsubTopicSchemaSettings.getSchema()
-
-
-
Method Detail
-
schema
@Stability(Stable) public PubsubTopicSchemaSettings.Builder schema(String schema)
Sets the value ofPubsubTopicSchemaSettings.getSchema()- Parameters:
schema- The name of the schema that messages published should be validated against. This parameter is required. Format is projects/{project}/schemas/{schema}. The value of this field will be *deleted-schema* if the schema has been deleted. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_topic#schema PubsubTopic#schema}- Returns:
this
-
encoding
@Stability(Stable) public PubsubTopicSchemaSettings.Builder encoding(String encoding)
Sets the value ofPubsubTopicSchemaSettings.getEncoding()- Parameters:
encoding- The encoding of messages validated against schema. Default value: "ENCODING_UNSPECIFIED" Possible values: ["ENCODING_UNSPECIFIED", "JSON", "BINARY"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_topic#encoding PubsubTopic#encoding}- Returns:
this
-
build
@Stability(Stable) public PubsubTopicSchemaSettings build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PubsubTopicSchemaSettings>- Returns:
- a new instance of
PubsubTopicSchemaSettings - Throws:
NullPointerException- if any required attribute was not provided
-
-