Class VmwareengineExternalAccessRuleConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.vmwareengine_external_access_rule.VmwareengineExternalAccessRuleConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<VmwareengineExternalAccessRuleConfig>
- Enclosing interface:
- VmwareengineExternalAccessRuleConfig
@Stability(Stable) public static final class VmwareengineExternalAccessRuleConfig.Builder extends Object implements software.amazon.jsii.Builder<VmwareengineExternalAccessRuleConfig>
A builder forVmwareengineExternalAccessRuleConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
action
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder action(String action)
Sets the value ofVmwareengineExternalAccessRuleConfig.getAction()- Parameters:
action- The action that the external access rule performs. Possible values: ["ALLOW", "DENY"]. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#action VmwareengineExternalAccessRule#action}- Returns:
this
-
destinationIpRanges
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder destinationIpRanges(com.hashicorp.cdktf.IResolvable destinationIpRanges)
Sets the value ofVmwareengineExternalAccessRuleConfig.getDestinationIpRanges()- Parameters:
destinationIpRanges- destination_ip_ranges block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#destination_ip_ranges VmwareengineExternalAccessRule#destination_ip_ranges}- Returns:
this
-
destinationIpRanges
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder destinationIpRanges(List<? extends VmwareengineExternalAccessRuleDestinationIpRanges> destinationIpRanges)
Sets the value ofVmwareengineExternalAccessRuleConfig.getDestinationIpRanges()- Parameters:
destinationIpRanges- destination_ip_ranges block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#destination_ip_ranges VmwareengineExternalAccessRule#destination_ip_ranges}- Returns:
this
-
destinationPorts
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder destinationPorts(List<String> destinationPorts)
Sets the value ofVmwareengineExternalAccessRuleConfig.getDestinationPorts()- Parameters:
destinationPorts- A list of destination ports to which the external access rule applies. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#destination_ports VmwareengineExternalAccessRule#destination_ports}- Returns:
this
-
ipProtocol
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder ipProtocol(String ipProtocol)
Sets the value ofVmwareengineExternalAccessRuleConfig.getIpProtocol()- Parameters:
ipProtocol- The IP protocol to which the external access rule applies. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#ip_protocol VmwareengineExternalAccessRule#ip_protocol}- Returns:
this
-
name
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder name(String name)
Sets the value ofVmwareengineExternalAccessRuleConfig.getName()- Parameters:
name- The ID of the external access rule. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#name VmwareengineExternalAccessRule#name}- Returns:
this
-
parent
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder parent(String parent)
Sets the value ofVmwareengineExternalAccessRuleConfig.getParent()- Parameters:
parent- The resource name of the network policy. 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-west1-a/networkPolicies/my-policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#parent VmwareengineExternalAccessRule#parent}- Returns:
this
-
priority
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder priority(Number priority)
Sets the value ofVmwareengineExternalAccessRuleConfig.getPriority()- Parameters:
priority- External access rule priority, which determines the external access rule to use when multiple rules apply. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#priority VmwareengineExternalAccessRule#priority}- Returns:
this
-
sourceIpRanges
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder sourceIpRanges(com.hashicorp.cdktf.IResolvable sourceIpRanges)
Sets the value ofVmwareengineExternalAccessRuleConfig.getSourceIpRanges()- Parameters:
sourceIpRanges- source_ip_ranges block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#source_ip_ranges VmwareengineExternalAccessRule#source_ip_ranges}- Returns:
this
-
sourceIpRanges
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder sourceIpRanges(List<? extends VmwareengineExternalAccessRuleSourceIpRanges> sourceIpRanges)
Sets the value ofVmwareengineExternalAccessRuleConfig.getSourceIpRanges()- Parameters:
sourceIpRanges- source_ip_ranges block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#source_ip_ranges VmwareengineExternalAccessRule#source_ip_ranges}- Returns:
this
-
sourcePorts
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder sourcePorts(List<String> sourcePorts)
Sets the value ofVmwareengineExternalAccessRuleConfig.getSourcePorts()- Parameters:
sourcePorts- A list of source ports to which the external access rule applies. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#source_ports VmwareengineExternalAccessRule#source_ports}- Returns:
this
-
description
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder description(String description)
Sets the value ofVmwareengineExternalAccessRuleConfig.getDescription()- Parameters:
description- User-provided description for the external access rule. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#description VmwareengineExternalAccessRule#description}- Returns:
this
-
id
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder id(String id)
Sets the value ofVmwareengineExternalAccessRuleConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#id VmwareengineExternalAccessRule#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
-
timeouts
@Stability(Stable) public VmwareengineExternalAccessRuleConfig.Builder timeouts(VmwareengineExternalAccessRuleTimeouts timeouts)
Sets the value ofVmwareengineExternalAccessRuleConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/vmwareengine_external_access_rule#timeouts VmwareengineExternalAccessRule#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.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 VmwareengineExternalAccessRuleConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public VmwareengineExternalAccessRuleConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<VmwareengineExternalAccessRuleConfig>- Returns:
- a new instance of
VmwareengineExternalAccessRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-