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

com.pulumi.awsnative.timestream.kotlin.inputs.ScheduledQueryMixedMeasureMappingArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.timestream.kotlin.inputs

import com.pulumi.awsnative.timestream.inputs.ScheduledQueryMixedMeasureMappingArgs.builder
import com.pulumi.awsnative.timestream.kotlin.enums.ScheduledQueryMixedMeasureMappingMeasureValueType
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

/**
 * MixedMeasureMappings are mappings that can be used to ingest data into a mixture of narrow and multi measures in the derived table.
 * @property measureName
 * @property measureValueType
 * @property multiMeasureAttributeMappings
 * @property sourceColumn
 * @property targetMeasureName
 */
public data class ScheduledQueryMixedMeasureMappingArgs(
    public val measureName: Output? = null,
    public val measureValueType: Output,
    public val multiMeasureAttributeMappings: Output>? = null,
    public val sourceColumn: Output? = null,
    public val targetMeasureName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.timestream.inputs.ScheduledQueryMixedMeasureMappingArgs =
        com.pulumi.awsnative.timestream.inputs.ScheduledQueryMixedMeasureMappingArgs.builder()
            .measureName(measureName?.applyValue({ args0 -> args0 }))
            .measureValueType(measureValueType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .multiMeasureAttributeMappings(
                multiMeasureAttributeMappings?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .sourceColumn(sourceColumn?.applyValue({ args0 -> args0 }))
            .targetMeasureName(targetMeasureName?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ScheduledQueryMixedMeasureMappingArgs].
 */
@PulumiTagMarker
public class ScheduledQueryMixedMeasureMappingArgsBuilder internal constructor() {
    private var measureName: Output? = null

    private var measureValueType: Output? = null

    private var multiMeasureAttributeMappings:
        Output>? = null

    private var sourceColumn: Output? = null

    private var targetMeasureName: Output? = null

    /**
     * @param value
     */
    @JvmName("pnmlnvxxxwnpwynp")
    public suspend fun measureName(`value`: Output) {
        this.measureName = value
    }

    /**
     * @param value
     */
    @JvmName("wtmepubgtwjcrmsy")
    public suspend fun measureValueType(`value`: Output) {
        this.measureValueType = value
    }

    /**
     * @param value
     */
    @JvmName("nonkwsmarlkpppdv")
    public suspend fun multiMeasureAttributeMappings(`value`: Output>) {
        this.multiMeasureAttributeMappings = value
    }

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

    /**
     * @param values
     */
    @JvmName("qdqvgptxdvulscyw")
    public suspend fun multiMeasureAttributeMappings(values: List>) {
        this.multiMeasureAttributeMappings = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("xvgrtqglvuckmxva")
    public suspend fun sourceColumn(`value`: Output) {
        this.sourceColumn = value
    }

    /**
     * @param value
     */
    @JvmName("hkgxbuodaxrtwxqr")
    public suspend fun targetMeasureName(`value`: Output) {
        this.targetMeasureName = value
    }

    /**
     * @param value
     */
    @JvmName("wbvtuhmcqtcwkvds")
    public suspend fun measureName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.measureName = mapped
    }

    /**
     * @param value
     */
    @JvmName("abiqdjoxjahndjce")
    public suspend fun measureValueType(`value`: ScheduledQueryMixedMeasureMappingMeasureValueType) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.measureValueType = mapped
    }

    /**
     * @param value
     */
    @JvmName("gqyhelygpckevqqi")
    public suspend fun multiMeasureAttributeMappings(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("awapyvcbeintpinf")
    public suspend fun multiMeasureAttributeMappings(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ScheduledQueryMultiMeasureAttributeMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("bljgvvhuxqnvtdoa")
    public suspend fun multiMeasureAttributeMappings(vararg argument: suspend ScheduledQueryMultiMeasureAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ScheduledQueryMultiMeasureAttributeMappingArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument
     */
    @JvmName("mgxfxhkuqhlhidwv")
    public suspend fun multiMeasureAttributeMappings(argument: suspend ScheduledQueryMultiMeasureAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ScheduledQueryMultiMeasureAttributeMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param values
     */
    @JvmName("yqnecyditeuxrbww")
    public suspend fun multiMeasureAttributeMappings(vararg values: ScheduledQueryMultiMeasureAttributeMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param value
     */
    @JvmName("pramvyyojtaymfeu")
    public suspend fun sourceColumn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceColumn = mapped
    }

    /**
     * @param value
     */
    @JvmName("uprvuorjgviligvr")
    public suspend fun targetMeasureName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetMeasureName = mapped
    }

    internal fun build(): ScheduledQueryMixedMeasureMappingArgs =
        ScheduledQueryMixedMeasureMappingArgs(
            measureName = measureName,
            measureValueType = measureValueType ?: throw PulumiNullFieldException("measureValueType"),
            multiMeasureAttributeMappings = multiMeasureAttributeMappings,
            sourceColumn = sourceColumn,
            targetMeasureName = targetMeasureName,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy