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

commonMain.aws.sdk.kotlin.services.databrew.model.CsvOutputOptions.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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Represents a set of options that define how DataBrew will write a comma-separated value (CSV) file.
 */
public class CsvOutputOptions private constructor(builder: Builder) {
    /**
     * A single character that specifies the delimiter used to create CSV job output.
     */
    public val delimiter: kotlin.String? = builder.delimiter

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

    override fun toString(): kotlin.String = buildString {
        append("CsvOutputOptions(")
        append("delimiter=$delimiter")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = delimiter?.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 CsvOutputOptions

        if (delimiter != other.delimiter) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A single character that specifies the delimiter used to create CSV job output.
         */
        public var delimiter: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.CsvOutputOptions) : this() {
            this.delimiter = x.delimiter
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy