Class NetworkConnectivityHubConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_hub.NetworkConnectivityHubConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivityHubConfig>
- Enclosing interface:
- NetworkConnectivityHubConfig
@Stability(Stable) public static final class NetworkConnectivityHubConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivityHubConfig>
A builder forNetworkConnectivityHubConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkConnectivityHubConfigbuild()Builds the configured instance.NetworkConnectivityHubConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()NetworkConnectivityHubConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()NetworkConnectivityHubConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()NetworkConnectivityHubConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()NetworkConnectivityHubConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()NetworkConnectivityHubConfig.Builderdescription(String description)Sets the value ofNetworkConnectivityHubConfig.getDescription()NetworkConnectivityHubConfig.BuilderexportPsc(com.hashicorp.cdktf.IResolvable exportPsc)Sets the value ofNetworkConnectivityHubConfig.getExportPsc()NetworkConnectivityHubConfig.BuilderexportPsc(Boolean exportPsc)Sets the value ofNetworkConnectivityHubConfig.getExportPsc()NetworkConnectivityHubConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()NetworkConnectivityHubConfig.Builderid(String id)Sets the value ofNetworkConnectivityHubConfig.getId()NetworkConnectivityHubConfig.Builderlabels(Map<String,String> labels)Sets the value ofNetworkConnectivityHubConfig.getLabels()NetworkConnectivityHubConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()NetworkConnectivityHubConfig.Buildername(String name)Sets the value ofNetworkConnectivityHubConfig.getName()NetworkConnectivityHubConfig.Builderproject(String project)Sets the value ofNetworkConnectivityHubConfig.getProject()NetworkConnectivityHubConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()NetworkConnectivityHubConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()NetworkConnectivityHubConfig.Buildertimeouts(NetworkConnectivityHubTimeouts timeouts)Sets the value ofNetworkConnectivityHubConfig.getTimeouts()
-
-
-
Method Detail
-
description
@Stability(Stable) public NetworkConnectivityHubConfig.Builder description(String description)
Sets the value ofNetworkConnectivityHubConfig.getDescription()- Parameters:
description- An optional description of the hub. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#description NetworkConnectivityHub#description}- Returns:
this
-
exportPsc
@Stability(Stable) public NetworkConnectivityHubConfig.Builder exportPsc(Boolean exportPsc)
Sets the value ofNetworkConnectivityHubConfig.getExportPsc()- Parameters:
exportPsc- Whether Private Service Connect transitivity is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#export_psc NetworkConnectivityHub#export_psc}- Returns:
this
-
exportPsc
@Stability(Stable) public NetworkConnectivityHubConfig.Builder exportPsc(com.hashicorp.cdktf.IResolvable exportPsc)
Sets the value ofNetworkConnectivityHubConfig.getExportPsc()- Parameters:
exportPsc- Whether Private Service Connect transitivity is enabled for the hub. If true, Private Service Connect endpoints in VPC spokes attached to the hub are made accessible to other VPC spokes attached to the hub. The default value is false. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#export_psc NetworkConnectivityHub#export_psc}- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivityHubConfig.Builder id(String id)
Sets the value ofNetworkConnectivityHubConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#id NetworkConnectivityHub#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 NetworkConnectivityHubConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkConnectivityHubConfig.getLabels()- Parameters:
labels- Optional labels in key:value format. For more information about labels, see Requirements for 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/network_connectivity_hub#labels NetworkConnectivityHub#labels}- Returns:
this
-
name
@Stability(Stable) public NetworkConnectivityHubConfig.Builder name(String name)
Sets the value ofNetworkConnectivityHubConfig.getName()- Parameters:
name- Immutable. The name of the hub. Hub names must be unique. They use the following form: 'projects/{project_number}/locations/global/hubs/{hub_id}'. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#name NetworkConnectivityHub#name}- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivityHubConfig.Builder project(String project)
Sets the value ofNetworkConnectivityHubConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#project NetworkConnectivityHub#project}.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivityHubConfig.Builder timeouts(NetworkConnectivityHubTimeouts timeouts)
Sets the value ofNetworkConnectivityHubConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_hub#timeouts NetworkConnectivityHub#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.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 NetworkConnectivityHubConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivityHubConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivityHubConfig>- Returns:
- a new instance of
NetworkConnectivityHubConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-