Class CloudSchedulerJobPubsubTarget.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_scheduler_job.CloudSchedulerJobPubsubTarget.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudSchedulerJobPubsubTarget>
- Enclosing interface:
- CloudSchedulerJobPubsubTarget
@Stability(Stable) public static final class CloudSchedulerJobPubsubTarget.Builder extends Object implements software.amazon.jsii.Builder<CloudSchedulerJobPubsubTarget>
A builder forCloudSchedulerJobPubsubTarget
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudSchedulerJobPubsubTarget.Builderattributes(Map<String,String> attributes)Sets the value ofCloudSchedulerJobPubsubTarget.getAttributes()CloudSchedulerJobPubsubTargetbuild()Builds the configured instance.CloudSchedulerJobPubsubTarget.Builderdata(String data)Sets the value ofCloudSchedulerJobPubsubTarget.getData()CloudSchedulerJobPubsubTarget.BuildertopicName(String topicName)Sets the value ofCloudSchedulerJobPubsubTarget.getTopicName()
-
-
-
Method Detail
-
topicName
@Stability(Stable) public CloudSchedulerJobPubsubTarget.Builder topicName(String topicName)
Sets the value ofCloudSchedulerJobPubsubTarget.getTopicName()- Parameters:
topicName- The full resource name for the Cloud Pub/Sub topic to which messages will be published when a job is delivered. This parameter is required. ~>**NOTE:** The topic name must be in the same format as required by PubSub's PublishRequest.name, e.g. 'projects/my-project/topics/my-topic'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#topic_name CloudSchedulerJob#topic_name}- Returns:
this
-
attributes
@Stability(Stable) public CloudSchedulerJobPubsubTarget.Builder attributes(Map<String,String> attributes)
Sets the value ofCloudSchedulerJobPubsubTarget.getAttributes()- Parameters:
attributes- Attributes for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#attributes CloudSchedulerJob#attributes}- Returns:
this
-
data
@Stability(Stable) public CloudSchedulerJobPubsubTarget.Builder data(String data)
Sets the value ofCloudSchedulerJobPubsubTarget.getData()- Parameters:
data- The message payload for PubsubMessage. Pubsub message must contain either non-empty data, or at least one attribute. A base64-encoded string. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_scheduler_job#data CloudSchedulerJob#data}- Returns:
this
-
build
@Stability(Stable) public CloudSchedulerJobPubsubTarget build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudSchedulerJobPubsubTarget>- Returns:
- a new instance of
CloudSchedulerJobPubsubTarget - Throws:
NullPointerException- if any required attribute was not provided
-
-