Class SourcerepoRepositoryPubsubConfigs.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • messageFormat

        @Stability(Stable)
        public SourcerepoRepositoryPubsubConfigs.Builder messageFormat​(String messageFormat)
        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
      • serviceAccountEmail

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