
com.pulumi.aws.wafregional.outputs.WebAclRuleAction 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.wafregional.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class WebAclRuleAction {
/**
* @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`.
*
*/
private String type;
private WebAclRuleAction() {}
/**
* @return Specifies how you want AWS WAF Regional to respond to requests that match the settings in a rule. Valid values for `action` are `ALLOW`, `BLOCK` or `COUNT`. Valid values for `override_action` are `COUNT` and `NONE`.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WebAclRuleAction defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String type;
public Builder() {}
public Builder(WebAclRuleAction defaults) {
Objects.requireNonNull(defaults);
this.type = defaults.type;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("WebAclRuleAction", "type");
}
this.type = type;
return this;
}
public WebAclRuleAction build() {
final var _resultValue = new WebAclRuleAction();
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy