Class NetworkConnectivityInternalRangeConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_internal_range.NetworkConnectivityInternalRangeConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivityInternalRangeConfig>
- Enclosing interface:
- NetworkConnectivityInternalRangeConfig
@Stability(Stable) public static final class NetworkConnectivityInternalRangeConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivityInternalRangeConfig>
A builder forNetworkConnectivityInternalRangeConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder name(String name)
Sets the value ofNetworkConnectivityInternalRangeConfig.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_internal_range#name NetworkConnectivityInternalRange#name}- Returns:
this
-
network
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder network(String network)
Sets the value ofNetworkConnectivityInternalRangeConfig.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_internal_range#network NetworkConnectivityInternalRange#network}- Returns:
this
-
peering
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder peering(String peering)
Sets the value ofNetworkConnectivityInternalRangeConfig.getPeering()- Parameters:
peering- The type of peering set for this internal range. Possible values: ["FOR_SELF", "FOR_PEER", "NOT_SHARED"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#peering NetworkConnectivityInternalRange#peering}- Returns:
this
-
usage
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder usage(String usage)
Sets the value ofNetworkConnectivityInternalRangeConfig.getUsage()- Parameters:
usage- The type of usage set for this InternalRange. Possible values: ["FOR_VPC", "EXTERNAL_TO_VPC"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#usage NetworkConnectivityInternalRange#usage}- Returns:
this
-
description
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder description(String description)
Sets the value ofNetworkConnectivityInternalRangeConfig.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_internal_range#description NetworkConnectivityInternalRange#description}- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder id(String id)
Sets the value ofNetworkConnectivityInternalRangeConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#id NetworkConnectivityInternalRange#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
-
ipCidrRange
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder ipCidrRange(String ipCidrRange)
Sets the value ofNetworkConnectivityInternalRangeConfig.getIpCidrRange()- Parameters:
ipCidrRange- The IP range that this internal range defines. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#ip_cidr_range NetworkConnectivityInternalRange#ip_cidr_range}- Returns:
this
-
labels
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder labels(Map<String,String> labels)
Sets the value ofNetworkConnectivityInternalRangeConfig.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_internal_range#labels NetworkConnectivityInternalRange#labels}- Returns:
this
-
overlaps
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder overlaps(List<String> overlaps)
Sets the value ofNetworkConnectivityInternalRangeConfig.getOverlaps()- Parameters:
overlaps- Optional. Types of resources that are allowed to overlap with the current internal range. Possible values: ["OVERLAP_ROUTE_RANGE", "OVERLAP_EXISTING_SUBNET_RANGE"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#overlaps NetworkConnectivityInternalRange#overlaps}- Returns:
this
-
prefixLength
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder prefixLength(Number prefixLength)
Sets the value ofNetworkConnectivityInternalRangeConfig.getPrefixLength()- Parameters:
prefixLength- An alternate to ipCidrRange. Can be set when trying to create a reservation that automatically finds a free range of the given size. If both ipCidrRange and prefixLength are set, there is an error if the range sizes do not match. Can also be used during updates to change the range size. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#prefix_length NetworkConnectivityInternalRange#prefix_length}- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder project(String project)
Sets the value ofNetworkConnectivityInternalRangeConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#project NetworkConnectivityInternalRange#project}.- Returns:
this
-
targetCidrRange
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder targetCidrRange(List<String> targetCidrRange)
Sets the value ofNetworkConnectivityInternalRangeConfig.getTargetCidrRange()- Parameters:
targetCidrRange- Optional. Can be set to narrow down or pick a different address space while searching for a free range. If not set, defaults to the "10.0.0.0/8" address space. This can be used to search in other rfc-1918 address spaces like "172.16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#target_cidr_range NetworkConnectivityInternalRange#target_cidr_range}- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivityInternalRangeConfig.Builder timeouts(NetworkConnectivityInternalRangeTimeouts timeouts)
Sets the value ofNetworkConnectivityInternalRangeConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#timeouts NetworkConnectivityInternalRange#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.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 NetworkConnectivityInternalRangeConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivityInternalRangeConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivityInternalRangeConfig>- Returns:
- a new instance of
NetworkConnectivityInternalRangeConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-