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


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

    public static final GatewayRouteSpecHttp2RouteActionTargetVirtualServiceArgs Empty = new GatewayRouteSpecHttp2RouteActionTargetVirtualServiceArgs();

    /**
     * Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length.
     * 
     */
    @Import(name="virtualServiceName", required=true)
    private Output<String> virtualServiceName;

    /**
     * @return Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length.
     * 
     */
    public Output<String> virtualServiceName() {
        return this.virtualServiceName;
    }

    private GatewayRouteSpecHttp2RouteActionTargetVirtualServiceArgs() {}

    private GatewayRouteSpecHttp2RouteActionTargetVirtualServiceArgs(GatewayRouteSpecHttp2RouteActionTargetVirtualServiceArgs $) {
        this.virtualServiceName = $.virtualServiceName;
    }

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

    public static final class Builder {
        private GatewayRouteSpecHttp2RouteActionTargetVirtualServiceArgs $;

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

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

        /**
         * @param virtualServiceName Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder virtualServiceName(Output<String> virtualServiceName) {
            $.virtualServiceName = virtualServiceName;
            return this;
        }

        /**
         * @param virtualServiceName Name of the virtual service that traffic is routed to. Must be between 1 and 255 characters in length.
         * 
         * @return builder
         * 
         */
        public Builder virtualServiceName(String virtualServiceName) {
            return virtualServiceName(Output.of(virtualServiceName));
        }

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

}
