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

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

import com.pulumi.aws.wafv2.outputs.RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern {
    /**
     * @return An empty configuration block that is used for inspecting all headers.
     * 
     */
    private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll all;
    private @Nullable List excludedCookies;
    private @Nullable List includedCookies;

    private RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern() {}
    /**
     * @return An empty configuration block that is used for inspecting all headers.
     * 
     */
    public Optional all() {
        return Optional.ofNullable(this.all);
    }
    public List excludedCookies() {
        return this.excludedCookies == null ? List.of() : this.excludedCookies;
    }
    public List includedCookies() {
        return this.includedCookies == null ? List.of() : this.includedCookies;
    }

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

    public static Builder builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll all;
        private @Nullable List excludedCookies;
        private @Nullable List includedCookies;
        public Builder() {}
        public Builder(RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.all = defaults.all;
    	      this.excludedCookies = defaults.excludedCookies;
    	      this.includedCookies = defaults.includedCookies;
        }

        @CustomType.Setter
        public Builder all(@Nullable RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPatternAll all) {

            this.all = all;
            return this;
        }
        @CustomType.Setter
        public Builder excludedCookies(@Nullable List excludedCookies) {

            this.excludedCookies = excludedCookies;
            return this;
        }
        public Builder excludedCookies(String... excludedCookies) {
            return excludedCookies(List.of(excludedCookies));
        }
        @CustomType.Setter
        public Builder includedCookies(@Nullable List includedCookies) {

            this.includedCookies = includedCookies;
            return this;
        }
        public Builder includedCookies(String... includedCookies) {
            return includedCookies(List.of(includedCookies));
        }
        public RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern build() {
            final var _resultValue = new RuleGroupRuleStatementByteMatchStatementFieldToMatchCookiesMatchPattern();
            _resultValue.all = all;
            _resultValue.excludedCookies = excludedCookies;
            _resultValue.includedCookies = includedCookies;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy