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

com.pulumi.aws.synthetics.kotlin.inputs.GetRuntimeVersionsPlainArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.synthetics.kotlin.inputs

import com.pulumi.aws.synthetics.inputs.GetRuntimeVersionsPlainArgs.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

/**
 * A collection of arguments for invoking getRuntimeVersions.
 * @property runtimeVersions List of runtime versions. See `runtime_versions` attribute reference.
 */
public data class GetRuntimeVersionsPlainArgs(
    public val runtimeVersions: List? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.synthetics.inputs.GetRuntimeVersionsPlainArgs =
        com.pulumi.aws.synthetics.inputs.GetRuntimeVersionsPlainArgs.builder()
            .runtimeVersions(
                runtimeVersions?.let({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [GetRuntimeVersionsPlainArgs].
 */
@PulumiTagMarker
public class GetRuntimeVersionsPlainArgsBuilder internal constructor() {
    private var runtimeVersions: List? = null

    /**
     * @param value List of runtime versions. See `runtime_versions` attribute reference.
     */
    @JvmName("btxofghuwhkerngi")
    public suspend fun runtimeVersions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.runtimeVersions = mapped
    }

    /**
     * @param argument List of runtime versions. See `runtime_versions` attribute reference.
     */
    @JvmName("usrsxumqafecbcfr")
    public suspend fun runtimeVersions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetRuntimeVersionsRuntimeVersionBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.runtimeVersions = mapped
    }

    /**
     * @param argument List of runtime versions. See `runtime_versions` attribute reference.
     */
    @JvmName("lvkbfbjtshwypxru")
    public suspend fun runtimeVersions(vararg argument: suspend GetRuntimeVersionsRuntimeVersionBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetRuntimeVersionsRuntimeVersionBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = toBeMapped
        this.runtimeVersions = mapped
    }

    /**
     * @param argument List of runtime versions. See `runtime_versions` attribute reference.
     */
    @JvmName("xyqpsyriicsregtg")
    public suspend fun runtimeVersions(argument: suspend GetRuntimeVersionsRuntimeVersionBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GetRuntimeVersionsRuntimeVersionBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = toBeMapped
        this.runtimeVersions = mapped
    }

    /**
     * @param values List of runtime versions. See `runtime_versions` attribute reference.
     */
    @JvmName("smuqpfguhvehavjl")
    public suspend fun runtimeVersions(vararg values: GetRuntimeVersionsRuntimeVersion) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.runtimeVersions = mapped
    }

    internal fun build(): GetRuntimeVersionsPlainArgs = GetRuntimeVersionsPlainArgs(
        runtimeVersions = runtimeVersions,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy