commonMain.aws.sdk.kotlin.services.glue.model.BatchGetPartitionResponse.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
public class BatchGetPartitionResponse private constructor(builder: Builder) {
/**
* A list of the requested partitions.
*/
public val partitions: List? = builder.partitions
/**
* A list of the partition values in the request for which partitions were not returned.
*/
public val unprocessedKeys: List? = builder.unprocessedKeys
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetPartitionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetPartitionResponse(")
append("partitions=$partitions,")
append("unprocessedKeys=$unprocessedKeys")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = partitions?.hashCode() ?: 0
result = 31 * result + (unprocessedKeys?.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 BatchGetPartitionResponse
if (partitions != other.partitions) return false
if (unprocessedKeys != other.unprocessedKeys) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetPartitionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of the requested partitions.
*/
public var partitions: List? = null
/**
* A list of the partition values in the request for which partitions were not returned.
*/
public var unprocessedKeys: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetPartitionResponse) : this() {
this.partitions = x.partitions
this.unprocessedKeys = x.unprocessedKeys
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetPartitionResponse = BatchGetPartitionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}