
commonMain.aws.sdk.kotlin.services.quicksight.model.S3Source.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.quicksight.model
/**
* A physical table type for an S3 data source.
*/
class S3Source private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) for the data source.
*/
val dataSourceArn: kotlin.String? = builder.dataSourceArn
/**
* A physical table type for an S3 data source.
*
* For files that aren't JSON, only `STRING` data types are supported in input columns.
*/
val inputColumns: List? = builder.inputColumns
/**
* Information about the format for the S3 source file or files.
*/
val uploadSettings: aws.sdk.kotlin.services.quicksight.model.UploadSettings? = builder.uploadSettings
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.quicksight.model.S3Source = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Source(")
append("dataSourceArn=$dataSourceArn,")
append("inputColumns=$inputColumns,")
append("uploadSettings=$uploadSettings)")
}
override fun hashCode(): kotlin.Int {
var result = dataSourceArn?.hashCode() ?: 0
result = 31 * result + (inputColumns?.hashCode() ?: 0)
result = 31 * result + (uploadSettings?.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 S3Source
if (dataSourceArn != other.dataSourceArn) return false
if (inputColumns != other.inputColumns) return false
if (uploadSettings != other.uploadSettings) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.quicksight.model.S3Source = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon Resource Name (ARN) for the data source.
*/
var dataSourceArn: kotlin.String? = null
/**
* A physical table type for an S3 data source.
*
* For files that aren't JSON, only `STRING` data types are supported in input columns.
*/
var inputColumns: List? = null
/**
* Information about the format for the S3 source file or files.
*/
var uploadSettings: aws.sdk.kotlin.services.quicksight.model.UploadSettings? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.quicksight.model.S3Source) : this() {
this.dataSourceArn = x.dataSourceArn
this.inputColumns = x.inputColumns
this.uploadSettings = x.uploadSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.quicksight.model.S3Source = S3Source(this)
/**
* construct an [aws.sdk.kotlin.services.quicksight.model.UploadSettings] inside the given [block]
*/
fun uploadSettings(block: aws.sdk.kotlin.services.quicksight.model.UploadSettings.Builder.() -> kotlin.Unit) {
this.uploadSettings = aws.sdk.kotlin.services.quicksight.model.UploadSettings.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy