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

com.pulumi.aws.appmesh.kotlin.inputs.GatewayRouteSpecArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.appmesh.kotlin.inputs

import com.pulumi.aws.appmesh.inputs.GatewayRouteSpecArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property grpcRoute Specification of a gRPC gateway route.
 * @property http2Route Specification of an HTTP/2 gateway route.
 * @property httpRoute Specification of an HTTP gateway route.
 * @property priority Priority for the gateway route, between `0` and `1000`.
 */
public data class GatewayRouteSpecArgs(
    public val grpcRoute: Output? = null,
    public val http2Route: Output? = null,
    public val httpRoute: Output? = null,
    public val priority: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appmesh.inputs.GatewayRouteSpecArgs =
        com.pulumi.aws.appmesh.inputs.GatewayRouteSpecArgs.builder()
            .grpcRoute(grpcRoute?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .http2Route(http2Route?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .httpRoute(httpRoute?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .priority(priority?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GatewayRouteSpecArgs].
 */
@PulumiTagMarker
public class GatewayRouteSpecArgsBuilder internal constructor() {
    private var grpcRoute: Output? = null

    private var http2Route: Output? = null

    private var httpRoute: Output? = null

    private var priority: Output? = null

    /**
     * @param value Specification of a gRPC gateway route.
     */
    @JvmName("tbtncurftvihircg")
    public suspend fun grpcRoute(`value`: Output) {
        this.grpcRoute = value
    }

    /**
     * @param value Specification of an HTTP/2 gateway route.
     */
    @JvmName("nytjawjuwqpxpbss")
    public suspend fun http2Route(`value`: Output) {
        this.http2Route = value
    }

    /**
     * @param value Specification of an HTTP gateway route.
     */
    @JvmName("aytmqswbkyyqrqwc")
    public suspend fun httpRoute(`value`: Output) {
        this.httpRoute = value
    }

    /**
     * @param value Priority for the gateway route, between `0` and `1000`.
     */
    @JvmName("yilngfpxqpbieter")
    public suspend fun priority(`value`: Output) {
        this.priority = value
    }

    /**
     * @param value Specification of a gRPC gateway route.
     */
    @JvmName("qljfmgmjldiaqlyd")
    public suspend fun grpcRoute(`value`: GatewayRouteSpecGrpcRouteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.grpcRoute = mapped
    }

    /**
     * @param argument Specification of a gRPC gateway route.
     */
    @JvmName("gtsishnqjwxtmrhg")
    public suspend fun grpcRoute(argument: suspend GatewayRouteSpecGrpcRouteArgsBuilder.() -> Unit) {
        val toBeMapped = GatewayRouteSpecGrpcRouteArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.grpcRoute = mapped
    }

    /**
     * @param value Specification of an HTTP/2 gateway route.
     */
    @JvmName("loaqmyhmqckbucij")
    public suspend fun http2Route(`value`: GatewayRouteSpecHttp2RouteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.http2Route = mapped
    }

    /**
     * @param argument Specification of an HTTP/2 gateway route.
     */
    @JvmName("gaafkyxreblhhebf")
    public suspend fun http2Route(argument: suspend GatewayRouteSpecHttp2RouteArgsBuilder.() -> Unit) {
        val toBeMapped = GatewayRouteSpecHttp2RouteArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.http2Route = mapped
    }

    /**
     * @param value Specification of an HTTP gateway route.
     */
    @JvmName("ibdhukakjofgpocr")
    public suspend fun httpRoute(`value`: GatewayRouteSpecHttpRouteArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.httpRoute = mapped
    }

    /**
     * @param argument Specification of an HTTP gateway route.
     */
    @JvmName("oulfejhxowlodtao")
    public suspend fun httpRoute(argument: suspend GatewayRouteSpecHttpRouteArgsBuilder.() -> Unit) {
        val toBeMapped = GatewayRouteSpecHttpRouteArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.httpRoute = mapped
    }

    /**
     * @param value Priority for the gateway route, between `0` and `1000`.
     */
    @JvmName("iyqgbitchswonnqu")
    public suspend fun priority(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.priority = mapped
    }

    internal fun build(): GatewayRouteSpecArgs = GatewayRouteSpecArgs(
        grpcRoute = grpcRoute,
        http2Route = http2Route,
        httpRoute = httpRoute,
        priority = priority,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy