Class WafregionalWebAclConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.wafregional_web_acl.WafregionalWebAclConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<WafregionalWebAclConfig>
- Enclosing interface:
- WafregionalWebAclConfig
@Stability(Stable) public static final class WafregionalWebAclConfig.Builder extends Object implements software.amazon.jsii.Builder<WafregionalWebAclConfig>
A builder forWafregionalWebAclConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WafregionalWebAclConfigbuild()Builds the configured instance.WafregionalWebAclConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()WafregionalWebAclConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()WafregionalWebAclConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()WafregionalWebAclConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()WafregionalWebAclConfig.BuilderdefaultAction(WafregionalWebAclDefaultAction defaultAction)Sets the value ofWafregionalWebAclConfig.getDefaultAction()WafregionalWebAclConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()WafregionalWebAclConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()WafregionalWebAclConfig.Builderid(String id)Sets the value ofWafregionalWebAclConfig.getId()WafregionalWebAclConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()WafregionalWebAclConfig.BuilderloggingConfiguration(WafregionalWebAclLoggingConfiguration loggingConfiguration)Sets the value ofWafregionalWebAclConfig.getLoggingConfiguration()WafregionalWebAclConfig.BuildermetricName(String metricName)Sets the value ofWafregionalWebAclConfig.getMetricName()WafregionalWebAclConfig.Buildername(String name)Sets the value ofWafregionalWebAclConfig.getName()WafregionalWebAclConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()WafregionalWebAclConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()WafregionalWebAclConfig.Builderrule(com.hashicorp.cdktf.IResolvable rule)Sets the value ofWafregionalWebAclConfig.getRule()WafregionalWebAclConfig.Builderrule(List<? extends WafregionalWebAclRule> rule)Sets the value ofWafregionalWebAclConfig.getRule()WafregionalWebAclConfig.Buildertags(Map<String,String> tags)Sets the value ofWafregionalWebAclConfig.getTags()WafregionalWebAclConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofWafregionalWebAclConfig.getTagsAll()
-
-
-
Method Detail
-
defaultAction
@Stability(Stable) public WafregionalWebAclConfig.Builder defaultAction(WafregionalWebAclDefaultAction defaultAction)
Sets the value ofWafregionalWebAclConfig.getDefaultAction()- Parameters:
defaultAction- default_action block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#default_action WafregionalWebAcl#default_action}- Returns:
this
-
metricName
@Stability(Stable) public WafregionalWebAclConfig.Builder metricName(String metricName)
Sets the value ofWafregionalWebAclConfig.getMetricName()- Parameters:
metricName- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#metric_name WafregionalWebAcl#metric_name}. This parameter is required.- Returns:
this
-
name
@Stability(Stable) public WafregionalWebAclConfig.Builder name(String name)
Sets the value ofWafregionalWebAclConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#name WafregionalWebAcl#name}. This parameter is required.- Returns:
this
-
id
@Stability(Stable) public WafregionalWebAclConfig.Builder id(String id)
Sets the value ofWafregionalWebAclConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#id WafregionalWebAcl#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
-
loggingConfiguration
@Stability(Stable) public WafregionalWebAclConfig.Builder loggingConfiguration(WafregionalWebAclLoggingConfiguration loggingConfiguration)
Sets the value ofWafregionalWebAclConfig.getLoggingConfiguration()- Parameters:
loggingConfiguration- logging_configuration block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#logging_configuration WafregionalWebAcl#logging_configuration}- Returns:
this
-
rule
@Stability(Stable) public WafregionalWebAclConfig.Builder rule(com.hashicorp.cdktf.IResolvable rule)
Sets the value ofWafregionalWebAclConfig.getRule()- Parameters:
rule- rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#rule WafregionalWebAcl#rule}- Returns:
this
-
rule
@Stability(Stable) public WafregionalWebAclConfig.Builder rule(List<? extends WafregionalWebAclRule> rule)
Sets the value ofWafregionalWebAclConfig.getRule()- Parameters:
rule- rule block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#rule WafregionalWebAcl#rule}- Returns:
this
-
tags
@Stability(Stable) public WafregionalWebAclConfig.Builder tags(Map<String,String> tags)
Sets the value ofWafregionalWebAclConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#tags WafregionalWebAcl#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public WafregionalWebAclConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofWafregionalWebAclConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafregional_web_acl#tags_all WafregionalWebAcl#tags_all}.- Returns:
this
-
connection
@Stability(Experimental) public WafregionalWebAclConfig.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 WafregionalWebAclConfig.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 WafregionalWebAclConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public WafregionalWebAclConfig.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 WafregionalWebAclConfig.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 WafregionalWebAclConfig.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 WafregionalWebAclConfig.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 WafregionalWebAclConfig.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 WafregionalWebAclConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public WafregionalWebAclConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WafregionalWebAclConfig>- Returns:
- a new instance of
WafregionalWebAclConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-