Class SourcerepoRepositoryPubsubConfigs.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.sourcerepo_repository.SourcerepoRepositoryPubsubConfigs.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<SourcerepoRepositoryPubsubConfigs>
- Enclosing interface:
- SourcerepoRepositoryPubsubConfigs
@Stability(Stable) public static final class SourcerepoRepositoryPubsubConfigs.Builder extends Object implements software.amazon.jsii.Builder<SourcerepoRepositoryPubsubConfigs>
A builder forSourcerepoRepositoryPubsubConfigs
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcerepoRepositoryPubsubConfigsbuild()Builds the configured instance.SourcerepoRepositoryPubsubConfigs.BuildermessageFormat(String messageFormat)Sets the value ofSourcerepoRepositoryPubsubConfigs.getMessageFormat()SourcerepoRepositoryPubsubConfigs.BuilderserviceAccountEmail(String serviceAccountEmail)Sets the value ofSourcerepoRepositoryPubsubConfigs.getServiceAccountEmail()SourcerepoRepositoryPubsubConfigs.Buildertopic(String topic)Sets the value ofSourcerepoRepositoryPubsubConfigs.getTopic()
-
-
-
Method Detail
-
messageFormat
@Stability(Stable) public SourcerepoRepositoryPubsubConfigs.Builder messageFormat(String messageFormat)
Sets the value ofSourcerepoRepositoryPubsubConfigs.getMessageFormat()- Parameters:
messageFormat- The format of the Cloud Pub/Sub messages. This parameter is required. * PROTOBUF: The message payload is a serialized protocol buffer of SourceRepoEvent. * JSON: The message payload is a JSON string of SourceRepoEvent. Possible values: ["PROTOBUF", "JSON"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sourcerepo_repository#message_format SourcerepoRepository#message_format}- Returns:
this
-
topic
@Stability(Stable) public SourcerepoRepositoryPubsubConfigs.Builder topic(String topic)
Sets the value ofSourcerepoRepositoryPubsubConfigs.getTopic()- Parameters:
topic- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sourcerepo_repository#topic SourcerepoRepository#topic}. This parameter is required.- Returns:
this
-
serviceAccountEmail
@Stability(Stable) public SourcerepoRepositoryPubsubConfigs.Builder serviceAccountEmail(String serviceAccountEmail)
Sets the value ofSourcerepoRepositoryPubsubConfigs.getServiceAccountEmail()- Parameters:
serviceAccountEmail- Email address of the service account used for publishing Cloud Pub/Sub messages. This service account needs to be in the same project as the PubsubConfig. When added, the caller needs to have iam.serviceAccounts.actAs permission on this service account. If unspecified, it defaults to the compute engine default service account. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/sourcerepo_repository#service_account_email SourcerepoRepository#service_account_email}- Returns:
this
-
build
@Stability(Stable) public SourcerepoRepositoryPubsubConfigs build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SourcerepoRepositoryPubsubConfigs>- Returns:
- a new instance of
SourcerepoRepositoryPubsubConfigs - Throws:
NullPointerException- if any required attribute was not provided
-
-