com.pulumi.aws.wafv2.outputs.WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** 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.WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody {
/**
* @return What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`.
*
*/
private @Nullable String invalidFallbackBehavior;
/**
* @return The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details.
*
*/
private WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern matchPattern;
/**
* @return The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`.
*
*/
private String matchScope;
/**
* @return What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`.
*
*/
private @Nullable String oversizeHandling;
private WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody() {}
/**
* @return What to do when JSON parsing fails. Defaults to evaluating up to the first parsing failure. Valid values are `EVALUATE_AS_STRING`, `MATCH` and `NO_MATCH`.
*
*/
public Optional invalidFallbackBehavior() {
return Optional.ofNullable(this.invalidFallbackBehavior);
}
/**
* @return The patterns to look for in the JSON body. You must specify exactly one setting: either `all` or `included_paths`. See [JsonMatchPattern](https://docs.aws.amazon.com/waf/latest/APIReference/API_JsonMatchPattern.html) for details.
*
*/
public WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern matchPattern() {
return this.matchPattern;
}
/**
* @return The parts of the JSON to match against using the `match_pattern`. Valid values are `ALL`, `KEY` and `VALUE`.
*
*/
public String matchScope() {
return this.matchScope;
}
/**
* @return What to do if the body is larger than can be inspected. Valid values are `CONTINUE` (default), `MATCH` and `NO_MATCH`.
*
*/
public Optional oversizeHandling() {
return Optional.ofNullable(this.oversizeHandling);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String invalidFallbackBehavior;
private WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern matchPattern;
private String matchScope;
private @Nullable String oversizeHandling;
public Builder() {}
public Builder(WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody defaults) {
Objects.requireNonNull(defaults);
this.invalidFallbackBehavior = defaults.invalidFallbackBehavior;
this.matchPattern = defaults.matchPattern;
this.matchScope = defaults.matchScope;
this.oversizeHandling = defaults.oversizeHandling;
}
@CustomType.Setter
public Builder invalidFallbackBehavior(@Nullable String invalidFallbackBehavior) {
this.invalidFallbackBehavior = invalidFallbackBehavior;
return this;
}
@CustomType.Setter
public Builder matchPattern(WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBodyMatchPattern matchPattern) {
if (matchPattern == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody", "matchPattern");
}
this.matchPattern = matchPattern;
return this;
}
@CustomType.Setter
public Builder matchScope(String matchScope) {
if (matchScope == null) {
throw new MissingRequiredPropertyException("WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody", "matchScope");
}
this.matchScope = matchScope;
return this;
}
@CustomType.Setter
public Builder oversizeHandling(@Nullable String oversizeHandling) {
this.oversizeHandling = oversizeHandling;
return this;
}
public WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody build() {
final var _resultValue = new WebAclRuleStatementSqliMatchStatementFieldToMatchJsonBody();
_resultValue.invalidFallbackBehavior = invalidFallbackBehavior;
_resultValue.matchPattern = matchPattern;
_resultValue.matchScope = matchScope;
_resultValue.oversizeHandling = oversizeHandling;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy