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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;


public final class FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs Empty = new FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs();

    /**
     * An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting.
     * 
     */
    @Import(name="priority", required=true)
    private Output<Integer> priority;

    /**
     * @return An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting.
     * 
     */
    public Output<Integer> priority() {
        return this.priority;
    }

    /**
     * The Amazon Resource Name (ARN) of the stateless rule group.
     * 
     */
    @Import(name="resourceArn", required=true)
    private Output<String> resourceArn;

    /**
     * @return The Amazon Resource Name (ARN) of the stateless rule group.
     * 
     */
    public Output<String> resourceArn() {
        return this.resourceArn;
    }

    private FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs() {}

    private FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs(FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs $) {
        this.priority = $.priority;
        this.resourceArn = $.resourceArn;
    }

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

    public static final class Builder {
        private FirewallPolicyFirewallPolicyStatelessRuleGroupReferenceArgs $;

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

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

        /**
         * @param priority An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting.
         * 
         * @return builder
         * 
         */
        public Builder priority(Output<Integer> priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority An integer setting that indicates the order in which to run the stateless rule groups in a single policy. AWS Network Firewall applies each stateless rule group to a packet starting with the group that has the lowest priority setting.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param resourceArn The Amazon Resource Name (ARN) of the stateless rule group.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(Output<String> resourceArn) {
            $.resourceArn = resourceArn;
            return this;
        }

        /**
         * @param resourceArn The Amazon Resource Name (ARN) of the stateless rule group.
         * 
         * @return builder
         * 
         */
        public Builder resourceArn(String resourceArn) {
            return resourceArn(Output.of(resourceArn));
        }

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

}
