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

com.pulumi.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookie 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.aws.wafv2.outputs.WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class WebAclRuleStatementRateBasedStatementCustomKeyCookie {
    /**
     * @return The name of the cookie to use.
     * 
     */
    private String name;
    /**
     * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.
     * 
     */
    private List textTransformations;

    private WebAclRuleStatementRateBasedStatementCustomKeyCookie() {}
    /**
     * @return The name of the cookie to use.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. They are used in rate-based rule statements, to transform request components before using them as custom aggregation keys. Atleast one transformation is required. See `text_transformation` above for details.
     * 
     */
    public List textTransformations() {
        return this.textTransformations;
    }

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

    public static Builder builder(WebAclRuleStatementRateBasedStatementCustomKeyCookie defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private List textTransformations;
        public Builder() {}
        public Builder(WebAclRuleStatementRateBasedStatementCustomKeyCookie defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.textTransformations = defaults.textTransformations;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("WebAclRuleStatementRateBasedStatementCustomKeyCookie", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder textTransformations(List textTransformations) {
            if (textTransformations == null) {
              throw new MissingRequiredPropertyException("WebAclRuleStatementRateBasedStatementCustomKeyCookie", "textTransformations");
            }
            this.textTransformations = textTransformations;
            return this;
        }
        public Builder textTransformations(WebAclRuleStatementRateBasedStatementCustomKeyCookieTextTransformation... textTransformations) {
            return textTransformations(List.of(textTransformations));
        }
        public WebAclRuleStatementRateBasedStatementCustomKeyCookie build() {
            final var _resultValue = new WebAclRuleStatementRateBasedStatementCustomKeyCookie();
            _resultValue.name = name;
            _resultValue.textTransformations = textTransformations;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy