Class NetworkConnectivityInternalRange.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_connectivity_internal_range.NetworkConnectivityInternalRange.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkConnectivityInternalRange>
- Enclosing class:
- NetworkConnectivityInternalRange
@Stability(Stable) public static final class NetworkConnectivityInternalRange.Builder extends Object implements software.amazon.jsii.Builder<NetworkConnectivityInternalRange>
A fluent builder forNetworkConnectivityInternalRange.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkConnectivityInternalRangebuild()NetworkConnectivityInternalRange.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)NetworkConnectivityInternalRange.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)NetworkConnectivityInternalRange.Buildercount(com.hashicorp.cdktf.TerraformCount count)NetworkConnectivityInternalRange.Buildercount(Number count)static NetworkConnectivityInternalRange.Buildercreate(software.constructs.Construct scope, String id)NetworkConnectivityInternalRange.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)NetworkConnectivityInternalRange.Builderdescription(String description)An optional description of this resource.NetworkConnectivityInternalRange.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)NetworkConnectivityInternalRange.Builderid(String 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}.NetworkConnectivityInternalRange.BuilderipCidrRange(String ipCidrRange)The IP range that this internal range defines.NetworkConnectivityInternalRange.Builderlabels(Map<String,String> labels)User-defined labels.NetworkConnectivityInternalRange.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)NetworkConnectivityInternalRange.Buildername(String name)The name of the policy based route.NetworkConnectivityInternalRange.Buildernetwork(String network)Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.NetworkConnectivityInternalRange.Builderoverlaps(List<String> overlaps)Optional.NetworkConnectivityInternalRange.Builderpeering(String peering)The type of peering set for this internal range.NetworkConnectivityInternalRange.BuilderprefixLength(Number prefixLength)An alternate to ipCidrRange.NetworkConnectivityInternalRange.Builderproject(String 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}.NetworkConnectivityInternalRange.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)NetworkConnectivityInternalRange.Builderprovisioners(List<? extends Object> provisioners)NetworkConnectivityInternalRange.BuildertargetCidrRange(List<String> targetCidrRange)Optional.NetworkConnectivityInternalRange.Buildertimeouts(NetworkConnectivityInternalRangeTimeouts timeouts)timeouts block.NetworkConnectivityInternalRange.Builderusage(String usage)The type of usage set for this InternalRange.
-
-
-
Method Detail
-
create
@Stability(Stable) public static NetworkConnectivityInternalRange.Builder create(software.constructs.Construct scope, String id)
- Parameters:
scope- The scope in which to define this construct. This parameter is required.id- The scoped construct ID. This parameter is required.- Returns:
- a new instance of
NetworkConnectivityInternalRange.Builder.
-
connection
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
connection
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
- Parameters:
connection- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder count(Number count)
- Parameters:
count- This parameter is required.- Returns:
this
-
count
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder count(com.hashicorp.cdktf.TerraformCount count)
- Parameters:
count- This parameter is required.- Returns:
this
-
dependsOn
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
- Parameters:
dependsOn- This parameter is required.- Returns:
this
-
forEach
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
- Parameters:
forEach- This parameter is required.- Returns:
this
-
lifecycle
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
- Parameters:
lifecycle- This parameter is required.- Returns:
this
-
provider
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
- Parameters:
provider- This parameter is required.- Returns:
this
-
provisioners
@Stability(Experimental) public NetworkConnectivityInternalRange.Builder provisioners(List<? extends Object> provisioners)
- Parameters:
provisioners- This parameter is required.- Returns:
this
-
name
@Stability(Stable) public NetworkConnectivityInternalRange.Builder name(String name)
The name of the policy based route.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#name NetworkConnectivityInternalRange#name}
- Parameters:
name- The name of the policy based route. This parameter is required.- Returns:
this
-
network
@Stability(Stable) public NetworkConnectivityInternalRange.Builder network(String network)
Fully-qualified URL of the network that this route applies to, for example: projects/my-project/global/networks/my-network.Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#network NetworkConnectivityInternalRange#network}
- 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.- Returns:
this
-
peering
@Stability(Stable) public NetworkConnectivityInternalRange.Builder peering(String peering)
The type of peering set for this internal range. Possible values: ["FOR_SELF", "FOR_PEER", "NOT_SHARED"].Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#peering NetworkConnectivityInternalRange#peering}
- Parameters:
peering- The type of peering set for this internal range. Possible values: ["FOR_SELF", "FOR_PEER", "NOT_SHARED"]. This parameter is required.- Returns:
this
-
usage
@Stability(Stable) public NetworkConnectivityInternalRange.Builder usage(String usage)
The type of usage set for this InternalRange. Possible values: ["FOR_VPC", "EXTERNAL_TO_VPC"].Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_connectivity_internal_range#usage NetworkConnectivityInternalRange#usage}
- Parameters:
usage- The type of usage set for this InternalRange. Possible values: ["FOR_VPC", "EXTERNAL_TO_VPC"]. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public NetworkConnectivityInternalRange.Builder description(String 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}
- Parameters:
description- An optional description of this resource. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public NetworkConnectivityInternalRange.Builder id(String 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.
- 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}. This parameter is required.- Returns:
this
-
ipCidrRange
@Stability(Stable) public NetworkConnectivityInternalRange.Builder ipCidrRange(String 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}
- Parameters:
ipCidrRange- The IP range that this internal range defines. This parameter is required.- Returns:
this
-
labels
@Stability(Stable) public NetworkConnectivityInternalRange.Builder labels(Map<String,String> 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}
- Parameters:
labels- User-defined labels. This parameter is required.- Returns:
this
-
overlaps
@Stability(Stable) public NetworkConnectivityInternalRange.Builder overlaps(List<String> 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}
- 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"]. This parameter is required.- Returns:
this
-
prefixLength
@Stability(Stable) public NetworkConnectivityInternalRange.Builder prefixLength(Number 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}
- Parameters:
prefixLength- An alternate to ipCidrRange. This parameter is required.- Returns:
this
-
project
@Stability(Stable) public NetworkConnectivityInternalRange.Builder project(String 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}.- 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}. This parameter is required.- Returns:
this
-
targetCidrRange
@Stability(Stable) public NetworkConnectivityInternalRange.Builder targetCidrRange(List<String> 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}
- Parameters:
targetCidrRange- Optional. This parameter is required.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkConnectivityInternalRange.Builder timeouts(NetworkConnectivityInternalRangeTimeouts 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}
- Parameters:
timeouts- timeouts block. This parameter is required.- Returns:
this
-
build
@Stability(Stable) public NetworkConnectivityInternalRange build()
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkConnectivityInternalRange>- Returns:
- a newly built instance of
NetworkConnectivityInternalRange.
-
-