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

com.pulumi.gcp.composer.kotlin.inputs.EnvironmentConfigWebServerNetworkAccessControlArgs.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.composer.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.composer.inputs.EnvironmentConfigWebServerNetworkAccessControlArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property allowedIpRanges A collection of allowed IP ranges with descriptions.
 */
public data class EnvironmentConfigWebServerNetworkAccessControlArgs(
    public val allowedIpRanges: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.composer.inputs.EnvironmentConfigWebServerNetworkAccessControlArgs =
        com.pulumi.gcp.composer.inputs.EnvironmentConfigWebServerNetworkAccessControlArgs.builder()
            .allowedIpRanges(
                allowedIpRanges?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value A collection of allowed IP ranges with descriptions.
     */
    @JvmName("oercmlwcanihkqln")
    public suspend fun allowedIpRanges(`value`: Output>) {
        this.allowedIpRanges = value
    }

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

    /**
     * @param values A collection of allowed IP ranges with descriptions.
     */
    @JvmName("rmytgyjffedplmyy")
    public suspend fun allowedIpRanges(values: List>) {
        this.allowedIpRanges = Output.all(values)
    }

    /**
     * @param value A collection of allowed IP ranges with descriptions.
     */
    @JvmName("jtcdgngpwwehdxwp")
    public suspend fun allowedIpRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedIpRanges = mapped
    }

    /**
     * @param argument A collection of allowed IP ranges with descriptions.
     */
    @JvmName("kptbttdpnnswybyi")
    public suspend fun allowedIpRanges(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedIpRanges = mapped
    }

    /**
     * @param argument A collection of allowed IP ranges with descriptions.
     */
    @JvmName("edxfqwjmjgoailyc")
    public suspend fun allowedIpRanges(vararg argument: suspend EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedIpRanges = mapped
    }

    /**
     * @param argument A collection of allowed IP ranges with descriptions.
     */
    @JvmName("rxpvbcrtnujyqidb")
    public suspend fun allowedIpRanges(argument: suspend EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.allowedIpRanges = mapped
    }

    /**
     * @param values A collection of allowed IP ranges with descriptions.
     */
    @JvmName("hpsuixpwplojampo")
    public suspend fun allowedIpRanges(vararg values: EnvironmentConfigWebServerNetworkAccessControlAllowedIpRangeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedIpRanges = mapped
    }

    internal fun build(): EnvironmentConfigWebServerNetworkAccessControlArgs =
        EnvironmentConfigWebServerNetworkAccessControlArgs(
            allowedIpRanges = allowedIpRanges,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy