Class ComputeAddressConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.compute_address.ComputeAddressConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<ComputeAddressConfig>
- Enclosing interface:
- ComputeAddressConfig
@Stability(Stable) public static final class ComputeAddressConfig.Builder extends Object implements software.amazon.jsii.Builder<ComputeAddressConfig>
A builder forComputeAddressConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
name
@Stability(Stable) public ComputeAddressConfig.Builder name(String name)
Sets the value ofComputeAddressConfig.getName()- Parameters:
name- Name of the resource. This parameter is required. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression '[a-z](%5B-a-z0-9%5D*%5Ba-z0-9%5D)?' which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#name ComputeAddress#name}- Returns:
this
-
address
@Stability(Stable) public ComputeAddressConfig.Builder address(String address)
Sets the value ofComputeAddressConfig.getAddress()- Parameters:
address- The static external IP address represented by this resource. The IP address must be inside the specified subnetwork, if any. Set by the API if undefined. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#address ComputeAddress#address}- Returns:
this
-
addressType
@Stability(Stable) public ComputeAddressConfig.Builder addressType(String addressType)
Sets the value ofComputeAddressConfig.getAddressType()- Parameters:
addressType- The type of address to reserve. Note: if you set this argument's value as 'INTERNAL' you need to leave the 'network_tier' argument unset in that resource block. Default value: "EXTERNAL" Possible values: ["INTERNAL", "EXTERNAL"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#address_type ComputeAddress#address_type}- Returns:
this
-
description
@Stability(Stable) public ComputeAddressConfig.Builder description(String description)
Sets the value ofComputeAddressConfig.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/compute_address#description ComputeAddress#description}- Returns:
this
-
id
@Stability(Stable) public ComputeAddressConfig.Builder id(String id)
Sets the value ofComputeAddressConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#id ComputeAddress#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
-
ipv6EndpointType
@Stability(Stable) public ComputeAddressConfig.Builder ipv6EndpointType(String ipv6EndpointType)
Sets the value ofComputeAddressConfig.getIpv6EndpointType()- Parameters:
ipv6EndpointType- The endpoint type of this address, which should be VM or NETLB. This is used for deciding which type of endpoint this address can be used after the external IPv6 address reservation. Possible values: ["VM", "NETLB"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#ipv6_endpoint_type ComputeAddress#ipv6_endpoint_type}- Returns:
this
-
ipVersion
@Stability(Stable) public ComputeAddressConfig.Builder ipVersion(String ipVersion)
Sets the value ofComputeAddressConfig.getIpVersion()- Parameters:
ipVersion- The IP Version that will be used by this address. The default value is 'IPV4'. Possible values: ["IPV4", "IPV6"]. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#ip_version ComputeAddress#ip_version}- Returns:
this
-
labels
@Stability(Stable) public ComputeAddressConfig.Builder labels(Map<String,String> labels)
Sets the value ofComputeAddressConfig.getLabels()- Parameters:
labels- Labels to apply to this address. A list of key->value pairs. **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/compute_address#labels ComputeAddress#labels}- Returns:
this
-
network
@Stability(Stable) public ComputeAddressConfig.Builder network(String network)
Sets the value ofComputeAddressConfig.getNetwork()- Parameters:
network- The URL of the network in which to reserve the address. This field can only be used with INTERNAL type with the VPC_PEERING and IPSEC_INTERCONNECT purposes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#network ComputeAddress#network}- Returns:
this
-
networkTier
@Stability(Stable) public ComputeAddressConfig.Builder networkTier(String networkTier)
Sets the value ofComputeAddressConfig.getNetworkTier()- Parameters:
networkTier- The networking tier used for configuring this address. If this field is not specified, it is assumed to be PREMIUM. This argument should not be used when configuring Internal addresses, because [network tier cannot be set for internal traffic; it's always Premium](https://cloud.google.com/network-tiers/docs/overview). Possible values: ["PREMIUM", "STANDARD"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#network_tier ComputeAddress#network_tier}- Returns:
this
-
prefixLength
@Stability(Stable) public ComputeAddressConfig.Builder prefixLength(Number prefixLength)
Sets the value ofComputeAddressConfig.getPrefixLength()- Parameters:
prefixLength- The prefix length if the resource represents an IP range. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#prefix_length ComputeAddress#prefix_length}- Returns:
this
-
project
@Stability(Stable) public ComputeAddressConfig.Builder project(String project)
Sets the value ofComputeAddressConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#project ComputeAddress#project}.- Returns:
this
-
purpose
@Stability(Stable) public ComputeAddressConfig.Builder purpose(String purpose)
Sets the value ofComputeAddressConfig.getPurpose()- Parameters:
purpose- The purpose of this resource, which can be one of the following values. * GCE_ENDPOINT for addresses that are used by VM instances, alias IP ranges, load balancers, and similar resources. * SHARED_LOADBALANCER_VIP for an address that can be used by multiple internal load balancers. * VPC_PEERING for addresses that are reserved for VPC peer networks. * IPSEC_INTERCONNECT for addresses created from a private IP range that are reserved for a VLAN attachment in an HA VPN over Cloud Interconnect configuration. These addresses are regional resources. * PRIVATE_SERVICE_CONNECT for a private network address that is used to configure Private Service Connect. Only global internal addresses can use this purpose. This should only be set when using an Internal address. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#purpose ComputeAddress#purpose}- Returns:
this
-
region
@Stability(Stable) public ComputeAddressConfig.Builder region(String region)
Sets the value ofComputeAddressConfig.getRegion()- Parameters:
region- The Region in which the created address should reside. If it is not provided, the provider region is used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#region ComputeAddress#region}- Returns:
this
-
subnetwork
@Stability(Stable) public ComputeAddressConfig.Builder subnetwork(String subnetwork)
Sets the value ofComputeAddressConfig.getSubnetwork()- Parameters:
subnetwork- The URL of the subnetwork in which to reserve the address. If an IP address is specified, it must be within the subnetwork's IP range. This field can only be used with INTERNAL type with GCE_ENDPOINT/DNS_RESOLVER purposes. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#subnetwork ComputeAddress#subnetwork}- Returns:
this
-
timeouts
@Stability(Stable) public ComputeAddressConfig.Builder timeouts(ComputeAddressTimeouts timeouts)
Sets the value ofComputeAddressConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_address#timeouts ComputeAddress#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public ComputeAddressConfig.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 ComputeAddressConfig.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 ComputeAddressConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public ComputeAddressConfig.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 ComputeAddressConfig.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 ComputeAddressConfig.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 ComputeAddressConfig.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 ComputeAddressConfig.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 ComputeAddressConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public ComputeAddressConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ComputeAddressConfig>- Returns:
- a new instance of
ComputeAddressConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-