
commonMain.aws.sdk.kotlin.services.dynamodb.model.ItemResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* Details for the requested item.
*/
public class ItemResponse private constructor(builder: Builder) {
/**
* Map of attribute data consisting of the data type and attribute value.
*/
public val item: Map? = builder.item
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.ItemResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ItemResponse(")
append("item=$item")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = item?.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 ItemResponse
if (item != other.item) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.ItemResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Map of attribute data consisting of the data type and attribute value.
*/
public var item: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.ItemResponse) : this() {
this.item = x.item
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.ItemResponse = ItemResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy