commonMain.aws.sdk.kotlin.services.glue.model.StringColumnStatisticsData.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
/**
* Defines column statistics supported for character sequence data values.
*/
public class StringColumnStatisticsData private constructor(builder: Builder) {
/**
* The average string length in the column.
*/
public val averageLength: kotlin.Double = builder.averageLength
/**
* The size of the longest string in the column.
*/
public val maximumLength: kotlin.Long = builder.maximumLength
/**
* The number of distinct values in a column.
*/
public val numberOfDistinctValues: kotlin.Long = builder.numberOfDistinctValues
/**
* 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.StringColumnStatisticsData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StringColumnStatisticsData(")
append("averageLength=$averageLength,")
append("maximumLength=$maximumLength,")
append("numberOfDistinctValues=$numberOfDistinctValues,")
append("numberOfNulls=$numberOfNulls")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = averageLength.hashCode()
result = 31 * result + (maximumLength.hashCode())
result = 31 * result + (numberOfDistinctValues.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 StringColumnStatisticsData
if (averageLength != other.averageLength) return false
if (maximumLength != other.maximumLength) return false
if (numberOfDistinctValues != other.numberOfDistinctValues) return false
if (numberOfNulls != other.numberOfNulls) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StringColumnStatisticsData = Builder(this).apply(block).build()
public class Builder {
/**
* The average string length in the column.
*/
public var averageLength: kotlin.Double = 0.0
/**
* The size of the longest string in the column.
*/
public var maximumLength: kotlin.Long = 0L
/**
* The number of distinct values in a column.
*/
public var numberOfDistinctValues: 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.StringColumnStatisticsData) : this() {
this.averageLength = x.averageLength
this.maximumLength = x.maximumLength
this.numberOfDistinctValues = x.numberOfDistinctValues
this.numberOfNulls = x.numberOfNulls
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StringColumnStatisticsData = StringColumnStatisticsData(this)
internal fun correctErrors(): Builder {
return this
}
}
}