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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final XssMatchSetXssMatchTupleFieldToMatchArgs Empty = new XssMatchSetXssMatchTupleFieldToMatchArgs();

    /**
     * When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`.
     * 
     */
    @Import(name="data")
    private @Nullable Output data;

    /**
     * @return When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`.
     * 
     */
    public Optional> data() {
        return Optional.ofNullable(this.data);
    }

    /**
     * The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD`
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD`
     * 
     */
    public Output type() {
        return this.type;
    }

    private XssMatchSetXssMatchTupleFieldToMatchArgs() {}

    private XssMatchSetXssMatchTupleFieldToMatchArgs(XssMatchSetXssMatchTupleFieldToMatchArgs $) {
        this.data = $.data;
        this.type = $.type;
    }

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

    public static final class Builder {
        private XssMatchSetXssMatchTupleFieldToMatchArgs $;

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

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

        /**
         * @param data When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`.
         * 
         * @return builder
         * 
         */
        public Builder data(@Nullable Output data) {
            $.data = data;
            return this;
        }

        /**
         * @param data When the value of `type` is `HEADER`, enter the name of the header that you want the WAF to search, for example, `User-Agent` or `Referer`. If the value of `type` is any other value, omit `data`.
         * 
         * @return builder
         * 
         */
        public Builder data(String data) {
            return data(Output.of(data));
        }

        /**
         * @param type The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD`
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The part of the web request that you want AWS WAF to search for a specified stringE.g., `HEADER` or `METHOD`
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public XssMatchSetXssMatchTupleFieldToMatchArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("XssMatchSetXssMatchTupleFieldToMatchArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy