commonMain.aws.sdk.kotlin.services.glue.model.DropDuplicates.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
/**
* Specifies a transform that removes rows of repeating data from a data set.
*/
public class DropDuplicates private constructor(builder: Builder) {
/**
* The name of the columns to be merged or removed if repeating.
*/
public val columns: List>? = builder.columns
/**
* The data inputs identified by their node names.
*/
public val inputs: List = requireNotNull(builder.inputs) { "A non-null value must be provided for inputs" }
/**
* The name of the transform node.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DropDuplicates = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DropDuplicates(")
append("columns=$columns,")
append("inputs=$inputs,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = columns?.hashCode() ?: 0
result = 31 * result + (inputs.hashCode())
result = 31 * result + (name.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 DropDuplicates
if (columns != other.columns) return false
if (inputs != other.inputs) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DropDuplicates = Builder(this).apply(block).build()
public class Builder {
/**
* The name of the columns to be merged or removed if repeating.
*/
public var columns: List>? = null
/**
* The data inputs identified by their node names.
*/
public var inputs: List? = null
/**
* The name of the transform node.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DropDuplicates) : this() {
this.columns = x.columns
this.inputs = x.inputs
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DropDuplicates = DropDuplicates(this)
internal fun correctErrors(): Builder {
if (inputs == null) inputs = emptyList()
if (name == null) name = ""
return this
}
}
}