commonMain.aws.sdk.kotlin.services.databrew.model.ColumnSelector.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
/**
* Selector of a column from a dataset for profile job configuration. One selector includes either a column name or a regular expression.
*/
public class ColumnSelector private constructor(builder: Builder) {
/**
* The name of a column from a dataset.
*/
public val name: kotlin.String? = builder.name
/**
* A regular expression for selecting a column from a dataset.
*/
public val regex: kotlin.String? = builder.regex
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.ColumnSelector = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ColumnSelector(")
append("name=$name,")
append("regex=$regex")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (regex?.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 ColumnSelector
if (name != other.name) return false
if (regex != other.regex) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.ColumnSelector = Builder(this).apply(block).build()
public class Builder {
/**
* The name of a column from a dataset.
*/
public var name: kotlin.String? = null
/**
* A regular expression for selecting a column from a dataset.
*/
public var regex: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.ColumnSelector) : this() {
this.name = x.name
this.regex = x.regex
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.ColumnSelector = ColumnSelector(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy