Class StorageTransferJobNotificationConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_transfer_job.StorageTransferJobNotificationConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageTransferJobNotificationConfig>
- Enclosing interface:
- StorageTransferJobNotificationConfig
@Stability(Stable) public static final class StorageTransferJobNotificationConfig.Builder extends Object implements software.amazon.jsii.Builder<StorageTransferJobNotificationConfig>
A builder forStorageTransferJobNotificationConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageTransferJobNotificationConfigbuild()Builds the configured instance.StorageTransferJobNotificationConfig.BuildereventTypes(List<String> eventTypes)Sets the value ofStorageTransferJobNotificationConfig.getEventTypes()StorageTransferJobNotificationConfig.BuilderpayloadFormat(String payloadFormat)Sets the value ofStorageTransferJobNotificationConfig.getPayloadFormat()StorageTransferJobNotificationConfig.BuilderpubsubTopic(String pubsubTopic)Sets the value ofStorageTransferJobNotificationConfig.getPubsubTopic()
-
-
-
Method Detail
-
payloadFormat
@Stability(Stable) public StorageTransferJobNotificationConfig.Builder payloadFormat(String payloadFormat)
Sets the value ofStorageTransferJobNotificationConfig.getPayloadFormat()- Parameters:
payloadFormat- The desired format of the notification message payloads. One of "NONE" or "JSON". This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_transfer_job#payload_format StorageTransferJob#payload_format}- Returns:
this
-
pubsubTopic
@Stability(Stable) public StorageTransferJobNotificationConfig.Builder pubsubTopic(String pubsubTopic)
Sets the value ofStorageTransferJobNotificationConfig.getPubsubTopic()- Parameters:
pubsubTopic- The Topic.name of the Pub/Sub topic to which to publish notifications. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_transfer_job#pubsub_topic StorageTransferJob#pubsub_topic}- Returns:
this
-
eventTypes
@Stability(Stable) public StorageTransferJobNotificationConfig.Builder eventTypes(List<String> eventTypes)
Sets the value ofStorageTransferJobNotificationConfig.getEventTypes()- Parameters:
eventTypes- Event types for which a notification is desired. If empty, send notifications for all event types. The valid types are "TRANSFER_OPERATION_SUCCESS", "TRANSFER_OPERATION_FAILED", "TRANSFER_OPERATION_ABORTED". Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/storage_transfer_job#event_types StorageTransferJob#event_types}- Returns:
this
-
build
@Stability(Stable) public StorageTransferJobNotificationConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageTransferJobNotificationConfig>- Returns:
- a new instance of
StorageTransferJobNotificationConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-