commonMain.aws.sdk.kotlin.services.databrew.model.AllowedStatistics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
/**
* Configuration of statistics that are allowed to be run on columns that contain detected entities. When undefined, no statistics will be computed on columns that contain detected entities.
*/
public class AllowedStatistics private constructor(builder: Builder) {
/**
* One or more column statistics to allow for columns that contain detected entities.
*/
public val statistics: List = requireNotNull(builder.statistics) { "A non-null value must be provided for statistics" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.AllowedStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AllowedStatistics(")
append("statistics=$statistics")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = statistics.hashCode()
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 AllowedStatistics
if (statistics != other.statistics) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.AllowedStatistics = Builder(this).apply(block).build()
public class Builder {
/**
* One or more column statistics to allow for columns that contain detected entities.
*/
public var statistics: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.AllowedStatistics) : this() {
this.statistics = x.statistics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.AllowedStatistics = AllowedStatistics(this)
internal fun correctErrors(): Builder {
if (statistics == null) statistics = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy