Class Wafv2RegexPatternSetConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.wafv2_regex_pattern_set.Wafv2RegexPatternSetConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<Wafv2RegexPatternSetConfig>
- Enclosing interface:
- Wafv2RegexPatternSetConfig
@Stability(Stable) public static final class Wafv2RegexPatternSetConfig.Builder extends Object implements software.amazon.jsii.Builder<Wafv2RegexPatternSetConfig>
A builder forWafv2RegexPatternSetConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Wafv2RegexPatternSetConfigbuild()Builds the configured instance.Wafv2RegexPatternSetConfig.Builderconnection(com.hashicorp.cdktf.SSHProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()Wafv2RegexPatternSetConfig.Builderconnection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)Sets the value ofTerraformMetaArguments.getConnection()Wafv2RegexPatternSetConfig.Buildercount(com.hashicorp.cdktf.TerraformCount count)Sets the value ofTerraformMetaArguments.getCount()Wafv2RegexPatternSetConfig.Buildercount(Number count)Sets the value ofTerraformMetaArguments.getCount()Wafv2RegexPatternSetConfig.BuilderdependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)Sets the value ofTerraformMetaArguments.getDependsOn()Wafv2RegexPatternSetConfig.Builderdescription(String description)Sets the value ofWafv2RegexPatternSetConfig.getDescription()Wafv2RegexPatternSetConfig.BuilderforEach(com.hashicorp.cdktf.ITerraformIterator forEach)Sets the value ofTerraformMetaArguments.getForEach()Wafv2RegexPatternSetConfig.Builderid(String id)Sets the value ofWafv2RegexPatternSetConfig.getId()Wafv2RegexPatternSetConfig.Builderlifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)Sets the value ofTerraformMetaArguments.getLifecycle()Wafv2RegexPatternSetConfig.Buildername(String name)Sets the value ofWafv2RegexPatternSetConfig.getName()Wafv2RegexPatternSetConfig.Builderprovider(com.hashicorp.cdktf.TerraformProvider provider)Sets the value ofTerraformMetaArguments.getProvider()Wafv2RegexPatternSetConfig.Builderprovisioners(List<? extends Object> provisioners)Sets the value ofTerraformMetaArguments.getProvisioners()Wafv2RegexPatternSetConfig.BuilderregularExpression(com.hashicorp.cdktf.IResolvable regularExpression)Sets the value ofWafv2RegexPatternSetConfig.getRegularExpression()Wafv2RegexPatternSetConfig.BuilderregularExpression(List<? extends Wafv2RegexPatternSetRegularExpression> regularExpression)Sets the value ofWafv2RegexPatternSetConfig.getRegularExpression()Wafv2RegexPatternSetConfig.Builderscope(String scope)Sets the value ofWafv2RegexPatternSetConfig.getScope()Wafv2RegexPatternSetConfig.Buildertags(Map<String,String> tags)Sets the value ofWafv2RegexPatternSetConfig.getTags()Wafv2RegexPatternSetConfig.BuildertagsAll(Map<String,String> tagsAll)Sets the value ofWafv2RegexPatternSetConfig.getTagsAll()
-
-
-
Method Detail
-
name
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder name(String name)
Sets the value ofWafv2RegexPatternSetConfig.getName()- Parameters:
name- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#name Wafv2RegexPatternSet#name}. This parameter is required.- Returns:
this
-
scope
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder scope(String scope)
Sets the value ofWafv2RegexPatternSetConfig.getScope()- Parameters:
scope- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#scope Wafv2RegexPatternSet#scope}. This parameter is required.- Returns:
this
-
description
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder description(String description)
Sets the value ofWafv2RegexPatternSetConfig.getDescription()- Parameters:
description- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#description Wafv2RegexPatternSet#description}.- Returns:
this
-
id
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder id(String id)
Sets the value ofWafv2RegexPatternSetConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#id Wafv2RegexPatternSet#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
-
regularExpression
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder regularExpression(com.hashicorp.cdktf.IResolvable regularExpression)
Sets the value ofWafv2RegexPatternSetConfig.getRegularExpression()- Parameters:
regularExpression- regular_expression block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#regular_expression Wafv2RegexPatternSet#regular_expression}- Returns:
this
-
regularExpression
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder regularExpression(List<? extends Wafv2RegexPatternSetRegularExpression> regularExpression)
Sets the value ofWafv2RegexPatternSetConfig.getRegularExpression()- Parameters:
regularExpression- regular_expression block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#regular_expression Wafv2RegexPatternSet#regular_expression}- Returns:
this
-
tags
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder tags(Map<String,String> tags)
Sets the value ofWafv2RegexPatternSetConfig.getTags()- Parameters:
tags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#tags Wafv2RegexPatternSet#tags}.- Returns:
this
-
tagsAll
@Stability(Stable) public Wafv2RegexPatternSetConfig.Builder tagsAll(Map<String,String> tagsAll)
Sets the value ofWafv2RegexPatternSetConfig.getTagsAll()- Parameters:
tagsAll- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/wafv2_regex_pattern_set#tags_all Wafv2RegexPatternSet#tags_all}.- Returns:
this
-
connection
@Stability(Experimental) public Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.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 Wafv2RegexPatternSetConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public Wafv2RegexPatternSetConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Wafv2RegexPatternSetConfig>- Returns:
- a new instance of
Wafv2RegexPatternSetConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-