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

com.pulumi.azurenative.apimanagement.kotlin.inputs.BackendBaseParametersPoolArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.apimanagement.kotlin.inputs

import com.pulumi.azurenative.apimanagement.inputs.BackendBaseParametersPoolArgs.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 services The list of backend entities belonging to a pool.
 */
public data class BackendBaseParametersPoolArgs(
    public val services: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.apimanagement.inputs.BackendBaseParametersPoolArgs =
        com.pulumi.azurenative.apimanagement.inputs.BackendBaseParametersPoolArgs.builder()
            .services(
                services?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    /**
     * @param value The list of backend entities belonging to a pool.
     */
    @JvmName("gwqsiodcjxcmikos")
    public suspend fun services(`value`: Output>) {
        this.services = value
    }

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

    /**
     * @param values The list of backend entities belonging to a pool.
     */
    @JvmName("gkpoggtnewhaijim")
    public suspend fun services(values: List>) {
        this.services = Output.all(values)
    }

    /**
     * @param value The list of backend entities belonging to a pool.
     */
    @JvmName("tqirnolgcrdtxxaq")
    public suspend fun services(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.services = mapped
    }

    /**
     * @param argument The list of backend entities belonging to a pool.
     */
    @JvmName("rnuvcxijjstvbhvj")
    public suspend fun services(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BackendPoolItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.services = mapped
    }

    /**
     * @param argument The list of backend entities belonging to a pool.
     */
    @JvmName("ngfhoalenwstiuaa")
    public suspend fun services(vararg argument: suspend BackendPoolItemArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BackendPoolItemArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.services = mapped
    }

    /**
     * @param argument The list of backend entities belonging to a pool.
     */
    @JvmName("tywwwubmuudtwqhb")
    public suspend fun services(argument: suspend BackendPoolItemArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BackendPoolItemArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.services = mapped
    }

    /**
     * @param values The list of backend entities belonging to a pool.
     */
    @JvmName("qrnxisytqonmvksm")
    public suspend fun services(vararg values: BackendPoolItemArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.services = mapped
    }

    internal fun build(): BackendBaseParametersPoolArgs = BackendBaseParametersPoolArgs(
        services = services,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy