Class DatastreamPrivateConnectionVpcPeeringConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.datastream_private_connection.DatastreamPrivateConnectionVpcPeeringConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatastreamPrivateConnectionVpcPeeringConfig>
- Enclosing interface:
- DatastreamPrivateConnectionVpcPeeringConfig
@Stability(Stable) public static final class DatastreamPrivateConnectionVpcPeeringConfig.Builder extends Object implements software.amazon.jsii.Builder<DatastreamPrivateConnectionVpcPeeringConfig>
A builder forDatastreamPrivateConnectionVpcPeeringConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatastreamPrivateConnectionVpcPeeringConfigbuild()Builds the configured instance.DatastreamPrivateConnectionVpcPeeringConfig.Buildersubnet(String subnet)Sets the value ofDatastreamPrivateConnectionVpcPeeringConfig.getSubnet()DatastreamPrivateConnectionVpcPeeringConfig.Buildervpc(String vpc)Sets the value ofDatastreamPrivateConnectionVpcPeeringConfig.getVpc()
-
-
-
Method Detail
-
subnet
@Stability(Stable) public DatastreamPrivateConnectionVpcPeeringConfig.Builder subnet(String subnet)
Sets the value ofDatastreamPrivateConnectionVpcPeeringConfig.getSubnet()- Parameters:
subnet- A free subnet for peering. (CIDR of /29). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#subnet DatastreamPrivateConnection#subnet}- Returns:
this
-
vpc
@Stability(Stable) public DatastreamPrivateConnectionVpcPeeringConfig.Builder vpc(String vpc)
Sets the value ofDatastreamPrivateConnectionVpcPeeringConfig.getVpc()- Parameters:
vpc- Fully qualified name of the VPC that Datastream will peer to. Format: projects/{project}/global/{networks}/{name}. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#vpc DatastreamPrivateConnection#vpc}- Returns:
this
-
build
@Stability(Stable) public DatastreamPrivateConnectionVpcPeeringConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatastreamPrivateConnectionVpcPeeringConfig>- Returns:
- a new instance of
DatastreamPrivateConnectionVpcPeeringConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-