commonMain.aws.sdk.kotlin.services.databrew.model.ColumnStatisticsConfiguration.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 for column evaluations for a profile job. ColumnStatisticsConfiguration can be used to select evaluations and override parameters of evaluations for particular columns.
*/
public class ColumnStatisticsConfiguration private constructor(builder: Builder) {
/**
* List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
*/
public val selectors: List? = builder.selectors
/**
* Configuration for evaluations. Statistics can be used to select evaluations and override parameters of evaluations.
*/
public val statistics: aws.sdk.kotlin.services.databrew.model.StatisticsConfiguration? = builder.statistics
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.ColumnStatisticsConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ColumnStatisticsConfiguration(")
append("selectors=$selectors,")
append("statistics=$statistics")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = selectors?.hashCode() ?: 0
result = 31 * result + (statistics?.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 ColumnStatisticsConfiguration
if (selectors != other.selectors) return false
if (statistics != other.statistics) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.ColumnStatisticsConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* List of column selectors. Selectors can be used to select columns from the dataset. When selectors are undefined, configuration will be applied to all supported columns.
*/
public var selectors: List? = null
/**
* Configuration for evaluations. Statistics can be used to select evaluations and override parameters of evaluations.
*/
public var statistics: aws.sdk.kotlin.services.databrew.model.StatisticsConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.ColumnStatisticsConfiguration) : this() {
this.selectors = x.selectors
this.statistics = x.statistics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.ColumnStatisticsConfiguration = ColumnStatisticsConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.databrew.model.StatisticsConfiguration] inside the given [block]
*/
public fun statistics(block: aws.sdk.kotlin.services.databrew.model.StatisticsConfiguration.Builder.() -> kotlin.Unit) {
this.statistics = aws.sdk.kotlin.services.databrew.model.StatisticsConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy