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

com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig 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.wafv2.outputs;

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

@CustomType
public final class RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig {
    /**
     * @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`.
     * 
     */
    private String fallbackBehavior;
    /**
     * @return The name of the HTTP header to use for the IP address.
     * 
     */
    private String headerName;

    private RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig() {}
    /**
     * @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 String fallbackBehavior() {
        return this.fallbackBehavior;
    }
    /**
     * @return The name of the HTTP header to use for the IP address.
     * 
     */
    public String headerName() {
        return this.headerName;
    }

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

    public static Builder builder(RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String fallbackBehavior;
        private String headerName;
        public Builder() {}
        public Builder(RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fallbackBehavior = defaults.fallbackBehavior;
    	      this.headerName = defaults.headerName;
        }

        @CustomType.Setter
        public Builder fallbackBehavior(String fallbackBehavior) {
            if (fallbackBehavior == null) {
              throw new MissingRequiredPropertyException("RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig", "fallbackBehavior");
            }
            this.fallbackBehavior = fallbackBehavior;
            return this;
        }
        @CustomType.Setter
        public Builder headerName(String headerName) {
            if (headerName == null) {
              throw new MissingRequiredPropertyException("RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig", "headerName");
            }
            this.headerName = headerName;
            return this;
        }
        public RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig build() {
            final var _resultValue = new RuleGroupRuleStatementGeoMatchStatementForwardedIpConfig();
            _resultValue.fallbackBehavior = fallbackBehavior;
            _resultValue.headerName = headerName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy