
commonMain.aws.sdk.kotlin.services.dynamodb.model.BatchExecuteStatementResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
public class BatchExecuteStatementResponse private constructor(builder: Builder) {
/**
* The capacity units consumed by the entire operation. The values of the list are ordered according to the ordering of the statements.
*/
public val consumedCapacity: List? = builder.consumedCapacity
/**
* The response to each PartiQL statement in the batch. The values of the list are ordered according to the ordering of the request statements.
*/
public val responses: List? = builder.responses
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.BatchExecuteStatementResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchExecuteStatementResponse(")
append("consumedCapacity=$consumedCapacity,")
append("responses=$responses")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = consumedCapacity?.hashCode() ?: 0
result = 31 * result + (responses?.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 BatchExecuteStatementResponse
if (consumedCapacity != other.consumedCapacity) return false
if (responses != other.responses) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.BatchExecuteStatementResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The capacity units consumed by the entire operation. The values of the list are ordered according to the ordering of the statements.
*/
public var consumedCapacity: List? = null
/**
* The response to each PartiQL statement in the batch. The values of the list are ordered according to the ordering of the request statements.
*/
public var responses: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.BatchExecuteStatementResponse) : this() {
this.consumedCapacity = x.consumedCapacity
this.responses = x.responses
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.BatchExecuteStatementResponse = BatchExecuteStatementResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy