Class DatastreamPrivateConnectionConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.datastream_private_connection.DatastreamPrivateConnectionConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<DatastreamPrivateConnectionConfig>
- Enclosing interface:
- DatastreamPrivateConnectionConfig
@Stability(Stable) public static final class DatastreamPrivateConnectionConfig.Builder extends Object implements software.amazon.jsii.Builder<DatastreamPrivateConnectionConfig>
A builder forDatastreamPrivateConnectionConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
displayName
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder displayName(String displayName)
Sets the value ofDatastreamPrivateConnectionConfig.getDisplayName()- Parameters:
displayName- Display 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#display_name DatastreamPrivateConnection#display_name}- Returns:
this
-
location
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder location(String location)
Sets the value ofDatastreamPrivateConnectionConfig.getLocation()- Parameters:
location- The name of the location this private connection is located in. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#location DatastreamPrivateConnection#location}- Returns:
this
-
privateConnectionId
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder privateConnectionId(String privateConnectionId)
Sets the value ofDatastreamPrivateConnectionConfig.getPrivateConnectionId()- Parameters:
privateConnectionId- The private connectivity identifier. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#private_connection_id DatastreamPrivateConnection#private_connection_id}- Returns:
this
-
vpcPeeringConfig
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder vpcPeeringConfig(DatastreamPrivateConnectionVpcPeeringConfig vpcPeeringConfig)
Sets the value ofDatastreamPrivateConnectionConfig.getVpcPeeringConfig()- Parameters:
vpcPeeringConfig- vpc_peering_config block. 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_peering_config DatastreamPrivateConnection#vpc_peering_config}- Returns:
this
-
createWithoutValidation
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder createWithoutValidation(Boolean createWithoutValidation)
Sets the value ofDatastreamPrivateConnectionConfig.getCreateWithoutValidation()- Parameters:
createWithoutValidation- If set to true, will skip validations. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#create_without_validation DatastreamPrivateConnection#create_without_validation}- Returns:
this
-
createWithoutValidation
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder createWithoutValidation(com.hashicorp.cdktf.IResolvable createWithoutValidation)
Sets the value ofDatastreamPrivateConnectionConfig.getCreateWithoutValidation()- Parameters:
createWithoutValidation- If set to true, will skip validations. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#create_without_validation DatastreamPrivateConnection#create_without_validation}- Returns:
this
-
id
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder id(String id)
Sets the value ofDatastreamPrivateConnectionConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#id DatastreamPrivateConnection#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
-
labels
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder labels(Map<String,String> labels)
Sets the value ofDatastreamPrivateConnectionConfig.getLabels()- Parameters:
labels- Labels. **Note**: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field 'effective_labels' for all of the labels present on the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#labels DatastreamPrivateConnection#labels}- Returns:
this
-
project
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder project(String project)
Sets the value ofDatastreamPrivateConnectionConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#project DatastreamPrivateConnection#project}.- Returns:
this
-
timeouts
@Stability(Stable) public DatastreamPrivateConnectionConfig.Builder timeouts(DatastreamPrivateConnectionTimeouts timeouts)
Sets the value ofDatastreamPrivateConnectionConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/datastream_private_connection#timeouts DatastreamPrivateConnection#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.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 DatastreamPrivateConnectionConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public DatastreamPrivateConnectionConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DatastreamPrivateConnectionConfig>- Returns:
- a new instance of
DatastreamPrivateConnectionConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-