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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.ContainerRecipeComponentParameterArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeComponentParameterArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Contains a key/value pair that sets the named component parameter.
 * @property name The name of the component parameter to set.
 * @property value Sets the value for the named component parameter.
 */
public data class ContainerRecipeComponentParameterArgs(
    public val name: Output,
    public val `value`: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeComponentParameterArgs =
        com.pulumi.awsnative.imagebuilder.inputs.ContainerRecipeComponentParameterArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .`value`(`value`.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ContainerRecipeComponentParameterArgs].
 */
@PulumiTagMarker
public class ContainerRecipeComponentParameterArgsBuilder internal constructor() {
    private var name: Output? = null

    private var `value`: Output>? = null

    /**
     * @param value The name of the component parameter to set.
     */
    @JvmName("dgdmodpotsqwetyt")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Sets the value for the named component parameter.
     */
    @JvmName("nhkarnxqgqhbpqsu")
    public suspend fun `value`(`value`: Output>) {
        this.`value` = value
    }

    @JvmName("bcrlpeksbfeboife")
    public suspend fun `value`(vararg values: Output) {
        this.`value` = Output.all(values.asList())
    }

    /**
     * @param values Sets the value for the named component parameter.
     */
    @JvmName("igaomdctiwbfwcwa")
    public suspend fun `value`(values: List>) {
        this.`value` = Output.all(values)
    }

    /**
     * @param value The name of the component parameter to set.
     */
    @JvmName("cqbmefesnmfekveq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Sets the value for the named component parameter.
     */
    @JvmName("tallwjvxohgnykps")
    public suspend fun `value`(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    /**
     * @param values Sets the value for the named component parameter.
     */
    @JvmName("skeloutlljmftoen")
    public suspend fun `value`(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`value` = mapped
    }

    internal fun build(): ContainerRecipeComponentParameterArgs =
        ContainerRecipeComponentParameterArgs(
            name = name ?: throw PulumiNullFieldException("name"),
            `value` = `value` ?: throw PulumiNullFieldException("value"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy