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

commonMain.aws.sdk.kotlin.services.databrew.model.ExcelOptions.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databrew.model



/**
 * Represents a set of options that define how DataBrew will interpret a Microsoft Excel file when creating a dataset from that file.
 */
public class ExcelOptions private constructor(builder: Builder) {
    /**
     * 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.
     */
    public val headerRow: kotlin.Boolean? = builder.headerRow
    /**
     * One or more sheet numbers in the Excel file that will be included in the dataset.
     */
    public val sheetIndexes: List? = builder.sheetIndexes
    /**
     * One or more named sheets in the Excel file that will be included in the dataset.
     */
    public val sheetNames: List? = builder.sheetNames

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.ExcelOptions = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ExcelOptions(")
        append("headerRow=$headerRow,")
        append("sheetIndexes=$sheetIndexes,")
        append("sheetNames=$sheetNames")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = headerRow?.hashCode() ?: 0
        result = 31 * result + (sheetIndexes?.hashCode() ?: 0)
        result = 31 * result + (sheetNames?.hashCode() ?: 0)
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as ExcelOptions

        if (headerRow != other.headerRow) return false
        if (sheetIndexes != other.sheetIndexes) return false
        if (sheetNames != other.sheetNames) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.ExcelOptions = Builder(this).apply(block).build()

    public class Builder {
        /**
         * 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.
         */
        public var headerRow: kotlin.Boolean? = null
        /**
         * One or more sheet numbers in the Excel file that will be included in the dataset.
         */
        public var sheetIndexes: List? = null
        /**
         * One or more named sheets in the Excel file that will be included in the dataset.
         */
        public var sheetNames: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.ExcelOptions) : this() {
            this.headerRow = x.headerRow
            this.sheetIndexes = x.sheetIndexes
            this.sheetNames = x.sheetNames
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.databrew.model.ExcelOptions = ExcelOptions(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy