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

com.pulumi.aws.waf.XssMatchSetArgs 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.waf;

import com.pulumi.aws.waf.inputs.XssMatchSetXssMatchTupleArgs;
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 XssMatchSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final XssMatchSetArgs Empty = new XssMatchSetArgs();

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

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

    /**
     * The parts of web requests that you want to inspect for cross-site scripting attacks.
     * 
     */
    @Import(name="xssMatchTuples")
    private @Nullable Output> xssMatchTuples;

    /**
     * @return The parts of web requests that you want to inspect for cross-site scripting attacks.
     * 
     */
    public Optional>> xssMatchTuples() {
        return Optional.ofNullable(this.xssMatchTuples);
    }

    private XssMatchSetArgs() {}

    private XssMatchSetArgs(XssMatchSetArgs $) {
        this.name = $.name;
        this.xssMatchTuples = $.xssMatchTuples;
    }

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

    public static final class Builder {
        private XssMatchSetArgs $;

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

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

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

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

        /**
         * @param xssMatchTuples The parts of web requests that you want to inspect for cross-site scripting attacks.
         * 
         * @return builder
         * 
         */
        public Builder xssMatchTuples(@Nullable Output> xssMatchTuples) {
            $.xssMatchTuples = xssMatchTuples;
            return this;
        }

        /**
         * @param xssMatchTuples The parts of web requests that you want to inspect for cross-site scripting attacks.
         * 
         * @return builder
         * 
         */
        public Builder xssMatchTuples(List xssMatchTuples) {
            return xssMatchTuples(Output.of(xssMatchTuples));
        }

        /**
         * @param xssMatchTuples The parts of web requests that you want to inspect for cross-site scripting attacks.
         * 
         * @return builder
         * 
         */
        public Builder xssMatchTuples(XssMatchSetXssMatchTupleArgs... xssMatchTuples) {
            return xssMatchTuples(List.of(xssMatchTuples));
        }

        public XssMatchSetArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy