Class CloudSchedulerJobPubsubTarget.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • topicName

        @Stability(Stable)
        public CloudSchedulerJobPubsubTarget.Builder topicName​(String topicName)
        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)
        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)
        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