
com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatement 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.RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch;
import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation;
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 RuleGroupRuleStatementRegexPatternSetReferenceStatement {
/**
* @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references.
*
*/
private String arn;
/**
* @return The part of a web request that you want AWS WAF to inspect. See Field to Match below for details.
*
*/
private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch;
/**
* @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*
*/
private List textTransformations;
private RuleGroupRuleStatementRegexPatternSetReferenceStatement() {}
/**
* @return The Amazon Resource Name (ARN) of the Regex Pattern Set that this statement references.
*
*/
public String arn() {
return this.arn;
}
/**
* @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 Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection.
* At least one required.
* See Text Transformation below for details.
*
*/
public List textTransformations() {
return this.textTransformations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RuleGroupRuleStatementRegexPatternSetReferenceStatement defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String arn;
private @Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch;
private List textTransformations;
public Builder() {}
public Builder(RuleGroupRuleStatementRegexPatternSetReferenceStatement defaults) {
Objects.requireNonNull(defaults);
this.arn = defaults.arn;
this.fieldToMatch = defaults.fieldToMatch;
this.textTransformations = defaults.textTransformations;
}
@CustomType.Setter
public Builder arn(String arn) {
if (arn == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleStatementRegexPatternSetReferenceStatement", "arn");
}
this.arn = arn;
return this;
}
@CustomType.Setter
public Builder fieldToMatch(@Nullable RuleGroupRuleStatementRegexPatternSetReferenceStatementFieldToMatch fieldToMatch) {
this.fieldToMatch = fieldToMatch;
return this;
}
@CustomType.Setter
public Builder textTransformations(List textTransformations) {
if (textTransformations == null) {
throw new MissingRequiredPropertyException("RuleGroupRuleStatementRegexPatternSetReferenceStatement", "textTransformations");
}
this.textTransformations = textTransformations;
return this;
}
public Builder textTransformations(RuleGroupRuleStatementRegexPatternSetReferenceStatementTextTransformation... textTransformations) {
return textTransformations(List.of(textTransformations));
}
public RuleGroupRuleStatementRegexPatternSetReferenceStatement build() {
final var _resultValue = new RuleGroupRuleStatementRegexPatternSetReferenceStatement();
_resultValue.arn = arn;
_resultValue.fieldToMatch = fieldToMatch;
_resultValue.textTransformations = textTransformations;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy