All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.dynamodb.model.TransactGetItemsRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.dynamodb.model



public class TransactGetItemsRequest private constructor(builder: Builder) {
    /**
     * A value of `TOTAL` causes consumed capacity information to be returned, and a value of `NONE` prevents that information from being returned. No other value is valid.
     */
    public val returnConsumedCapacity: aws.sdk.kotlin.services.dynamodb.model.ReturnConsumedCapacity? = builder.returnConsumedCapacity
    /**
     * An ordered array of up to 100 `TransactGetItem` objects, each of which contains a `Get` structure.
     */
    public val transactItems: List? = builder.transactItems

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.TransactGetItemsRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("TransactGetItemsRequest(")
        append("returnConsumedCapacity=$returnConsumedCapacity,")
        append("transactItems=$transactItems")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = returnConsumedCapacity?.hashCode() ?: 0
        result = 31 * result + (transactItems?.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 TransactGetItemsRequest

        if (returnConsumedCapacity != other.returnConsumedCapacity) return false
        if (transactItems != other.transactItems) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.TransactGetItemsRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * A value of `TOTAL` causes consumed capacity information to be returned, and a value of `NONE` prevents that information from being returned. No other value is valid.
         */
        public var returnConsumedCapacity: aws.sdk.kotlin.services.dynamodb.model.ReturnConsumedCapacity? = null
        /**
         * An ordered array of up to 100 `TransactGetItem` objects, each of which contains a `Get` structure.
         */
        public var transactItems: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.TransactGetItemsRequest) : this() {
            this.returnConsumedCapacity = x.returnConsumedCapacity
            this.transactItems = x.transactItems
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.dynamodb.model.TransactGetItemsRequest = TransactGetItemsRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy