Class NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.network_security_gateway_security_policy_rule.NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<NetworkSecurityGatewaySecurityPolicyRuleConfig>
- Enclosing interface:
- NetworkSecurityGatewaySecurityPolicyRuleConfig
@Stability(Stable) public static final class NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder extends Object implements software.amazon.jsii.Builder<NetworkSecurityGatewaySecurityPolicyRuleConfig>
A builder forNetworkSecurityGatewaySecurityPolicyRuleConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
basicProfile
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder basicProfile(String basicProfile)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getBasicProfile()- Parameters:
basicProfile- Profile which tells what the primitive action should be. This parameter is required. Possible values are: * ALLOW * DENY. Possible values: ["BASIC_PROFILE_UNSPECIFIED", "ALLOW", "DENY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#basic_profile NetworkSecurityGatewaySecurityPolicyRule#basic_profile}- Returns:
this
-
enabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder enabled(Boolean enabled)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getEnabled()- Parameters:
enabled- Whether the rule is enforced. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#enabled NetworkSecurityGatewaySecurityPolicyRule#enabled}- Returns:
this
-
enabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder enabled(com.hashicorp.cdktf.IResolvable enabled)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getEnabled()- Parameters:
enabled- Whether the rule is enforced. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#enabled NetworkSecurityGatewaySecurityPolicyRule#enabled}- Returns:
this
-
gatewaySecurityPolicy
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder gatewaySecurityPolicy(String gatewaySecurityPolicy)
- Parameters:
gatewaySecurityPolicy- The name of the gatewat security policy this rule belongs to. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#gateway_security_policy NetworkSecurityGatewaySecurityPolicyRule#gateway_security_policy}- Returns:
this
-
location
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder location(String location)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getLocation()- Parameters:
location- The location of the gateway security policy. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#location NetworkSecurityGatewaySecurityPolicyRule#location}- Returns:
this
-
name
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder name(String name)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getName()- Parameters:
name- Name of the resource. ame is the full resource name so projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy}/rules/{rule} rule should match the pattern: (^a-z?$). This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#name NetworkSecurityGatewaySecurityPolicyRule#name}- Returns:
this
-
priority
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder priority(Number priority)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getPriority()- Parameters:
priority- Priority of the rule. Lower number corresponds to higher precedence. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#priority NetworkSecurityGatewaySecurityPolicyRule#priority}- Returns:
this
-
sessionMatcher
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder sessionMatcher(String sessionMatcher)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getSessionMatcher()- Parameters:
sessionMatcher- CEL expression for matching on session criteria. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#session_matcher NetworkSecurityGatewaySecurityPolicyRule#session_matcher}- Returns:
this
-
applicationMatcher
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder applicationMatcher(String applicationMatcher)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getApplicationMatcher()- Parameters:
applicationMatcher- CEL expression for matching on L7/application level criteria. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#application_matcher NetworkSecurityGatewaySecurityPolicyRule#application_matcher}- Returns:
this
-
description
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder description(String description)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getDescription()- Parameters:
description- Free-text description of the resource. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#description NetworkSecurityGatewaySecurityPolicyRule#description}- Returns:
this
-
id
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder id(String id)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#id NetworkSecurityGatewaySecurityPolicyRule#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
-
project
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder project(String project)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#project NetworkSecurityGatewaySecurityPolicyRule#project}.- Returns:
this
-
timeouts
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder timeouts(NetworkSecurityGatewaySecurityPolicyRuleTimeouts timeouts)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#timeouts NetworkSecurityGatewaySecurityPolicyRule#timeouts}- Returns:
this
-
tlsInspectionEnabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder tlsInspectionEnabled(Boolean tlsInspectionEnabled)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getTlsInspectionEnabled()- Parameters:
tlsInspectionEnabled- Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#tls_inspection_enabled NetworkSecurityGatewaySecurityPolicyRule#tls_inspection_enabled}- Returns:
this
-
tlsInspectionEnabled
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder tlsInspectionEnabled(com.hashicorp.cdktf.IResolvable tlsInspectionEnabled)
Sets the value ofNetworkSecurityGatewaySecurityPolicyRuleConfig.getTlsInspectionEnabled()- Parameters:
tlsInspectionEnabled- Flag to enable TLS inspection of traffic matching on. Can only be true if the parent GatewaySecurityPolicy references a TLSInspectionConfig. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/network_security_gateway_security_policy_rule#tls_inspection_enabled NetworkSecurityGatewaySecurityPolicyRule#tls_inspection_enabled}- Returns:
this
-
connection
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.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 NetworkSecurityGatewaySecurityPolicyRuleConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public NetworkSecurityGatewaySecurityPolicyRuleConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NetworkSecurityGatewaySecurityPolicyRuleConfig>- Returns:
- a new instance of
NetworkSecurityGatewaySecurityPolicyRuleConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-