// *** 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.route53.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class GetResolverFirewallRulesArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetResolverFirewallRulesArgs Empty = new GetResolverFirewallRulesArgs();

    /**
     * The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule&#39;s domain list.
     * 
     */
    @Import(name="action")
    private @Nullable Output<String> action;

    /**
     * @return The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule&#39;s domain list.
     * 
     */
    public Optional<Output<String>> action() {
        return Optional.ofNullable(this.action);
    }

    /**
     * The unique identifier of the firewall rule group that you want to retrieve the rules for.
     * 
     */
    @Import(name="firewallRuleGroupId", required=true)
    private Output<String> firewallRuleGroupId;

    /**
     * @return The unique identifier of the firewall rule group that you want to retrieve the rules for.
     * 
     */
    public Output<String> firewallRuleGroupId() {
        return this.firewallRuleGroupId;
    }

    /**
     * The setting that determines the processing order of the rules in a rule group.
     * 
     */
    @Import(name="priority")
    private @Nullable Output<Integer> priority;

    /**
     * @return The setting that determines the processing order of the rules in a rule group.
     * 
     */
    public Optional<Output<Integer>> priority() {
        return Optional.ofNullable(this.priority);
    }

    private GetResolverFirewallRulesArgs() {}

    private GetResolverFirewallRulesArgs(GetResolverFirewallRulesArgs $) {
        this.action = $.action;
        this.firewallRuleGroupId = $.firewallRuleGroupId;
        this.priority = $.priority;
    }

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

    public static final class Builder {
        private GetResolverFirewallRulesArgs $;

        public Builder() {
            $ = new GetResolverFirewallRulesArgs();
        }

        public Builder(GetResolverFirewallRulesArgs defaults) {
            $ = new GetResolverFirewallRulesArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param action The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule&#39;s domain list.
         * 
         * @return builder
         * 
         */
        public Builder action(@Nullable Output<String> action) {
            $.action = action;
            return this;
        }

        /**
         * @param action The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule&#39;s domain list.
         * 
         * @return builder
         * 
         */
        public Builder action(String action) {
            return action(Output.of(action));
        }

        /**
         * @param firewallRuleGroupId The unique identifier of the firewall rule group that you want to retrieve the rules for.
         * 
         * @return builder
         * 
         */
        public Builder firewallRuleGroupId(Output<String> firewallRuleGroupId) {
            $.firewallRuleGroupId = firewallRuleGroupId;
            return this;
        }

        /**
         * @param firewallRuleGroupId The unique identifier of the firewall rule group that you want to retrieve the rules for.
         * 
         * @return builder
         * 
         */
        public Builder firewallRuleGroupId(String firewallRuleGroupId) {
            return firewallRuleGroupId(Output.of(firewallRuleGroupId));
        }

        /**
         * @param priority The setting that determines the processing order of the rules in a rule group.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output<Integer> priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority The setting that determines the processing order of the rules in a rule group.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        public GetResolverFirewallRulesArgs build() {
            $.firewallRuleGroupId = Objects.requireNonNull($.firewallRuleGroupId, "expected parameter 'firewallRuleGroupId' to be non-null");
            return $;
        }
    }

}
