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

com.pulumi.awsnative.ec2.kotlin.inputs.SpotFleetClassicLoadBalancersConfigArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.SpotFleetClassicLoadBalancersConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property classicLoadBalancers One or more Classic Load Balancers.
 */
public data class SpotFleetClassicLoadBalancersConfigArgs(
    public val classicLoadBalancers: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.SpotFleetClassicLoadBalancersConfigArgs =
        com.pulumi.awsnative.ec2.inputs.SpotFleetClassicLoadBalancersConfigArgs.builder()
            .classicLoadBalancers(
                classicLoadBalancers.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

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

    /**
     * @param value One or more Classic Load Balancers.
     */
    @JvmName("jaiqklffmfgapimm")
    public suspend fun classicLoadBalancers(`value`: Output>) {
        this.classicLoadBalancers = value
    }

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

    /**
     * @param values One or more Classic Load Balancers.
     */
    @JvmName("caapigvernngvwjk")
    public suspend fun classicLoadBalancers(values: List>) {
        this.classicLoadBalancers = Output.all(values)
    }

    /**
     * @param value One or more Classic Load Balancers.
     */
    @JvmName("qhbjmoxpitquotye")
    public suspend fun classicLoadBalancers(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classicLoadBalancers = mapped
    }

    /**
     * @param argument One or more Classic Load Balancers.
     */
    @JvmName("rdbbiilkxmnpdbpp")
    public suspend fun classicLoadBalancers(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpotFleetClassicLoadBalancerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.classicLoadBalancers = mapped
    }

    /**
     * @param argument One or more Classic Load Balancers.
     */
    @JvmName("itvqxkkflbanivli")
    public suspend fun classicLoadBalancers(vararg argument: suspend SpotFleetClassicLoadBalancerArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpotFleetClassicLoadBalancerArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.classicLoadBalancers = mapped
    }

    /**
     * @param argument One or more Classic Load Balancers.
     */
    @JvmName("owlordnujhxkhdaf")
    public suspend fun classicLoadBalancers(argument: suspend SpotFleetClassicLoadBalancerArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SpotFleetClassicLoadBalancerArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.classicLoadBalancers = mapped
    }

    /**
     * @param values One or more Classic Load Balancers.
     */
    @JvmName("bbpugsqebuwbllgp")
    public suspend fun classicLoadBalancers(vararg values: SpotFleetClassicLoadBalancerArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.classicLoadBalancers = mapped
    }

    internal fun build(): SpotFleetClassicLoadBalancersConfigArgs =
        SpotFleetClassicLoadBalancersConfigArgs(
            classicLoadBalancers = classicLoadBalancers ?: throw
                PulumiNullFieldException("classicLoadBalancers"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy