commonMain.aws.sdk.kotlin.services.databrew.model.Sample.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
/**
* Represents the sample size and sampling type for DataBrew to use for interactive data analysis.
*/
public class Sample private constructor(builder: Builder) {
/**
* The number of rows in the sample.
*/
public val size: kotlin.Int? = builder.size
/**
* The way in which DataBrew obtains rows from a dataset.
*/
public val type: aws.sdk.kotlin.services.databrew.model.SampleType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.Sample = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Sample(")
append("size=$size,")
append("type=$type)")
}
override fun hashCode(): kotlin.Int {
var result = size ?: 0
result = 31 * result + (type?.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 Sample
if (size != other.size) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.Sample = Builder(this).apply(block).build()
public class Builder {
/**
* The number of rows in the sample.
*/
public var size: kotlin.Int? = null
/**
* The way in which DataBrew obtains rows from a dataset.
*/
public var type: aws.sdk.kotlin.services.databrew.model.SampleType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.Sample) : this() {
this.size = x.size
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.Sample = Sample(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy