Class VmwareengineNetworkPolicyConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.vmwareengine_network_policy.VmwareengineNetworkPolicyConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VmwareengineNetworkPolicyConfig>
- Enclosing interface:
- VmwareengineNetworkPolicyConfig
@Stability(Stable) public static final class VmwareengineNetworkPolicyConfig.Builder extends Object implements software.amazon.jsii.Builder<VmwareengineNetworkPolicyConfig>
A builder forVmwareengineNetworkPolicyConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
edgeServicesCidr
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder edgeServicesCidr(String edgeServicesCidr)
Sets the value ofVmwareengineNetworkPolicyConfig.getEdgeServicesCidr()- Parameters:
edgeServicesCidr- IP address range in CIDR notation used to create internet access and external IP access. This parameter is required. An RFC 1918 CIDR block, with a "/26" prefix, is required. The range cannot overlap with any prefixes either in the consumer VPC network or in use by the private clouds attached to that VPC network. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#edge_services_cidr VmwareengineNetworkPolicy#edge_services_cidr}- Returns:
this
-
location
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder location(String location)
Sets the value ofVmwareengineNetworkPolicyConfig.getLocation()- Parameters:
location- The resource name of the location (region) to create the new network policy in. This parameter is required. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-central1 Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#location VmwareengineNetworkPolicy#location}- Returns:
this
-
name
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder name(String name)
Sets the value ofVmwareengineNetworkPolicyConfig.getName()- Parameters:
name- The ID of the Network Policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#name VmwareengineNetworkPolicy#name}- Returns:
this
-
vmwareEngineNetwork
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder vmwareEngineNetwork(String vmwareEngineNetwork)
Sets the value ofVmwareengineNetworkPolicyConfig.getVmwareEngineNetwork()- Parameters:
vmwareEngineNetwork- The relative resource name of the VMware Engine network. This parameter is required. Specify the name in the following form: projects/{project}/locations/{location}/vmwareEngineNetworks/{vmwareEngineNetworkId} where {project} can either be a project number or a project ID. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#vmware_engine_network VmwareengineNetworkPolicy#vmware_engine_network}- Returns:
this
-
description
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder description(String description)
Sets the value ofVmwareengineNetworkPolicyConfig.getDescription()- Parameters:
description- User-provided description for this network policy. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#description VmwareengineNetworkPolicy#description}- Returns:
this
-
externalIp
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder externalIp(VmwareengineNetworkPolicyExternalIp externalIp)
Sets the value ofVmwareengineNetworkPolicyConfig.getExternalIp()- Parameters:
externalIp- external_ip block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#external_ip VmwareengineNetworkPolicy#external_ip}- Returns:
this
-
id
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder id(String id)
Sets the value ofVmwareengineNetworkPolicyConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#id VmwareengineNetworkPolicy#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
-
internetAccess
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder internetAccess(VmwareengineNetworkPolicyInternetAccess internetAccess)
Sets the value ofVmwareengineNetworkPolicyConfig.getInternetAccess()- Parameters:
internetAccess- internet_access block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#internet_access VmwareengineNetworkPolicy#internet_access}- Returns:
this
-
project
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder project(String project)
Sets the value ofVmwareengineNetworkPolicyConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#project VmwareengineNetworkPolicy#project}.- Returns:
this
-
timeouts
@Stability(Stable) public VmwareengineNetworkPolicyConfig.Builder timeouts(VmwareengineNetworkPolicyTimeouts timeouts)
Sets the value ofVmwareengineNetworkPolicyConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_network_policy#timeouts VmwareengineNetworkPolicy#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.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 VmwareengineNetworkPolicyConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public VmwareengineNetworkPolicyConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VmwareengineNetworkPolicyConfig>- Returns:
- a new instance of
VmwareengineNetworkPolicyConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-