Class NetworkConnectivityPolicyBasedRouteConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_policy_based_route.NetworkConnectivityPolicyBasedRouteConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivityPolicyBasedRouteConfig>
- Enclosing interface:
- NetworkConnectivityPolicyBasedRouteConfig
@Stability(Stable) public static final class NetworkConnectivityPolicyBasedRouteConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivityPolicyBasedRouteConfig>
A builder forNetworkConnectivityPolicyBasedRouteConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
filter
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder filter(NetworkConnectivityPolicyBasedRouteFilter filter)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getFilter()- Parameters:
filter- filter block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#filter NetworkConnectivityPolicyBasedRoute#filter}- Returns:
this
-
name
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder name(String name)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getName()- Parameters:
name- The name of the policy based route. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#name NetworkConnectivityPolicyBasedRoute#name}- Returns:
this
-
network
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder network(String network)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getNetwork()- Parameters:
network- Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#network NetworkConnectivityPolicyBasedRoute#network}- Returns:
this
-
description
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder description(String description)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getDescription()- Parameters:
description- An optional description of this resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#description NetworkConnectivityPolicyBasedRoute#description}- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder id(String id)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#id NetworkConnectivityPolicyBasedRoute#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
-
interconnectAttachment
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder interconnectAttachment(NetworkConnectivityPolicyBasedRouteInterconnectAttachment interconnectAttachment)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getInterconnectAttachment()- Parameters:
interconnectAttachment- interconnect_attachment block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#interconnect_attachment NetworkConnectivityPolicyBasedRoute#interconnect_attachment}- Returns:
this
-
labels
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getLabels()- Parameters:
labels- User-defined 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_policy_based_route#labels NetworkConnectivityPolicyBasedRoute#labels}- Returns:
this
-
nextHopIlbIp
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder nextHopIlbIp(String nextHopIlbIp)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getNextHopIlbIp()- Parameters:
nextHopIlbIp- The IP address of a global-access-enabled L4 ILB that is the next hop for matching packets. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#next_hop_ilb_ip NetworkConnectivityPolicyBasedRoute#next_hop_ilb_ip}- Returns:
this
-
nextHopOtherRoutes
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder nextHopOtherRoutes(String nextHopOtherRoutes)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getNextHopOtherRoutes()- Parameters:
nextHopOtherRoutes- Other routes that will be referenced to determine the next hop of the packet. Possible values: ["DEFAULT_ROUTING"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#next_hop_other_routes NetworkConnectivityPolicyBasedRoute#next_hop_other_routes}- Returns:
this
-
priority
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder priority(Number priority)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getPriority()- Parameters:
priority- The priority of this policy-based route. Priority is used to break ties in cases where there are more than one matching policy-based routes found. In cases where multiple policy-based routes are matched, the one with the lowest-numbered priority value wins. The default value is 1000. The priority value must be from 1 to 65535, inclusive. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#priority NetworkConnectivityPolicyBasedRoute#priority}- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder project(String project)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#project NetworkConnectivityPolicyBasedRoute#project}.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder timeouts(NetworkConnectivityPolicyBasedRouteTimeouts timeouts)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#timeouts NetworkConnectivityPolicyBasedRoute#timeouts}- Returns:
this
-
virtualMachine
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig.Builder virtualMachine(NetworkConnectivityPolicyBasedRouteVirtualMachine virtualMachine)
Sets the value ofNetworkConnectivityPolicyBasedRouteConfig.getVirtualMachine()- Parameters:
virtualMachine- virtual_machine block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_policy_based_route#virtual_machine NetworkConnectivityPolicyBasedRoute#virtual_machine}- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.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 NetworkConnectivityPolicyBasedRouteConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivityPolicyBasedRouteConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivityPolicyBasedRouteConfig>- Returns:
- a new instance of
NetworkConnectivityPolicyBasedRouteConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-