Class AlloydbInstancePscInstanceConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.alloydb_instance.AlloydbInstancePscInstanceConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<AlloydbInstancePscInstanceConfig>
- Enclosing interface:
- AlloydbInstancePscInstanceConfig
@Stability(Stable) public static final class AlloydbInstancePscInstanceConfig.Builder extends Object implements software.amazon.jsii.Builder<AlloydbInstancePscInstanceConfig>
A builder forAlloydbInstancePscInstanceConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlloydbInstancePscInstanceConfig.BuilderallowedConsumerProjects(List<String> allowedConsumerProjects)Sets the value ofAlloydbInstancePscInstanceConfig.getAllowedConsumerProjects()AlloydbInstancePscInstanceConfigbuild()Builds the configured instance.
-
-
-
Method Detail
-
allowedConsumerProjects
@Stability(Stable) public AlloydbInstancePscInstanceConfig.Builder allowedConsumerProjects(List<String> allowedConsumerProjects)
Sets the value ofAlloydbInstancePscInstanceConfig.getAllowedConsumerProjects()- Parameters:
allowedConsumerProjects- List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. These should be specified as project numbers only. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/alloydb_instance#allowed_consumer_projects AlloydbInstance#allowed_consumer_projects}- Returns:
this
-
build
@Stability(Stable) public AlloydbInstancePscInstanceConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<AlloydbInstancePscInstanceConfig>- Returns:
- a new instance of
AlloydbInstancePscInstanceConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-