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

com.pulumi.awsnative.appintegrations.kotlin.inputs.DataIntegrationFileConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appintegrations.kotlin.inputs

import com.pulumi.awsnative.appintegrations.inputs.DataIntegrationFileConfigurationArgs.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 kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * The configuration for what files should be pulled from the source.
 * @property filters Restrictions for what files should be pulled from the source.
 * @property folders Identifiers for the source folders to pull all files from recursively.
 */
public data class DataIntegrationFileConfigurationArgs(
    public val filters: Output>>? = null,
    public val folders: Output>,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appintegrations.inputs.DataIntegrationFileConfigurationArgs =
        com.pulumi.awsnative.appintegrations.inputs.DataIntegrationFileConfigurationArgs.builder()
            .filters(
                filters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(
                            args0.value.map({ args0 ->
                                args0
                            }),
                        )
                    }).toMap()
                }),
            )
            .folders(folders.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var folders: Output>? = null

    /**
     * @param value Restrictions for what files should be pulled from the source.
     */
    @JvmName("xidjeflfsqnfpbkg")
    public suspend fun filters(`value`: Output>>) {
        this.filters = value
    }

    /**
     * @param value Identifiers for the source folders to pull all files from recursively.
     */
    @JvmName("lmpctarxjtyymhda")
    public suspend fun folders(`value`: Output>) {
        this.folders = value
    }

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

    /**
     * @param values Identifiers for the source folders to pull all files from recursively.
     */
    @JvmName("qmnbnqrgfldeqrkv")
    public suspend fun folders(values: List>) {
        this.folders = Output.all(values)
    }

    /**
     * @param value Restrictions for what files should be pulled from the source.
     */
    @JvmName("ababaqnxxvktikni")
    public suspend fun filters(`value`: Map>?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param values Restrictions for what files should be pulled from the source.
     */
    @JvmName("ydvcgyfeovipudeb")
    public fun filters(vararg values: Pair>) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filters = mapped
    }

    /**
     * @param value Identifiers for the source folders to pull all files from recursively.
     */
    @JvmName("gohjgyuggmibesep")
    public suspend fun folders(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.folders = mapped
    }

    /**
     * @param values Identifiers for the source folders to pull all files from recursively.
     */
    @JvmName("lwwouvhpgvrlotav")
    public suspend fun folders(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.folders = mapped
    }

    internal fun build(): DataIntegrationFileConfigurationArgs = DataIntegrationFileConfigurationArgs(
        filters = filters,
        folders = folders ?: throw PulumiNullFieldException("folders"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy