Class PubsubTopicMessageStoragePolicy.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.pubsub_topic.PubsubTopicMessageStoragePolicy.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<PubsubTopicMessageStoragePolicy>
- Enclosing interface:
- PubsubTopicMessageStoragePolicy
@Stability(Stable) public static final class PubsubTopicMessageStoragePolicy.Builder extends Object implements software.amazon.jsii.Builder<PubsubTopicMessageStoragePolicy>
A builder forPubsubTopicMessageStoragePolicy
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PubsubTopicMessageStoragePolicy.BuilderallowedPersistenceRegions(List<String> allowedPersistenceRegions)Sets the value ofPubsubTopicMessageStoragePolicy.getAllowedPersistenceRegions()PubsubTopicMessageStoragePolicybuild()Builds the configured instance.
-
-
-
Method Detail
-
allowedPersistenceRegions
@Stability(Stable) public PubsubTopicMessageStoragePolicy.Builder allowedPersistenceRegions(List<String> allowedPersistenceRegions)
Sets the value ofPubsubTopicMessageStoragePolicy.getAllowedPersistenceRegions()- Parameters:
allowedPersistenceRegions- A list of IDs of GCP regions where messages that are published to the topic may be persisted in storage. This parameter is required. Messages published by publishers running in non-allowed GCP regions (or running outside of GCP altogether) will be routed for storage in one of the allowed regions. An empty list means that no regions are allowed, and is not a valid configuration. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/pubsub_topic#allowed_persistence_regions PubsubTopic#allowed_persistence_regions}- Returns:
this
-
build
@Stability(Stable) public PubsubTopicMessageStoragePolicy build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<PubsubTopicMessageStoragePolicy>- Returns:
- a new instance of
PubsubTopicMessageStoragePolicy - Throws:
NullPointerException- if any required attribute was not provided
-
-