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

com.pulumi.awsnative.pipes.kotlin.inputs.PipeMultiMeasureMappingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.pipes.kotlin.inputs

import com.pulumi.awsnative.pipes.inputs.PipeMultiMeasureMappingArgs.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 multiMeasureAttributeMappings Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
 * @property multiMeasureName The name of the multiple measurements per record (multi-measure).
 */
public data class PipeMultiMeasureMappingArgs(
    public val multiMeasureAttributeMappings: Output>,
    public val multiMeasureName: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.pipes.inputs.PipeMultiMeasureMappingArgs =
        com.pulumi.awsnative.pipes.inputs.PipeMultiMeasureMappingArgs.builder()
            .multiMeasureAttributeMappings(
                multiMeasureAttributeMappings.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .multiMeasureName(multiMeasureName.applyValue({ args0 -> args0 })).build()
}

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

    private var multiMeasureName: Output? = null

    /**
     * @param value Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("uvdhdfyetbuijujd")
    public suspend fun multiMeasureAttributeMappings(`value`: Output>) {
        this.multiMeasureAttributeMappings = value
    }

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

    /**
     * @param values Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("xpnumxbhknnsrkbv")
    public suspend fun multiMeasureAttributeMappings(values: List>) {
        this.multiMeasureAttributeMappings = Output.all(values)
    }

    /**
     * @param value The name of the multiple measurements per record (multi-measure).
     */
    @JvmName("eflxstxbpkooesec")
    public suspend fun multiMeasureName(`value`: Output) {
        this.multiMeasureName = value
    }

    /**
     * @param value Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("polmjkjmwnkfbkty")
    public suspend fun multiMeasureAttributeMappings(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("xlcdgabmxbhadwmw")
    public suspend fun multiMeasureAttributeMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            PipeMultiMeasureAttributeMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("fnvycptudqjyethi")
    public suspend fun multiMeasureAttributeMappings(vararg argument: suspend PipeMultiMeasureAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            PipeMultiMeasureAttributeMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("navbogcdddlffogo")
    public suspend fun multiMeasureAttributeMappings(argument: suspend PipeMultiMeasureAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            PipeMultiMeasureAttributeMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param values Mappings that represent multiple source event fields mapped to measures in the same Timestream for LiveAnalytics record.
     */
    @JvmName("rgsafxexmyuogdtm")
    public suspend fun multiMeasureAttributeMappings(vararg values: PipeMultiMeasureAttributeMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param value The name of the multiple measurements per record (multi-measure).
     */
    @JvmName("dbkjdlnpbualbbyf")
    public suspend fun multiMeasureName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureName = mapped
    }

    internal fun build(): PipeMultiMeasureMappingArgs = PipeMultiMeasureMappingArgs(
        multiMeasureAttributeMappings = multiMeasureAttributeMappings ?: throw
            PulumiNullFieldException("multiMeasureAttributeMappings"),
        multiMeasureName = multiMeasureName ?: throw PulumiNullFieldException("multiMeasureName"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy