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

com.pulumi.aws.datapipeline.kotlin.inputs.PipelineDefinitionPipelineObjectArgs.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.datapipeline.kotlin.inputs

import com.pulumi.aws.datapipeline.inputs.PipelineDefinitionPipelineObjectArgs.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 fields Configuration block for Key-value pairs that define the properties of the object. See below
 * @property id ID of the object.
 * @property name ARN of the storage connector.
 */
public data class PipelineDefinitionPipelineObjectArgs(
    public val fields: Output>? = null,
    public val id: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.datapipeline.inputs.PipelineDefinitionPipelineObjectArgs =
        com.pulumi.aws.datapipeline.inputs.PipelineDefinitionPipelineObjectArgs.builder()
            .fields(fields?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .id(id.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var id: Output? = null

    private var name: Output? = null

    /**
     * @param value Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("netlwmiigirpldhu")
    public suspend fun fields(`value`: Output>) {
        this.fields = value
    }

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

    /**
     * @param values Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("egmdvuwpxmmcymlc")
    public suspend fun fields(values: List>) {
        this.fields = Output.all(values)
    }

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

    /**
     * @param value ARN of the storage connector.
     */
    @JvmName("wlkighyegpccbvrf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("sbelyfqbdaeybfqp")
    public suspend fun fields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fields = mapped
    }

    /**
     * @param argument Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("qgmhsnmmdkfpcavx")
    public suspend fun fields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipelineDefinitionPipelineObjectFieldArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param argument Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("fdtltjejxatluukr")
    public suspend fun fields(vararg argument: suspend PipelineDefinitionPipelineObjectFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipelineDefinitionPipelineObjectFieldArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param argument Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("mlkowcnvpcjufhhj")
    public suspend fun fields(argument: suspend PipelineDefinitionPipelineObjectFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PipelineDefinitionPipelineObjectFieldArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

    /**
     * @param values Configuration block for Key-value pairs that define the properties of the object. See below
     */
    @JvmName("libivdirwghprpuv")
    public suspend fun fields(vararg values: PipelineDefinitionPipelineObjectFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.fields = mapped
    }

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

    /**
     * @param value ARN of the storage connector.
     */
    @JvmName("atiusaginxkpeybo")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): PipelineDefinitionPipelineObjectArgs = PipelineDefinitionPipelineObjectArgs(
        fields = fields,
        id = id ?: throw PulumiNullFieldException("id"),
        name = name ?: throw PulumiNullFieldException("name"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy