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

com.pulumi.azure.network.kotlin.inputs.VpnServerConfigurationRadiusArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin.inputs

import com.pulumi.azure.network.inputs.VpnServerConfigurationRadiusArgs.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.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property clientRootCertificates One or more `client_root_certificate` blocks as defined below.
 * @property serverRootCertificates One or more `server_root_certificate` blocks as defined below.
 * @property servers One or more `server` blocks as defined below.
 */
public data class VpnServerConfigurationRadiusArgs(
    public val clientRootCertificates: Output>? = null,
    public val serverRootCertificates: Output>? = null,
    public val servers: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.inputs.VpnServerConfigurationRadiusArgs =
        com.pulumi.azure.network.inputs.VpnServerConfigurationRadiusArgs.builder()
            .clientRootCertificates(
                clientRootCertificates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .serverRootCertificates(
                serverRootCertificates?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .servers(
                servers?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var serverRootCertificates:
        Output>? = null

    private var servers: Output>? = null

    /**
     * @param value One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("rsmcvgxuknnpdvkl")
    public suspend fun clientRootCertificates(`value`: Output>) {
        this.clientRootCertificates = value
    }

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

    /**
     * @param values One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("shcekfbehwmeearl")
    public suspend fun clientRootCertificates(values: List>) {
        this.clientRootCertificates = Output.all(values)
    }

    /**
     * @param value One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("eycldnhardbgrkwt")
    public suspend fun serverRootCertificates(`value`: Output>) {
        this.serverRootCertificates = value
    }

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

    /**
     * @param values One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("cdmhxarvivhvlfkw")
    public suspend fun serverRootCertificates(values: List>) {
        this.serverRootCertificates = Output.all(values)
    }

    /**
     * @param value One or more `server` blocks as defined below.
     */
    @JvmName("lsojnltxddasinmd")
    public suspend fun servers(`value`: Output>) {
        this.servers = value
    }

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

    /**
     * @param values One or more `server` blocks as defined below.
     */
    @JvmName("irjbmkgueoytjsav")
    public suspend fun servers(values: List>) {
        this.servers = Output.all(values)
    }

    /**
     * @param value One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("seuqfherxbxuhwyq")
    public suspend fun clientRootCertificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.clientRootCertificates = mapped
    }

    /**
     * @param argument One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("rjkbokeuppsjdiqi")
    public suspend fun clientRootCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VpnServerConfigurationRadiusClientRootCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.clientRootCertificates = mapped
    }

    /**
     * @param argument One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("ppyyetflmyrtnwbi")
    public suspend fun clientRootCertificates(vararg argument: suspend VpnServerConfigurationRadiusClientRootCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VpnServerConfigurationRadiusClientRootCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.clientRootCertificates = mapped
    }

    /**
     * @param argument One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("uehnnupfnoeojlgj")
    public suspend fun clientRootCertificates(argument: suspend VpnServerConfigurationRadiusClientRootCertificateArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VpnServerConfigurationRadiusClientRootCertificateArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.clientRootCertificates = mapped
    }

    /**
     * @param values One or more `client_root_certificate` blocks as defined below.
     */
    @JvmName("ulakmlhmqrttaeim")
    public suspend fun clientRootCertificates(vararg values: VpnServerConfigurationRadiusClientRootCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientRootCertificates = mapped
    }

    /**
     * @param value One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("aqafjpwmnubwhxtg")
    public suspend fun serverRootCertificates(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.serverRootCertificates = mapped
    }

    /**
     * @param argument One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("btxnuevqgeopkwdj")
    public suspend fun serverRootCertificates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VpnServerConfigurationRadiusServerRootCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serverRootCertificates = mapped
    }

    /**
     * @param argument One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("ahmkoryngakklrie")
    public suspend fun serverRootCertificates(vararg argument: suspend VpnServerConfigurationRadiusServerRootCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VpnServerConfigurationRadiusServerRootCertificateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serverRootCertificates = mapped
    }

    /**
     * @param argument One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("rfrdeaaugclgbkky")
    public suspend fun serverRootCertificates(argument: suspend VpnServerConfigurationRadiusServerRootCertificateArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                VpnServerConfigurationRadiusServerRootCertificateArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.serverRootCertificates = mapped
    }

    /**
     * @param values One or more `server_root_certificate` blocks as defined below.
     */
    @JvmName("hptlmhyqcqgpledy")
    public suspend fun serverRootCertificates(vararg values: VpnServerConfigurationRadiusServerRootCertificateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serverRootCertificates = mapped
    }

    /**
     * @param value One or more `server` blocks as defined below.
     */
    @JvmName("cjrgfarhbplwxoji")
    public suspend fun servers(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servers = mapped
    }

    /**
     * @param argument One or more `server` blocks as defined below.
     */
    @JvmName("bmysykyarmlccicq")
    public suspend fun servers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VpnServerConfigurationRadiusServerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.servers = mapped
    }

    /**
     * @param argument One or more `server` blocks as defined below.
     */
    @JvmName("lyhkbuaffwxxjbyy")
    public suspend fun servers(vararg argument: suspend VpnServerConfigurationRadiusServerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VpnServerConfigurationRadiusServerArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.servers = mapped
    }

    /**
     * @param argument One or more `server` blocks as defined below.
     */
    @JvmName("wgdkfrpxomntddmm")
    public suspend fun servers(argument: suspend VpnServerConfigurationRadiusServerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VpnServerConfigurationRadiusServerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.servers = mapped
    }

    /**
     * @param values One or more `server` blocks as defined below.
     */
    @JvmName("fyivmsrdjohthdks")
    public suspend fun servers(vararg values: VpnServerConfigurationRadiusServerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servers = mapped
    }

    internal fun build(): VpnServerConfigurationRadiusArgs = VpnServerConfigurationRadiusArgs(
        clientRootCertificates = clientRootCertificates,
        serverRootCertificates = serverRootCertificates,
        servers = servers,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy