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

com.pulumi.awsnative.datapipeline.kotlin.inputs.PipelineObjectArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.datapipeline.inputs.PipelineObjectArgs.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 Key-value pairs that define the properties of the object.
 * @property id The ID of the object.
 * @property name The name of the object.
 */
public data class PipelineObjectArgs(
    public val fields: Output>,
    public val id: Output,
    public val name: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datapipeline.inputs.PipelineObjectArgs =
        com.pulumi.awsnative.datapipeline.inputs.PipelineObjectArgs.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 [PipelineObjectArgs].
 */
@PulumiTagMarker
public class PipelineObjectArgsBuilder internal constructor() {
    private var fields: Output>? = null

    private var id: Output? = null

    private var name: Output? = null

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

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

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

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

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

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

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

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

    /**
     * @param argument Key-value pairs that define the properties of the object.
     */
    @JvmName("utlxvsemjthbvoef")
    public suspend fun fields(argument: suspend PipelineFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(PipelineFieldArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.fields = mapped
    }

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy