Class CloudbuildTriggerPubsubConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloudbuild_trigger.CloudbuildTriggerPubsubConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudbuildTriggerPubsubConfig>
- Enclosing interface:
- CloudbuildTriggerPubsubConfig
@Stability(Stable) public static final class CloudbuildTriggerPubsubConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudbuildTriggerPubsubConfig>
A builder forCloudbuildTriggerPubsubConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudbuildTriggerPubsubConfigbuild()Builds the configured instance.CloudbuildTriggerPubsubConfig.BuilderserviceAccountEmail(String serviceAccountEmail)Sets the value ofCloudbuildTriggerPubsubConfig.getServiceAccountEmail()CloudbuildTriggerPubsubConfig.Buildertopic(String topic)Sets the value ofCloudbuildTriggerPubsubConfig.getTopic()
-
-
-
Method Detail
-
topic
@Stability(Stable) public CloudbuildTriggerPubsubConfig.Builder topic(String topic)
Sets the value ofCloudbuildTriggerPubsubConfig.getTopic()- Parameters:
topic- The name of the topic from which this subscription is receiving messages. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#topic CloudbuildTrigger#topic}- Returns:
this
-
serviceAccountEmail
@Stability(Stable) public CloudbuildTriggerPubsubConfig.Builder serviceAccountEmail(String serviceAccountEmail)
Sets the value ofCloudbuildTriggerPubsubConfig.getServiceAccountEmail()- Parameters:
serviceAccountEmail- Service account that will make the push request. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloudbuild_trigger#service_account_email CloudbuildTrigger#service_account_email}- Returns:
this
-
build
@Stability(Stable) public CloudbuildTriggerPubsubConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudbuildTriggerPubsubConfig>- Returns:
- a new instance of
CloudbuildTriggerPubsubConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-