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

com.pulumi.awsnative.datapipeline.kotlin.inputs.PipelineParameterObjectArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.datapipeline.kotlin.inputs

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

/**
 *
 * @property attributes The attributes of the parameter object.
 * @property id The ID of the parameter object.
 */
public data class PipelineParameterObjectArgs(
    public val attributes: Output>,
    public val id: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datapipeline.inputs.PipelineParameterObjectArgs =
        com.pulumi.awsnative.datapipeline.inputs.PipelineParameterObjectArgs.builder()
            .attributes(
                attributes.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .id(id.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    /**
     * @param value The attributes of the parameter object.
     */
    @JvmName("mhqtqcjoxmplqgtx")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

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

    /**
     * @param values The attributes of the parameter object.
     */
    @JvmName("ldkibtblcgdebpyj")
    public suspend fun attributes(values: List>) {
        this.attributes = Output.all(values)
    }

    /**
     * @param value The ID of the parameter object.
     */
    @JvmName("gilkrlhqyimcgayp")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value The attributes of the parameter object.
     */
    @JvmName("gwkcecnfyektyetj")
    public suspend fun attributes(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the parameter object.
     */
    @JvmName("ehkhtkhubqxfctej")
    public suspend fun attributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipelineParameterAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the parameter object.
     */
    @JvmName("upcparpxhsioixnf")
    public suspend fun attributes(vararg argument: suspend PipelineParameterAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipelineParameterAttributeArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument The attributes of the parameter object.
     */
    @JvmName("crsvndqahhgolsbm")
    public suspend fun attributes(argument: suspend PipelineParameterAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PipelineParameterAttributeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param values The attributes of the parameter object.
     */
    @JvmName("kvegamigmmipgall")
    public suspend fun attributes(vararg values: PipelineParameterAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param value The ID of the parameter object.
     */
    @JvmName("thovcdugrpscotdr")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    internal fun build(): PipelineParameterObjectArgs = PipelineParameterObjectArgs(
        attributes = attributes ?: throw PulumiNullFieldException("attributes"),
        id = id ?: throw PulumiNullFieldException("id"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy