
com.pulumi.aws.wafv2.outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.wafv2.outputs;
import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch;
import com.pulumi.aws.wafv2.outputs.WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement {
/**
* @return The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details.
*
*/
private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch fieldToMatch;
/**
* @return String representing the regular expression. Minimum of `1` and maximum of `512` characters.
*
*/
private String regexString;
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details.
*
*/
private List textTransformations;
private WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement() {}
/**
* @return The part of a web request that you want AWS WAF to inspect. See `field_to_match` below for details.
*
*/
public Optional fieldToMatch() {
return Optional.ofNullable(this.fieldToMatch);
}
/**
* @return String representing the regular expression. Minimum of `1` and maximum of `512` characters.
*
*/
public String regexString() {
return this.regexString;
}
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. At least one transformation is required. See `text_transformation` below for details.
*
*/
public List textTransformations() {
return this.textTransformations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch fieldToMatch;
private String regexString;
private List textTransformations;
public Builder() {}
public Builder(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement defaults) {
Objects.requireNonNull(defaults);
this.fieldToMatch = defaults.fieldToMatch;
this.regexString = defaults.regexString;
this.textTransformations = defaults.textTransformations;
}
@CustomType.Setter
public Builder fieldToMatch(@Nullable WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementFieldToMatch fieldToMatch) {
this.fieldToMatch = fieldToMatch;
return this;
}
@CustomType.Setter
public Builder regexString(String regexString) {
if (regexString == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement", "regexString");
}
this.regexString = regexString;
return this;
}
@CustomType.Setter
public Builder textTransformations(List textTransformations) {
if (textTransformations == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement", "textTransformations");
}
this.textTransformations = textTransformations;
return this;
}
public Builder textTransformations(WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatementTextTransformation... textTransformations) {
return textTransformations(List.of(textTransformations));
}
public WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement build() {
final var _resultValue = new WebAclRuleStatementManagedRuleGroupStatementScopeDownStatementRegexMatchStatement();
_resultValue.fieldToMatch = fieldToMatch;
_resultValue.regexString = regexString;
_resultValue.textTransformations = textTransformations;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy