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

com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteMatchHeaderArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.appmesh.inputs;

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


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

    public static final RouteSpecHttp2RouteMatchHeaderArgs Empty = new RouteSpecHttp2RouteMatchHeaderArgs();

    /**
     * If `true`, the match is on the opposite of the `match` method and value. Default is `false`.
     * 
     */
    @Import(name="invert")
    private @Nullable Output invert;

    /**
     * @return If `true`, the match is on the opposite of the `match` method and value. Default is `false`.
     * 
     */
    public Optional> invert() {
        return Optional.ofNullable(this.invert);
    }

    /**
     * Method and value to match the header value sent with a request. Specify one match method.
     * 
     */
    @Import(name="match")
    private @Nullable Output match;

    /**
     * @return Method and value to match the header value sent with a request. Specify one match method.
     * 
     */
    public Optional> match() {
        return Optional.ofNullable(this.match);
    }

    /**
     * Name for the HTTP header in the client request that will be matched on.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name for the HTTP header in the client request that will be matched on.
     * 
     */
    public Output name() {
        return this.name;
    }

    private RouteSpecHttp2RouteMatchHeaderArgs() {}

    private RouteSpecHttp2RouteMatchHeaderArgs(RouteSpecHttp2RouteMatchHeaderArgs $) {
        this.invert = $.invert;
        this.match = $.match;
        this.name = $.name;
    }

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

    public static final class Builder {
        private RouteSpecHttp2RouteMatchHeaderArgs $;

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

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

        /**
         * @param invert If `true`, the match is on the opposite of the `match` method and value. Default is `false`.
         * 
         * @return builder
         * 
         */
        public Builder invert(@Nullable Output invert) {
            $.invert = invert;
            return this;
        }

        /**
         * @param invert If `true`, the match is on the opposite of the `match` method and value. Default is `false`.
         * 
         * @return builder
         * 
         */
        public Builder invert(Boolean invert) {
            return invert(Output.of(invert));
        }

        /**
         * @param match Method and value to match the header value sent with a request. Specify one match method.
         * 
         * @return builder
         * 
         */
        public Builder match(@Nullable Output match) {
            $.match = match;
            return this;
        }

        /**
         * @param match Method and value to match the header value sent with a request. Specify one match method.
         * 
         * @return builder
         * 
         */
        public Builder match(RouteSpecHttp2RouteMatchHeaderMatchArgs match) {
            return match(Output.of(match));
        }

        /**
         * @param name Name for the HTTP header in the client request that will be matched on.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name for the HTTP header in the client request that will be matched on.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy