commonMain.aws.sdk.kotlin.services.glue.model.BatchGetTableOptimizerRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetTableOptimizerRequest private constructor(builder: Builder) {
/**
* A list of `BatchGetTableOptimizerEntry` objects specifying the table optimizers to retrieve.
*/
public val entries: List? = builder.entries
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetTableOptimizerRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetTableOptimizerRequest(")
append("entries=$entries")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = entries?.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 BatchGetTableOptimizerRequest
if (entries != other.entries) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetTableOptimizerRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of `BatchGetTableOptimizerEntry` objects specifying the table optimizers to retrieve.
*/
public var entries: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetTableOptimizerRequest) : this() {
this.entries = x.entries
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetTableOptimizerRequest = BatchGetTableOptimizerRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}