// *** 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.GatewayRouteSpecHttp2RouteMatchQueryParameterMatchArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GatewayRouteSpecHttp2RouteMatchQueryParameterArgs Empty = new GatewayRouteSpecHttp2RouteMatchQueryParameterArgs();

    /**
     * The query parameter to match on.
     * 
     */
    @Import(name="match")
    private @Nullable Output<GatewayRouteSpecHttp2RouteMatchQueryParameterMatchArgs> match;

    /**
     * @return The query parameter to match on.
     * 
     */
    public Optional<Output<GatewayRouteSpecHttp2RouteMatchQueryParameterMatchArgs>> match() {
        return Optional.ofNullable(this.match);
    }

    /**
     * Name for the query parameter that will be matched on.
     * 
     */
    @Import(name="name", required=true)
    private Output<String> name;

    /**
     * @return Name for the query parameter that will be matched on.
     * 
     */
    public Output<String> name() {
        return this.name;
    }

    private GatewayRouteSpecHttp2RouteMatchQueryParameterArgs() {}

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

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

    public static final class Builder {
        private GatewayRouteSpecHttp2RouteMatchQueryParameterArgs $;

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

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

        /**
         * @param match The query parameter to match on.
         * 
         * @return builder
         * 
         */
        public Builder match(@Nullable Output<GatewayRouteSpecHttp2RouteMatchQueryParameterMatchArgs> match) {
            $.match = match;
            return this;
        }

        /**
         * @param match The query parameter to match on.
         * 
         * @return builder
         * 
         */
        public Builder match(GatewayRouteSpecHttp2RouteMatchQueryParameterMatchArgs match) {
            return match(Output.of(match));
        }

        /**
         * @param name Name for the query parameter that will be matched on.
         * 
         * @return builder
         * 
         */
        public Builder name(Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name for the query parameter that will be matched on.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        public GatewayRouteSpecHttp2RouteMatchQueryParameterArgs build() {
            $.name = Objects.requireNonNull($.name, "expected parameter 'name' to be non-null");
            return $;
        }
    }

}
