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

com.pulumi.aws.kinesis.kotlin.inputs.AnalyticsApplicationInputsSchemaArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.kinesis.kotlin.inputs

import com.pulumi.aws.kinesis.inputs.AnalyticsApplicationInputsSchemaArgs.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 recordColumns The Record Column mapping for the streaming source data element.
 * See Record Columns below for more details.
 * @property recordEncoding The Encoding of the record in the streaming source.
 * @property recordFormat The Record Format and mapping information to schematize a record.
 * See Record Format below for more details.
 */
public data class AnalyticsApplicationInputsSchemaArgs(
    public val recordColumns: Output>,
    public val recordEncoding: Output? = null,
    public val recordFormat: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kinesis.inputs.AnalyticsApplicationInputsSchemaArgs =
        com.pulumi.aws.kinesis.inputs.AnalyticsApplicationInputsSchemaArgs.builder()
            .recordColumns(
                recordColumns.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .recordEncoding(recordEncoding?.applyValue({ args0 -> args0 }))
            .recordFormat(recordFormat.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var recordEncoding: Output? = null

    private var recordFormat: Output? = null

    /**
     * @param value The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("xelcwsgvqrbxlpwt")
    public suspend fun recordColumns(`value`: Output>) {
        this.recordColumns = value
    }

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

    /**
     * @param values The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("twjlxiqofayhklme")
    public suspend fun recordColumns(values: List>) {
        this.recordColumns = Output.all(values)
    }

    /**
     * @param value The Encoding of the record in the streaming source.
     */
    @JvmName("orndkrsqfdlgyxhr")
    public suspend fun recordEncoding(`value`: Output) {
        this.recordEncoding = value
    }

    /**
     * @param value The Record Format and mapping information to schematize a record.
     * See Record Format below for more details.
     */
    @JvmName("iglpowgrrjrbuoql")
    public suspend fun recordFormat(`value`: Output) {
        this.recordFormat = value
    }

    /**
     * @param value The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("spdmfiiwdiywpfpl")
    public suspend fun recordColumns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordColumns = mapped
    }

    /**
     * @param argument The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("pkmekobiauswbjul")
    public suspend fun recordColumns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            AnalyticsApplicationInputsSchemaRecordColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.recordColumns = mapped
    }

    /**
     * @param argument The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("nvcqbbdqxdlapweo")
    public suspend fun recordColumns(vararg argument: suspend AnalyticsApplicationInputsSchemaRecordColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            AnalyticsApplicationInputsSchemaRecordColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.recordColumns = mapped
    }

    /**
     * @param argument The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("tveqrsnubymfrtkd")
    public suspend fun recordColumns(argument: suspend AnalyticsApplicationInputsSchemaRecordColumnArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            AnalyticsApplicationInputsSchemaRecordColumnArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.recordColumns = mapped
    }

    /**
     * @param values The Record Column mapping for the streaming source data element.
     * See Record Columns below for more details.
     */
    @JvmName("eitquqteknxxpjdr")
    public suspend fun recordColumns(vararg values: AnalyticsApplicationInputsSchemaRecordColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordColumns = mapped
    }

    /**
     * @param value The Encoding of the record in the streaming source.
     */
    @JvmName("tqbdpopaanocxuvi")
    public suspend fun recordEncoding(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordEncoding = mapped
    }

    /**
     * @param value The Record Format and mapping information to schematize a record.
     * See Record Format below for more details.
     */
    @JvmName("wguqrspurrlnldyo")
    public suspend fun recordFormat(`value`: AnalyticsApplicationInputsSchemaRecordFormatArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordFormat = mapped
    }

    /**
     * @param argument The Record Format and mapping information to schematize a record.
     * See Record Format below for more details.
     */
    @JvmName("btmewwxhraabhudk")
    public suspend fun recordFormat(argument: suspend AnalyticsApplicationInputsSchemaRecordFormatArgsBuilder.() -> Unit) {
        val toBeMapped = AnalyticsApplicationInputsSchemaRecordFormatArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.recordFormat = mapped
    }

    internal fun build(): AnalyticsApplicationInputsSchemaArgs = AnalyticsApplicationInputsSchemaArgs(
        recordColumns = recordColumns ?: throw PulumiNullFieldException("recordColumns"),
        recordEncoding = recordEncoding,
        recordFormat = recordFormat ?: throw PulumiNullFieldException("recordFormat"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy