Class NetworkConnectivitySpokeConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_spoke.NetworkConnectivitySpokeConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivitySpokeConfig>
- Enclosing interface:
- NetworkConnectivitySpokeConfig
@Stability(Stable) public static final class NetworkConnectivitySpokeConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivitySpokeConfig>
A builder forNetworkConnectivitySpokeConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
hub
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder hub(String hub)
Sets the value ofNetworkConnectivitySpokeConfig.getHub()- Parameters:
hub- Immutable. The URI of the hub that this spoke is attached to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#hub NetworkConnectivitySpoke#hub}- Returns:
this
-
location
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder location(String location)
Sets the value ofNetworkConnectivitySpokeConfig.getLocation()- Parameters:
location- The location for the resource. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#location NetworkConnectivitySpoke#location}- Returns:
this
-
name
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder name(String name)
Sets the value ofNetworkConnectivitySpokeConfig.getName()- Parameters:
name- Immutable. The name of the spoke. Spoke names must be unique. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#name NetworkConnectivitySpoke#name}- Returns:
this
-
description
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder description(String description)
Sets the value ofNetworkConnectivitySpokeConfig.getDescription()- Parameters:
description- An optional description of the spoke. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#description NetworkConnectivitySpoke#description}- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder id(String id)
Sets the value ofNetworkConnectivitySpokeConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#id NetworkConnectivitySpoke#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 NetworkConnectivitySpokeConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkConnectivitySpokeConfig.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_spoke#labels NetworkConnectivitySpoke#labels}- Returns:
this
-
linkedInterconnectAttachments
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder linkedInterconnectAttachments(NetworkConnectivitySpokeLinkedInterconnectAttachments linkedInterconnectAttachments)
Sets the value ofNetworkConnectivitySpokeConfig.getLinkedInterconnectAttachments()- Parameters:
linkedInterconnectAttachments- linked_interconnect_attachments block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#linked_interconnect_attachments NetworkConnectivitySpoke#linked_interconnect_attachments}- Returns:
this
-
linkedRouterApplianceInstances
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder linkedRouterApplianceInstances(NetworkConnectivitySpokeLinkedRouterApplianceInstances linkedRouterApplianceInstances)
Sets the value ofNetworkConnectivitySpokeConfig.getLinkedRouterApplianceInstances()- Parameters:
linkedRouterApplianceInstances- linked_router_appliance_instances block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#linked_router_appliance_instances NetworkConnectivitySpoke#linked_router_appliance_instances}- Returns:
this
-
linkedVpcNetwork
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder linkedVpcNetwork(NetworkConnectivitySpokeLinkedVpcNetwork linkedVpcNetwork)
Sets the value ofNetworkConnectivitySpokeConfig.getLinkedVpcNetwork()- Parameters:
linkedVpcNetwork- linked_vpc_network block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#linked_vpc_network NetworkConnectivitySpoke#linked_vpc_network}- Returns:
this
-
linkedVpnTunnels
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder linkedVpnTunnels(NetworkConnectivitySpokeLinkedVpnTunnels linkedVpnTunnels)
Sets the value ofNetworkConnectivitySpokeConfig.getLinkedVpnTunnels()- Parameters:
linkedVpnTunnels- linked_vpn_tunnels block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#linked_vpn_tunnels NetworkConnectivitySpoke#linked_vpn_tunnels}- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder project(String project)
Sets the value ofNetworkConnectivitySpokeConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#project NetworkConnectivitySpoke#project}.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivitySpokeConfig.Builder timeouts(NetworkConnectivitySpokeTimeouts timeouts)
Sets the value ofNetworkConnectivitySpokeConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_spoke#timeouts NetworkConnectivitySpoke#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.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 NetworkConnectivitySpokeConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivitySpokeConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivitySpokeConfig>- Returns:
- a new instance of
NetworkConnectivitySpokeConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-