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

com.pulumi.aws.wafregional.RegexMatchSetArgs 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.wafregional;

import com.pulumi.aws.wafregional.inputs.RegexMatchSetRegexMatchTupleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RegexMatchSetArgs Empty = new RegexMatchSetArgs();

    /**
     * The name or description of the Regex Match Set.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name or description of the Regex Match Set.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below.
     * 
     */
    @Import(name="regexMatchTuples")
    private @Nullable Output> regexMatchTuples;

    /**
     * @return The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below.
     * 
     */
    public Optional>> regexMatchTuples() {
        return Optional.ofNullable(this.regexMatchTuples);
    }

    private RegexMatchSetArgs() {}

    private RegexMatchSetArgs(RegexMatchSetArgs $) {
        this.name = $.name;
        this.regexMatchTuples = $.regexMatchTuples;
    }

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

    public static final class Builder {
        private RegexMatchSetArgs $;

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

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

        /**
         * @param name The name or description of the Regex Match Set.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name or description of the Regex Match Set.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param regexMatchTuples The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below.
         * 
         * @return builder
         * 
         */
        public Builder regexMatchTuples(@Nullable Output> regexMatchTuples) {
            $.regexMatchTuples = regexMatchTuples;
            return this;
        }

        /**
         * @param regexMatchTuples The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below.
         * 
         * @return builder
         * 
         */
        public Builder regexMatchTuples(List regexMatchTuples) {
            return regexMatchTuples(Output.of(regexMatchTuples));
        }

        /**
         * @param regexMatchTuples The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below.
         * 
         * @return builder
         * 
         */
        public Builder regexMatchTuples(RegexMatchSetRegexMatchTupleArgs... regexMatchTuples) {
            return regexMatchTuples(List.of(regexMatchTuples));
        }

        public RegexMatchSetArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy