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

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

package com.pulumi.gcp.apigateway.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.apigateway.inputs.ApiConfigGatewayConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property backendConfig Backend settings that are applied to all backends of the Gateway.
 * Structure is documented below.
 */
public data class ApiConfigGatewayConfigArgs(
    public val backendConfig: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.apigateway.inputs.ApiConfigGatewayConfigArgs =
        com.pulumi.gcp.apigateway.inputs.ApiConfigGatewayConfigArgs.builder()
            .backendConfig(backendConfig.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ApiConfigGatewayConfigArgs].
 */
@PulumiTagMarker
public class ApiConfigGatewayConfigArgsBuilder internal constructor() {
    private var backendConfig: Output? = null

    /**
     * @param value Backend settings that are applied to all backends of the Gateway.
     * Structure is documented below.
     */
    @JvmName("xnptmhdnxxckgcnk")
    public suspend fun backendConfig(`value`: Output) {
        this.backendConfig = value
    }

    /**
     * @param value Backend settings that are applied to all backends of the Gateway.
     * Structure is documented below.
     */
    @JvmName("ymbngeheitlqijve")
    public suspend fun backendConfig(`value`: ApiConfigGatewayConfigBackendConfigArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendConfig = mapped
    }

    /**
     * @param argument Backend settings that are applied to all backends of the Gateway.
     * Structure is documented below.
     */
    @JvmName("rxkxwdovvlscasgn")
    public suspend fun backendConfig(argument: suspend ApiConfigGatewayConfigBackendConfigArgsBuilder.() -> Unit) {
        val toBeMapped = ApiConfigGatewayConfigBackendConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.backendConfig = mapped
    }

    internal fun build(): ApiConfigGatewayConfigArgs = ApiConfigGatewayConfigArgs(
        backendConfig = backendConfig ?: throw PulumiNullFieldException("backendConfig"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy