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

com.pulumi.aws.datapipeline.kotlin.inputs.PipelineDefinitionParameterObjectArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.datapipeline.kotlin.inputs

import com.pulumi.aws.datapipeline.inputs.PipelineDefinitionParameterObjectArgs.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 Configuration block for attributes of the parameter object. See below
 * @property id ID of the parameter object.
 */
public data class PipelineDefinitionParameterObjectArgs(
    public val attributes: Output>? = null,
    public val id: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.datapipeline.inputs.PipelineDefinitionParameterObjectArgs =
        com.pulumi.aws.datapipeline.inputs.PipelineDefinitionParameterObjectArgs.builder()
            .attributes(
                attributes?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .id(id.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    /**
     * @param value Configuration block for attributes of the parameter object. See below
     */
    @JvmName("cwefyrpfxjphkgfg")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

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

    /**
     * @param values Configuration block for attributes of the parameter object. See below
     */
    @JvmName("flttgisiootofxys")
    public suspend fun attributes(values: List>) {
        this.attributes = Output.all(values)
    }

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

    /**
     * @param value Configuration block for attributes of the parameter object. See below
     */
    @JvmName("ifouwnqdtsfoxumt")
    public suspend fun attributes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param argument Configuration block for attributes of the parameter object. See below
     */
    @JvmName("luqlohantihmxcoe")
    public suspend fun attributes(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipelineDefinitionParameterObjectAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument Configuration block for attributes of the parameter object. See below
     */
    @JvmName("cbvtpftacjmhshtg")
    public suspend fun attributes(vararg argument: suspend PipelineDefinitionParameterObjectAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipelineDefinitionParameterObjectAttributeArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param argument Configuration block for attributes of the parameter object. See below
     */
    @JvmName("pcligixssoscfrey")
    public suspend fun attributes(argument: suspend PipelineDefinitionParameterObjectAttributeArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PipelineDefinitionParameterObjectAttributeArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.attributes = mapped
    }

    /**
     * @param values Configuration block for attributes of the parameter object. See below
     */
    @JvmName("gwvhbwsdfxdghkgx")
    public suspend fun attributes(vararg values: PipelineDefinitionParameterObjectAttributeArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy