commonMain.aws.sdk.kotlin.services.glue.model.BinaryColumnStatisticsData.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Defines column statistics supported for bit sequence data values.
*/
public class BinaryColumnStatisticsData private constructor(builder: Builder) {
/**
* The average bit sequence length in the column.
*/
public val averageLength: kotlin.Double = builder.averageLength
/**
* The size of the longest bit sequence in the column.
*/
public val maximumLength: kotlin.Long = builder.maximumLength
/**
* The number of null values in the column.
*/
public val numberOfNulls: kotlin.Long = builder.numberOfNulls
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BinaryColumnStatisticsData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BinaryColumnStatisticsData(")
append("averageLength=$averageLength,")
append("maximumLength=$maximumLength,")
append("numberOfNulls=$numberOfNulls")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = averageLength.hashCode()
result = 31 * result + (maximumLength.hashCode())
result = 31 * result + (numberOfNulls.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 BinaryColumnStatisticsData
if (!(averageLength?.equals(other.averageLength) ?: (other.averageLength == null))) return false
if (maximumLength != other.maximumLength) return false
if (numberOfNulls != other.numberOfNulls) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BinaryColumnStatisticsData = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The average bit sequence length in the column.
*/
public var averageLength: kotlin.Double = 0.0
/**
* The size of the longest bit sequence in the column.
*/
public var maximumLength: kotlin.Long = 0L
/**
* The number of null values in the column.
*/
public var numberOfNulls: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BinaryColumnStatisticsData) : this() {
this.averageLength = x.averageLength
this.maximumLength = x.maximumLength
this.numberOfNulls = x.numberOfNulls
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BinaryColumnStatisticsData = BinaryColumnStatisticsData(this)
internal fun correctErrors(): Builder {
return this
}
}
}