Class StorageNotificationConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.storage_notification.StorageNotificationConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<StorageNotificationConfig>
- Enclosing interface:
- StorageNotificationConfig
@Stability(Stable) public static final class StorageNotificationConfig.Builder extends Object implements software.amazon.jsii.Builder<StorageNotificationConfig>
A builder forStorageNotificationConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageNotificationConfig.Builderbucket(String bucket)Sets the value ofStorageNotificationConfig.getBucket()StorageNotificationConfigbuild()Builds the configured instance.StorageNotificationConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()StorageNotificationConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()StorageNotificationConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()StorageNotificationConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()StorageNotificationConfig.BuildercustomAttributes(Map<String,String> customAttributes)Sets the value ofStorageNotificationConfig.getCustomAttributes()StorageNotificationConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()StorageNotificationConfig.BuildereventTypes(List<String> eventTypes)Sets the value ofStorageNotificationConfig.getEventTypes()StorageNotificationConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()StorageNotificationConfig.Builderid(String id)Sets the value ofStorageNotificationConfig.getId()StorageNotificationConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()StorageNotificationConfig.BuilderobjectNamePrefix(String objectNamePrefix)Sets the value ofStorageNotificationConfig.getObjectNamePrefix()StorageNotificationConfig.BuilderpayloadFormat(String payloadFormat)Sets the value ofStorageNotificationConfig.getPayloadFormat()StorageNotificationConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()StorageNotificationConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()StorageNotificationConfig.Buildertopic(String topic)Sets the value ofStorageNotificationConfig.getTopic()
-
-
-
Method Detail
-
bucket
@Stability(Stable) public StorageNotificationConfig.Builder bucket(String bucket)
Sets the value ofStorageNotificationConfig.getBucket()- 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)
Sets the value ofStorageNotificationConfig.getPayloadFormat()- 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)
Sets the value ofStorageNotificationConfig.getTopic()- 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)
Sets the value ofStorageNotificationConfig.getCustomAttributes()- 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)
Sets the value ofStorageNotificationConfig.getEventTypes()- 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)
Sets the value ofStorageNotificationConfig.getId()- 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)
Sets the value ofStorageNotificationConfig.getObjectNamePrefix()- 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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public StorageNotificationConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.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 ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public StorageNotificationConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public StorageNotificationConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<StorageNotificationConfig>- Returns:
- a new instance of
StorageNotificationConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-