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

com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteActionRewriteArgs 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.appmesh.inputs;

import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteActionRewriteHostnameArgs;
import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteActionRewritePathArgs;
import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecHttp2RouteActionRewritePrefixArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GatewayRouteSpecHttp2RouteActionRewriteArgs Empty = new GatewayRouteSpecHttp2RouteActionRewriteArgs();

    /**
     * Host name to rewrite.
     * 
     */
    @Import(name="hostname")
    private @Nullable Output hostname;

    /**
     * @return Host name to rewrite.
     * 
     */
    public Optional> hostname() {
        return Optional.ofNullable(this.hostname);
    }

    /**
     * Exact path to rewrite.
     * 
     */
    @Import(name="path")
    private @Nullable Output path;

    /**
     * @return Exact path to rewrite.
     * 
     */
    public Optional> path() {
        return Optional.ofNullable(this.path);
    }

    /**
     * Specified beginning characters to rewrite.
     * 
     */
    @Import(name="prefix")
    private @Nullable Output prefix;

    /**
     * @return Specified beginning characters to rewrite.
     * 
     */
    public Optional> prefix() {
        return Optional.ofNullable(this.prefix);
    }

    private GatewayRouteSpecHttp2RouteActionRewriteArgs() {}

    private GatewayRouteSpecHttp2RouteActionRewriteArgs(GatewayRouteSpecHttp2RouteActionRewriteArgs $) {
        this.hostname = $.hostname;
        this.path = $.path;
        this.prefix = $.prefix;
    }

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

    public static final class Builder {
        private GatewayRouteSpecHttp2RouteActionRewriteArgs $;

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

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

        /**
         * @param hostname Host name to rewrite.
         * 
         * @return builder
         * 
         */
        public Builder hostname(@Nullable Output hostname) {
            $.hostname = hostname;
            return this;
        }

        /**
         * @param hostname Host name to rewrite.
         * 
         * @return builder
         * 
         */
        public Builder hostname(GatewayRouteSpecHttp2RouteActionRewriteHostnameArgs hostname) {
            return hostname(Output.of(hostname));
        }

        /**
         * @param path Exact path to rewrite.
         * 
         * @return builder
         * 
         */
        public Builder path(@Nullable Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path Exact path to rewrite.
         * 
         * @return builder
         * 
         */
        public Builder path(GatewayRouteSpecHttp2RouteActionRewritePathArgs path) {
            return path(Output.of(path));
        }

        /**
         * @param prefix Specified beginning characters to rewrite.
         * 
         * @return builder
         * 
         */
        public Builder prefix(@Nullable Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Specified beginning characters to rewrite.
         * 
         * @return builder
         * 
         */
        public Builder prefix(GatewayRouteSpecHttp2RouteActionRewritePrefixArgs prefix) {
            return prefix(Output.of(prefix));
        }

        public GatewayRouteSpecHttp2RouteActionRewriteArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy