Class StorageNotificationConfig.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bucket

        @Stability(Stable)
        public StorageNotificationConfig.Builder bucket​(String bucket)
        Parameters:
        bucket - The name of the bucket. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#bucket StorageNotification#bucket}
        Returns:
        this
      • payloadFormat

        @Stability(Stable)
        public StorageNotificationConfig.Builder payloadFormat​(String payloadFormat)
        Parameters:
        payloadFormat - The desired content of the Payload. One of "JSON_API_V1" or "NONE". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#payload_format StorageNotification#payload_format}
        Returns:
        this
      • topic

        @Stability(Stable)
        public StorageNotificationConfig.Builder topic​(String topic)
        Parameters:
        topic - The Cloud Pub/Sub topic to which this subscription publishes. This parameter is required. Expects either the topic name, assumed to belong to the default GCP provider project, or the project-level name, i.e. projects/my-gcp-project/topics/my-topic or my-topic. If the project is not set in the provider, you will need to use the project-level name. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#topic StorageNotification#topic}
        Returns:
        this
      • customAttributes

        @Stability(Stable)
        public StorageNotificationConfig.Builder customAttributes​(Map<String,​String> customAttributes)
        Parameters:
        customAttributes - A set of key/value attribute pairs to attach to each Cloud Pub/Sub message published for this notification subscription. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#custom_attributes StorageNotification#custom_attributes}
        Returns:
        this
      • eventTypes

        @Stability(Stable)
        public StorageNotificationConfig.Builder eventTypes​(List<String> eventTypes)
        Parameters:
        eventTypes - List of event type filters for this notification config. If not specified, Cloud Storage will send notifications for all event types. The valid types are: "OBJECT_FINALIZE", "OBJECT_METADATA_UPDATE", "OBJECT_DELETE", "OBJECT_ARCHIVE" Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#event_types StorageNotification#event_types}
        Returns:
        this
      • id

        @Stability(Stable)
        public StorageNotificationConfig.Builder id​(String id)
        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#id StorageNotification#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
        Returns:
        this
      • objectNamePrefix

        @Stability(Stable)
        public StorageNotificationConfig.Builder objectNamePrefix​(String objectNamePrefix)
        Parameters:
        objectNamePrefix - Specifies a prefix path filter for this notification config. Cloud Storage will only send notifications for objects in this bucket whose names begin with the specified prefix. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_notification#object_name_prefix StorageNotification#object_name_prefix}
        Returns:
        this
      • connection

        @Stability(Experimental)
        public StorageNotificationConfig.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public StorageNotificationConfig.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Sets the value of TerraformMetaArguments.getConnection()
        Parameters:
        connection - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public StorageNotificationConfig.Builder count​(Number count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • count

        @Stability(Experimental)
        public StorageNotificationConfig.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Sets the value of TerraformMetaArguments.getCount()
        Parameters:
        count - the value to be set.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public StorageNotificationConfig.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Sets the value of TerraformMetaArguments.getDependsOn()
        Parameters:
        dependsOn - the value to be set.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public StorageNotificationConfig.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Sets the value of TerraformMetaArguments.getForEach()
        Parameters:
        forEach - the value to be set.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public StorageNotificationConfig.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Sets the value of TerraformMetaArguments.getLifecycle()
        Parameters:
        lifecycle - the value to be set.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public StorageNotificationConfig.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Sets the value of TerraformMetaArguments.getProvider()
        Parameters:
        provider - the value to be set.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public StorageNotificationConfig.Builder provisioners​(List<? extends Object> provisioners)
        Sets the value of TerraformMetaArguments.getProvisioners()
        Parameters:
        provisioners - the value to be set.
        Returns:
        this