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

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

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

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

import com.pulumi.awsnative.timestream.inputs.ScheduledQueryMultiMeasureMappingsArgs.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

/**
 * Only one of MixedMeasureMappings or MultiMeasureMappings is to be provided. MultiMeasureMappings can be used to ingest data as multi measures in the derived table.
 * @property multiMeasureAttributeMappings Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
 * @property targetMultiMeasureName The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
 */
public data class ScheduledQueryMultiMeasureMappingsArgs(
    public val multiMeasureAttributeMappings: Output>,
    public val targetMultiMeasureName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.timestream.inputs.ScheduledQueryMultiMeasureMappingsArgs =
        com.pulumi.awsnative.timestream.inputs.ScheduledQueryMultiMeasureMappingsArgs.builder()
            .multiMeasureAttributeMappings(
                multiMeasureAttributeMappings.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .targetMultiMeasureName(targetMultiMeasureName?.applyValue({ args0 -> args0 })).build()
}

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

    private var targetMultiMeasureName: Output? = null

    /**
     * @param value Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("yvjllebwpdhvpydp")
    public suspend fun multiMeasureAttributeMappings(`value`: Output>) {
        this.multiMeasureAttributeMappings = value
    }

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

    /**
     * @param values Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("jqnhmhbxbldxqpip")
    public suspend fun multiMeasureAttributeMappings(values: List>) {
        this.multiMeasureAttributeMappings = Output.all(values)
    }

    /**
     * @param value The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
     */
    @JvmName("dcjovxyjeqysahmb")
    public suspend fun targetMultiMeasureName(`value`: Output) {
        this.targetMultiMeasureName = value
    }

    /**
     * @param value Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("qtybabrfugggwjas")
    public suspend fun multiMeasureAttributeMappings(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param argument Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("xnbuutnbqxpmvffm")
    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 Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("jqalxubvrkpiobee")
    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 Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("efoixjpjyqeufprt")
    public suspend fun multiMeasureAttributeMappings(argument: suspend ScheduledQueryMultiMeasureAttributeMappingArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ScheduledQueryMultiMeasureAttributeMappingArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param values Required. Attribute mappings to be used for mapping query results to ingest data for multi-measure attributes.
     */
    @JvmName("nibxuickprcvpqpi")
    public suspend fun multiMeasureAttributeMappings(vararg values: ScheduledQueryMultiMeasureAttributeMappingArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.multiMeasureAttributeMappings = mapped
    }

    /**
     * @param value The name of the target multi-measure name in the derived table. This input is required when measureNameColumn is not provided. If MeasureNameColumn is provided, then value from that column will be used as multi-measure name.
     */
    @JvmName("yavysbmjxddppmix")
    public suspend fun targetMultiMeasureName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetMultiMeasureName = mapped
    }

    internal fun build(): ScheduledQueryMultiMeasureMappingsArgs =
        ScheduledQueryMultiMeasureMappingsArgs(
            multiMeasureAttributeMappings = multiMeasureAttributeMappings ?: throw
                PulumiNullFieldException("multiMeasureAttributeMappings"),
            targetMultiMeasureName = targetMultiMeasureName,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy