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

com.pulumi.azurenative.appplatform.kotlin.inputs.GatewayApiRouteArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.appplatform.kotlin.inputs

import com.pulumi.azurenative.appplatform.inputs.GatewayApiRouteArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * API route config of the Spring Cloud Gateway
 * @property description A description, will be applied to methods in the generated OpenAPI documentation.
 * @property filters To modify the request before sending it to the target endpoint, or the received response.
 * @property order Route processing order.
 * @property predicates A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
 * @property ssoEnabled Enable sso validation.
 * @property tags Classification tags, will be applied to methods in the generated OpenAPI documentation.
 * @property title A title, will be applied to methods in the generated OpenAPI documentation.
 * @property tokenRelay Pass currently-authenticated user's identity token to application service, default is 'false'
 * @property uri Full uri, will override `appName`.
 */
public data class GatewayApiRouteArgs(
    public val description: Output? = null,
    public val filters: Output>? = null,
    public val order: Output? = null,
    public val predicates: Output>? = null,
    public val ssoEnabled: Output? = null,
    public val tags: Output>? = null,
    public val title: Output? = null,
    public val tokenRelay: Output? = null,
    public val uri: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.appplatform.inputs.GatewayApiRouteArgs =
        com.pulumi.azurenative.appplatform.inputs.GatewayApiRouteArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .filters(filters?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .order(order?.applyValue({ args0 -> args0 }))
            .predicates(predicates?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .ssoEnabled(ssoEnabled?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .title(title?.applyValue({ args0 -> args0 }))
            .tokenRelay(tokenRelay?.applyValue({ args0 -> args0 }))
            .uri(uri?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [GatewayApiRouteArgs].
 */
@PulumiTagMarker
public class GatewayApiRouteArgsBuilder internal constructor() {
    private var description: Output? = null

    private var filters: Output>? = null

    private var order: Output? = null

    private var predicates: Output>? = null

    private var ssoEnabled: Output? = null

    private var tags: Output>? = null

    private var title: Output? = null

    private var tokenRelay: Output? = null

    private var uri: Output? = null

    /**
     * @param value A description, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("ysokgqknsrgophaq")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value To modify the request before sending it to the target endpoint, or the received response.
     */
    @JvmName("lbarrpfbtxfsnytf")
    public suspend fun filters(`value`: Output>) {
        this.filters = value
    }

    @JvmName("worlnnsqyskscddn")
    public suspend fun filters(vararg values: Output) {
        this.filters = Output.all(values.asList())
    }

    /**
     * @param values To modify the request before sending it to the target endpoint, or the received response.
     */
    @JvmName("wjrwiuusbjqsadtp")
    public suspend fun filters(values: List>) {
        this.filters = Output.all(values)
    }

    /**
     * @param value Route processing order.
     */
    @JvmName("rlqevischityjbug")
    public suspend fun order(`value`: Output) {
        this.order = value
    }

    /**
     * @param value A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
     */
    @JvmName("fismkrxrwsjtmair")
    public suspend fun predicates(`value`: Output>) {
        this.predicates = value
    }

    @JvmName("jjgmfxtvrbeepsof")
    public suspend fun predicates(vararg values: Output) {
        this.predicates = Output.all(values.asList())
    }

    /**
     * @param values A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
     */
    @JvmName("miuifgdubqufvosy")
    public suspend fun predicates(values: List>) {
        this.predicates = Output.all(values)
    }

    /**
     * @param value Enable sso validation.
     */
    @JvmName("puneebbcqbahouuy")
    public suspend fun ssoEnabled(`value`: Output) {
        this.ssoEnabled = value
    }

    /**
     * @param value Classification tags, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("jtvxvyknotyktugf")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    @JvmName("ludbxyjttktcptbq")
    public suspend fun tags(vararg values: Output) {
        this.tags = Output.all(values.asList())
    }

    /**
     * @param values Classification tags, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("pitlduwkbngmgkfb")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A title, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("sxodlqjjgbmdlthy")
    public suspend fun title(`value`: Output) {
        this.title = value
    }

    /**
     * @param value Pass currently-authenticated user's identity token to application service, default is 'false'
     */
    @JvmName("lqjcyjcufakecyok")
    public suspend fun tokenRelay(`value`: Output) {
        this.tokenRelay = value
    }

    /**
     * @param value Full uri, will override `appName`.
     */
    @JvmName("rnwbbfsjwomcnnqb")
    public suspend fun uri(`value`: Output) {
        this.uri = value
    }

    /**
     * @param value A description, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("ocfowjmludueetcr")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value To modify the request before sending it to the target endpoint, or the received response.
     */
    @JvmName("gwqathggfuvceqpw")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param values To modify the request before sending it to the target endpoint, or the received response.
     */
    @JvmName("uisgwfaqekbjvwan")
    public suspend fun filters(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param value Route processing order.
     */
    @JvmName("boogtgrhyokxtiyc")
    public suspend fun order(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.order = mapped
    }

    /**
     * @param value A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
     */
    @JvmName("caaqpdrgkjjblwna")
    public suspend fun predicates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.predicates = mapped
    }

    /**
     * @param values A number of conditions to evaluate a route for each request. Each predicate may be evaluated against request headers and parameter values. All of the predicates associated with a route must evaluate to true for the route to be matched to the request.
     */
    @JvmName("cxqqhisuitqjrmft")
    public suspend fun predicates(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.predicates = mapped
    }

    /**
     * @param value Enable sso validation.
     */
    @JvmName("mtbtwdxflplvpgqc")
    public suspend fun ssoEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ssoEnabled = mapped
    }

    /**
     * @param value Classification tags, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("wgushgelcgdakosx")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Classification tags, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("erxeyscgluprsjif")
    public suspend fun tags(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A title, will be applied to methods in the generated OpenAPI documentation.
     */
    @JvmName("xphdfwunbduonpib")
    public suspend fun title(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.title = mapped
    }

    /**
     * @param value Pass currently-authenticated user's identity token to application service, default is 'false'
     */
    @JvmName("fqhukkoulnisqlvt")
    public suspend fun tokenRelay(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tokenRelay = mapped
    }

    /**
     * @param value Full uri, will override `appName`.
     */
    @JvmName("oueakxofijhtegms")
    public suspend fun uri(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.uri = mapped
    }

    internal fun build(): GatewayApiRouteArgs = GatewayApiRouteArgs(
        description = description,
        filters = filters,
        order = order,
        predicates = predicates,
        ssoEnabled = ssoEnabled,
        tags = tags,
        title = title,
        tokenRelay = tokenRelay,
        uri = uri,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy