commonMain.aws.sdk.kotlin.services.glue.model.ColumnImportance.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure containing the column name and column importance score for a column.
*
* Column importance helps you understand how columns contribute to your model, by identifying which columns in your records are more important than others.
*/
public class ColumnImportance private constructor(builder: Builder) {
/**
* The name of a column.
*/
public val columnName: kotlin.String? = builder.columnName
/**
* The column importance score for the column, as a decimal.
*/
public val importance: kotlin.Double? = builder.importance
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.ColumnImportance = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ColumnImportance(")
append("columnName=$columnName,")
append("importance=$importance")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columnName?.hashCode() ?: 0
result = 31 * result + (importance?.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 ColumnImportance
if (columnName != other.columnName) return false
if (!(importance?.equals(other.importance) ?: (other.importance == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.ColumnImportance = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of a column.
*/
public var columnName: kotlin.String? = null
/**
* The column importance score for the column, as a decimal.
*/
public var importance: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.ColumnImportance) : this() {
this.columnName = x.columnName
this.importance = x.importance
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.ColumnImportance = ColumnImportance(this)
internal fun correctErrors(): Builder {
return this
}
}
}