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

com.pulumi.gcp.networkservices.kotlin.inputs.LbTrafficExtensionExtensionChainArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkservices.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.LbTrafficExtensionExtensionChainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property extensions A set of extensions to execute for the matching request.
 * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
 * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
 * Structure is documented below.
 * @property matchCondition Conditions under which this chain is invoked for a request.
 * Structure is documented below.
 * @property name The name for this extension chain. The name is logged as part of the HTTP request logs.
 * The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens,
 * and can have a maximum length of 63 characters. Additionally, the first character must be a letter
 * and the last a letter or a number.
 */
public data class LbTrafficExtensionExtensionChainArgs(
    public val extensions: Output>,
    public val matchCondition: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.LbTrafficExtensionExtensionChainArgs = com.pulumi.gcp.networkservices.inputs.LbTrafficExtensionExtensionChainArgs.builder()
        .extensions(
            extensions.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .matchCondition(matchCondition.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LbTrafficExtensionExtensionChainArgs].
 */
@PulumiTagMarker
public class LbTrafficExtensionExtensionChainArgsBuilder internal constructor() {
    private var extensions: Output>? = null

    private var matchCondition: Output? = null

    private var name: Output? = null

    /**
     * @param value A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("ciisahtgpavddvwc")
    public suspend fun extensions(`value`: Output>) {
        this.extensions = value
    }

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

    /**
     * @param values A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("utvthbiciohiexaj")
    public suspend fun extensions(values: List>) {
        this.extensions = Output.all(values)
    }

    /**
     * @param value Conditions under which this chain is invoked for a request.
     * Structure is documented below.
     */
    @JvmName("rrhmtjwlmnkowsys")
    public suspend fun matchCondition(`value`: Output) {
        this.matchCondition = value
    }

    /**
     * @param value The name for this extension chain. The name is logged as part of the HTTP request logs.
     * The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens,
     * and can have a maximum length of 63 characters. Additionally, the first character must be a letter
     * and the last a letter or a number.
     */
    @JvmName("ateadnijkanyfitd")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("cdnkefdhnqubabpw")
    public suspend fun extensions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extensions = mapped
    }

    /**
     * @param argument A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("tvapyedgrvupgfvm")
    public suspend fun extensions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            LbTrafficExtensionExtensionChainExtensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.extensions = mapped
    }

    /**
     * @param argument A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("mvvirxeoomfguqkl")
    public suspend fun extensions(vararg argument: suspend LbTrafficExtensionExtensionChainExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            LbTrafficExtensionExtensionChainExtensionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.extensions = mapped
    }

    /**
     * @param argument A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("tydpyyjerljobcsl")
    public suspend fun extensions(argument: suspend LbTrafficExtensionExtensionChainExtensionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            LbTrafficExtensionExtensionChainExtensionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.extensions = mapped
    }

    /**
     * @param values A set of extensions to execute for the matching request.
     * At least one extension is required. Up to 3 extensions can be defined for each extension chain for
     * LbTrafficExtension resource. LbRouteExtension chains are limited to 1 extension per extension chain.
     * Structure is documented below.
     */
    @JvmName("tgqtiddiljhtxtnm")
    public suspend fun extensions(vararg values: LbTrafficExtensionExtensionChainExtensionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.extensions = mapped
    }

    /**
     * @param value Conditions under which this chain is invoked for a request.
     * Structure is documented below.
     */
    @JvmName("gmfkkfhchsppukif")
    public suspend fun matchCondition(`value`: LbTrafficExtensionExtensionChainMatchConditionArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.matchCondition = mapped
    }

    /**
     * @param argument Conditions under which this chain is invoked for a request.
     * Structure is documented below.
     */
    @JvmName("uavjsyotbrnxaodb")
    public suspend fun matchCondition(argument: suspend LbTrafficExtensionExtensionChainMatchConditionArgsBuilder.() -> Unit) {
        val toBeMapped = LbTrafficExtensionExtensionChainMatchConditionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.matchCondition = mapped
    }

    /**
     * @param value The name for this extension chain. The name is logged as part of the HTTP request logs.
     * The name must conform with RFC-1034, is restricted to lower-cased letters, numbers and hyphens,
     * and can have a maximum length of 63 characters. Additionally, the first character must be a letter
     * and the last a letter or a number.
     */
    @JvmName("hgbxqbgosembcllm")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): LbTrafficExtensionExtensionChainArgs = LbTrafficExtensionExtensionChainArgs(
        extensions = extensions ?: throw PulumiNullFieldException("extensions"),
        matchCondition = matchCondition ?: throw PulumiNullFieldException("matchCondition"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy