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

com.pulumi.aws.appmesh.inputs.RouteSpecArgs 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.RouteSpecGrpcRouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecHttpRouteArgs;
import com.pulumi.aws.appmesh.inputs.RouteSpecTcpRouteArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final RouteSpecArgs Empty = new RouteSpecArgs();

    /**
     * GRPC routing information for the route.
     * 
     */
    @Import(name="grpcRoute")
    private @Nullable Output grpcRoute;

    /**
     * @return GRPC routing information for the route.
     * 
     */
    public Optional> grpcRoute() {
        return Optional.ofNullable(this.grpcRoute);
    }

    /**
     * HTTP/2 routing information for the route.
     * 
     */
    @Import(name="http2Route")
    private @Nullable Output http2Route;

    /**
     * @return HTTP/2 routing information for the route.
     * 
     */
    public Optional> http2Route() {
        return Optional.ofNullable(this.http2Route);
    }

    /**
     * HTTP routing information for the route.
     * 
     */
    @Import(name="httpRoute")
    private @Nullable Output httpRoute;

    /**
     * @return HTTP routing information for the route.
     * 
     */
    public Optional> httpRoute() {
        return Optional.ofNullable(this.httpRoute);
    }

    /**
     * Priority for the route, between `0` and `1000`.
     * Routes are matched based on the specified value, where `0` is the highest priority.
     * 
     */
    @Import(name="priority")
    private @Nullable Output priority;

    /**
     * @return Priority for the route, between `0` and `1000`.
     * Routes are matched based on the specified value, where `0` is the highest priority.
     * 
     */
    public Optional> priority() {
        return Optional.ofNullable(this.priority);
    }

    /**
     * TCP routing information for the route.
     * 
     */
    @Import(name="tcpRoute")
    private @Nullable Output tcpRoute;

    /**
     * @return TCP routing information for the route.
     * 
     */
    public Optional> tcpRoute() {
        return Optional.ofNullable(this.tcpRoute);
    }

    private RouteSpecArgs() {}

    private RouteSpecArgs(RouteSpecArgs $) {
        this.grpcRoute = $.grpcRoute;
        this.http2Route = $.http2Route;
        this.httpRoute = $.httpRoute;
        this.priority = $.priority;
        this.tcpRoute = $.tcpRoute;
    }

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

    public static final class Builder {
        private RouteSpecArgs $;

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

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

        /**
         * @param grpcRoute GRPC routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder grpcRoute(@Nullable Output grpcRoute) {
            $.grpcRoute = grpcRoute;
            return this;
        }

        /**
         * @param grpcRoute GRPC routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder grpcRoute(RouteSpecGrpcRouteArgs grpcRoute) {
            return grpcRoute(Output.of(grpcRoute));
        }

        /**
         * @param http2Route HTTP/2 routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder http2Route(@Nullable Output http2Route) {
            $.http2Route = http2Route;
            return this;
        }

        /**
         * @param http2Route HTTP/2 routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder http2Route(RouteSpecHttp2RouteArgs http2Route) {
            return http2Route(Output.of(http2Route));
        }

        /**
         * @param httpRoute HTTP routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder httpRoute(@Nullable Output httpRoute) {
            $.httpRoute = httpRoute;
            return this;
        }

        /**
         * @param httpRoute HTTP routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder httpRoute(RouteSpecHttpRouteArgs httpRoute) {
            return httpRoute(Output.of(httpRoute));
        }

        /**
         * @param priority Priority for the route, between `0` and `1000`.
         * Routes are matched based on the specified value, where `0` is the highest priority.
         * 
         * @return builder
         * 
         */
        public Builder priority(@Nullable Output priority) {
            $.priority = priority;
            return this;
        }

        /**
         * @param priority Priority for the route, between `0` and `1000`.
         * Routes are matched based on the specified value, where `0` is the highest priority.
         * 
         * @return builder
         * 
         */
        public Builder priority(Integer priority) {
            return priority(Output.of(priority));
        }

        /**
         * @param tcpRoute TCP routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder tcpRoute(@Nullable Output tcpRoute) {
            $.tcpRoute = tcpRoute;
            return this;
        }

        /**
         * @param tcpRoute TCP routing information for the route.
         * 
         * @return builder
         * 
         */
        public Builder tcpRoute(RouteSpecTcpRouteArgs tcpRoute) {
            return tcpRoute(Output.of(tcpRoute));
        }

        public RouteSpecArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy