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

com.pulumi.awsnative.iotanalytics.kotlin.inputs.PipelineAddAttributesArgs.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.iotanalytics.kotlin.inputs

import com.pulumi.awsnative.iotanalytics.inputs.PipelineAddAttributesArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property attributes A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
 * > The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".
 * @property name The name of the 'addAttributes' activity.
 * @property next The next activity in the pipeline.
 */
public data class PipelineAddAttributesArgs(
    public val attributes: Output>,
    public val name: Output,
    public val next: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.PipelineAddAttributesArgs =
        com.pulumi.awsnative.iotanalytics.inputs.PipelineAddAttributesArgs.builder()
            .attributes(
                attributes.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .name(name.applyValue({ args0 -> args0 }))
            .next(next?.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

    private var next: Output? = null

    /**
     * @param value A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
     * > The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".
     */
    @JvmName("ntlmypoqsnglytkc")
    public suspend fun attributes(`value`: Output>) {
        this.attributes = value
    }

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

    /**
     * @param value The next activity in the pipeline.
     */
    @JvmName("ubiisvcqpjimlkfo")
    public suspend fun next(`value`: Output) {
        this.next = value
    }

    /**
     * @param value A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
     * > The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".
     */
    @JvmName("gfxbpagjwfxsrnps")
    public suspend fun attributes(`value`: Map) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

    /**
     * @param values A list of 1-50 "AttributeNameMapping" objects that map an existing attribute to a new attribute.
     * > The existing attributes remain in the message, so if you want to remove the originals, use "RemoveAttributeActivity".
     */
    @JvmName("wnnnbiwgxemprjqh")
    public fun attributes(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.attributes = mapped
    }

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

    /**
     * @param value The next activity in the pipeline.
     */
    @JvmName("cnhullvkhqeyhtwf")
    public suspend fun next(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.next = mapped
    }

    internal fun build(): PipelineAddAttributesArgs = PipelineAddAttributesArgs(
        attributes = attributes ?: throw PulumiNullFieldException("attributes"),
        name = name ?: throw PulumiNullFieldException("name"),
        next = next,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy