commonMain.aws.sdk.kotlin.services.glue.model.StreamingDataPreviewOptions.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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies options related to data preview for viewing a sample of your data.
*/
public class StreamingDataPreviewOptions private constructor(builder: Builder) {
/**
* The polling time in milliseconds.
*/
public val pollingTime: kotlin.Long? = builder.pollingTime
/**
* The limit to the number of records polled.
*/
public val recordPollingLimit: kotlin.Long? = builder.recordPollingLimit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.StreamingDataPreviewOptions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamingDataPreviewOptions(")
append("pollingTime=$pollingTime,")
append("recordPollingLimit=$recordPollingLimit")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pollingTime?.hashCode() ?: 0
result = 31 * result + (recordPollingLimit?.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 StreamingDataPreviewOptions
if (pollingTime != other.pollingTime) return false
if (recordPollingLimit != other.recordPollingLimit) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StreamingDataPreviewOptions = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The polling time in milliseconds.
*/
public var pollingTime: kotlin.Long? = null
/**
* The limit to the number of records polled.
*/
public var recordPollingLimit: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.StreamingDataPreviewOptions) : this() {
this.pollingTime = x.pollingTime
this.recordPollingLimit = x.recordPollingLimit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StreamingDataPreviewOptions = StreamingDataPreviewOptions(this)
internal fun correctErrors(): Builder {
return this
}
}
}