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

com.pulumi.awsnative.databrew.kotlin.inputs.DatasetExcelOptionsArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.databrew.kotlin.inputs

import com.pulumi.awsnative.databrew.inputs.DatasetExcelOptionsArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property headerRow A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
 * @property sheetIndexes One or more sheet numbers in the Excel file that will be included in the dataset.
 * @property sheetNames One or more named sheets in the Excel file that will be included in the dataset.
 */
public data class DatasetExcelOptionsArgs(
    public val headerRow: Output? = null,
    public val sheetIndexes: Output>? = null,
    public val sheetNames: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.inputs.DatasetExcelOptionsArgs =
        com.pulumi.awsnative.databrew.inputs.DatasetExcelOptionsArgs.builder()
            .headerRow(headerRow?.applyValue({ args0 -> args0 }))
            .sheetIndexes(sheetIndexes?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sheetNames(sheetNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [DatasetExcelOptionsArgs].
 */
@PulumiTagMarker
public class DatasetExcelOptionsArgsBuilder internal constructor() {
    private var headerRow: Output? = null

    private var sheetIndexes: Output>? = null

    private var sheetNames: Output>? = null

    /**
     * @param value A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
     */
    @JvmName("cqduflsxmygumode")
    public suspend fun headerRow(`value`: Output) {
        this.headerRow = value
    }

    /**
     * @param value One or more sheet numbers in the Excel file that will be included in the dataset.
     */
    @JvmName("whbyeaiwiojdjrnd")
    public suspend fun sheetIndexes(`value`: Output>) {
        this.sheetIndexes = value
    }

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

    /**
     * @param values One or more sheet numbers in the Excel file that will be included in the dataset.
     */
    @JvmName("fupffknprcnqbxdr")
    public suspend fun sheetIndexes(values: List>) {
        this.sheetIndexes = Output.all(values)
    }

    /**
     * @param value One or more named sheets in the Excel file that will be included in the dataset.
     */
    @JvmName("jjeodiafcxgxetle")
    public suspend fun sheetNames(`value`: Output>) {
        this.sheetNames = value
    }

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

    /**
     * @param values One or more named sheets in the Excel file that will be included in the dataset.
     */
    @JvmName("lnacngosolxuwmsq")
    public suspend fun sheetNames(values: List>) {
        this.sheetNames = Output.all(values)
    }

    /**
     * @param value A variable that specifies whether the first row in the file is parsed as the header. If this value is false, column names are auto-generated.
     */
    @JvmName("nmcdbglubahuswsf")
    public suspend fun headerRow(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.headerRow = mapped
    }

    /**
     * @param value One or more sheet numbers in the Excel file that will be included in the dataset.
     */
    @JvmName("bxtgbgjelrxrgrhv")
    public suspend fun sheetIndexes(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sheetIndexes = mapped
    }

    /**
     * @param values One or more sheet numbers in the Excel file that will be included in the dataset.
     */
    @JvmName("clbqrriuhrstehjq")
    public suspend fun sheetIndexes(vararg values: Int) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sheetIndexes = mapped
    }

    /**
     * @param value One or more named sheets in the Excel file that will be included in the dataset.
     */
    @JvmName("sxmrtawpvseujndm")
    public suspend fun sheetNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sheetNames = mapped
    }

    /**
     * @param values One or more named sheets in the Excel file that will be included in the dataset.
     */
    @JvmName("yivdchanqybtebrs")
    public suspend fun sheetNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sheetNames = mapped
    }

    internal fun build(): DatasetExcelOptionsArgs = DatasetExcelOptionsArgs(
        headerRow = headerRow,
        sheetIndexes = sheetIndexes,
        sheetNames = sheetNames,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy