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

com.pulumi.aws.kinesisanalyticsv2.kotlin.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs.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.kinesisanalyticsv2.kotlin.inputs

import com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs.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 Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
 * @property recordEncoding Specifies the encoding of the records in the streaming source. For example, `UTF-8`.
 * @property recordFormat Specifies the format of the records on the streaming source.
 */
public data class
ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs(
    public val recordColumns: Output>,
    public val recordEncoding: Output? = null,
    public val recordFormat: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs =
        com.pulumi.aws.kinesisanalyticsv2.inputs.ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs.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 [ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgs].
 */
@PulumiTagMarker
public class
ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaArgsBuilder
internal constructor() {
    private var recordColumns:
        Output>? =
        null

    private var recordEncoding: Output? = null

    private var recordFormat:
        Output? =
        null

    /**
     * @param value Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("uavcfoekeuqvqjlu")
    public suspend fun recordColumns(`value`: Output>) {
        this.recordColumns = value
    }

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

    /**
     * @param values Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("eliopimidtoleriu")
    public suspend fun recordColumns(values: List>) {
        this.recordColumns = Output.all(values)
    }

    /**
     * @param value Specifies the encoding of the records in the streaming source. For example, `UTF-8`.
     */
    @JvmName("sxrctrahpubsltix")
    public suspend fun recordEncoding(`value`: Output) {
        this.recordEncoding = value
    }

    /**
     * @param value Specifies the format of the records on the streaming source.
     */
    @JvmName("gfkkljrufuixdose")
    public suspend fun recordFormat(`value`: Output) {
        this.recordFormat = value
    }

    /**
     * @param value Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("fhujurqtajopfbjo")
    public suspend fun recordColumns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordColumns = mapped
    }

    /**
     * @param argument Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("lrpvovtuirsefvxn")
    public suspend fun recordColumns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordColumnArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.recordColumns = mapped
    }

    /**
     * @param argument Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("whtdcwsljupxbmhq")
    public suspend fun recordColumns(vararg argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordColumnArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.recordColumns = mapped
    }

    /**
     * @param argument Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("obnixrebqeshxjuu")
    public suspend fun recordColumns(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordColumnArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordColumnArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.recordColumns = mapped
    }

    /**
     * @param values Describes the mapping of each data element in the streaming source to the corresponding column in the in-application stream.
     */
    @JvmName("rvedugarhgumeeva")
    public suspend fun recordColumns(vararg values: ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordColumns = mapped
    }

    /**
     * @param value Specifies the encoding of the records in the streaming source. For example, `UTF-8`.
     */
    @JvmName("evtuybdtycuytvad")
    public suspend fun recordEncoding(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recordEncoding = mapped
    }

    /**
     * @param value Specifies the format of the records on the streaming source.
     */
    @JvmName("cettungrwlicvids")
    public suspend fun recordFormat(`value`: ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormatArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.recordFormat = mapped
    }

    /**
     * @param argument Specifies the format of the records on the streaming source.
     */
    @JvmName("dnuinqetjgjjoovr")
    public suspend fun recordFormat(argument: suspend ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormatArgsBuilder.() -> Unit) {
        val toBeMapped =
            ApplicationApplicationConfigurationSqlApplicationConfigurationReferenceDataSourceReferenceSchemaRecordFormatArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.recordFormat = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy