
commonMain.aws.sdk.kotlin.services.dynamodb.model.InputFormatOptions.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* The format options for the data that was imported into the target table. There is one value, CsvOption.
*/
public class InputFormatOptions private constructor(builder: Builder) {
/**
* The options for imported source files in CSV format. The values are Delimiter and HeaderList.
*/
public val csv: aws.sdk.kotlin.services.dynamodb.model.CsvOptions? = builder.csv
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.InputFormatOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputFormatOptions(")
append("csv=$csv")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = csv?.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 InputFormatOptions
if (csv != other.csv) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.InputFormatOptions = Builder(this).apply(block).build()
public class Builder {
/**
* The options for imported source files in CSV format. The values are Delimiter and HeaderList.
*/
public var csv: aws.sdk.kotlin.services.dynamodb.model.CsvOptions? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.InputFormatOptions) : this() {
this.csv = x.csv
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.InputFormatOptions = InputFormatOptions(this)
/**
* construct an [aws.sdk.kotlin.services.dynamodb.model.CsvOptions] inside the given [block]
*/
public fun csv(block: aws.sdk.kotlin.services.dynamodb.model.CsvOptions.Builder.() -> kotlin.Unit) {
this.csv = aws.sdk.kotlin.services.dynamodb.model.CsvOptions.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy