All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.wafregional.outputs.RuleGroupActivatedRule Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.aws.wafregional.outputs.RuleGroupActivatedRuleAction;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RuleGroupActivatedRule {
    /**
     * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     * 
     */
    private RuleGroupActivatedRuleAction action;
    /**
     * @return Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
     * 
     */
    private Integer priority;
    /**
     * @return The ID of a rule
     * 
     */
    private String ruleId;
    private @Nullable String type;

    private RuleGroupActivatedRule() {}
    /**
     * @return Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule.
     * 
     */
    public RuleGroupActivatedRuleAction action() {
        return this.action;
    }
    /**
     * @return Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value.
     * 
     */
    public Integer priority() {
        return this.priority;
    }
    /**
     * @return The ID of a rule
     * 
     */
    public String ruleId() {
        return this.ruleId;
    }
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(RuleGroupActivatedRule defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private RuleGroupActivatedRuleAction action;
        private Integer priority;
        private String ruleId;
        private @Nullable String type;
        public Builder() {}
        public Builder(RuleGroupActivatedRule defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.action = defaults.action;
    	      this.priority = defaults.priority;
    	      this.ruleId = defaults.ruleId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder action(RuleGroupActivatedRuleAction action) {
            if (action == null) {
              throw new MissingRequiredPropertyException("RuleGroupActivatedRule", "action");
            }
            this.action = action;
            return this;
        }
        @CustomType.Setter
        public Builder priority(Integer priority) {
            if (priority == null) {
              throw new MissingRequiredPropertyException("RuleGroupActivatedRule", "priority");
            }
            this.priority = priority;
            return this;
        }
        @CustomType.Setter
        public Builder ruleId(String ruleId) {
            if (ruleId == null) {
              throw new MissingRequiredPropertyException("RuleGroupActivatedRule", "ruleId");
            }
            this.ruleId = ruleId;
            return this;
        }
        @CustomType.Setter
        public Builder type(@Nullable String type) {

            this.type = type;
            return this;
        }
        public RuleGroupActivatedRule build() {
            final var _resultValue = new RuleGroupActivatedRule();
            _resultValue.action = action;
            _resultValue.priority = priority;
            _resultValue.ruleId = ruleId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy