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

com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs 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.wafv2.inputs;

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


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

    public static final RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs Empty = new RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs();

    /**
     * The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`.
     * 
     */
    @Import(name="fallbackBehavior", required=true)
    private Output fallbackBehavior;

    /**
     * @return The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`.
     * 
     */
    public Output fallbackBehavior() {
        return this.fallbackBehavior;
    }

    /**
     * The name of the HTTP header to use for the IP address.
     * 
     */
    @Import(name="headerName", required=true)
    private Output headerName;

    /**
     * @return The name of the HTTP header to use for the IP address.
     * 
     */
    public Output headerName() {
        return this.headerName;
    }

    private RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs() {}

    private RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs(RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs $) {
        this.fallbackBehavior = $.fallbackBehavior;
        this.headerName = $.headerName;
    }

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

    public static final class Builder {
        private RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs $;

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

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

        /**
         * @param fallbackBehavior The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`.
         * 
         * @return builder
         * 
         */
        public Builder fallbackBehavior(Output fallbackBehavior) {
            $.fallbackBehavior = fallbackBehavior;
            return this;
        }

        /**
         * @param fallbackBehavior The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`.
         * 
         * @return builder
         * 
         */
        public Builder fallbackBehavior(String fallbackBehavior) {
            return fallbackBehavior(Output.of(fallbackBehavior));
        }

        /**
         * @param headerName The name of the HTTP header to use for the IP address.
         * 
         * @return builder
         * 
         */
        public Builder headerName(Output headerName) {
            $.headerName = headerName;
            return this;
        }

        /**
         * @param headerName The name of the HTTP header to use for the IP address.
         * 
         * @return builder
         * 
         */
        public Builder headerName(String headerName) {
            return headerName(Output.of(headerName));
        }

        public RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs build() {
            if ($.fallbackBehavior == null) {
                throw new MissingRequiredPropertyException("RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs", "fallbackBehavior");
            }
            if ($.headerName == null) {
                throw new MissingRequiredPropertyException("RuleGroupRuleStatementRateBasedStatementForwardedIpConfigArgs", "headerName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy