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

commonMain.aws.sdk.kotlin.services.sqs.model.DeleteMessageBatchRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.sqs.model



/**
 *
 */
public class DeleteMessageBatchRequest private constructor(builder: Builder) {
    /**
     * Lists the receipt handles for the messages to be deleted.
     */
    public val entries: List? = builder.entries
    /**
     * The URL of the Amazon SQS queue from which messages are deleted.
     *
     * Queue URLs and names are case-sensitive.
     */
    public val queueUrl: kotlin.String? = builder.queueUrl

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteMessageBatchRequest(")
        append("entries=$entries,")
        append("queueUrl=$queueUrl")
        append(")")
    }

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

        if (entries != other.entries) return false
        if (queueUrl != other.queueUrl) return false

        return true
    }

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

    public class Builder {
        /**
         * Lists the receipt handles for the messages to be deleted.
         */
        public var entries: List? = null
        /**
         * The URL of the Amazon SQS queue from which messages are deleted.
         *
         * Queue URLs and names are case-sensitive.
         */
        public var queueUrl: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sqs.model.DeleteMessageBatchRequest) : this() {
            this.entries = x.entries
            this.queueUrl = x.queueUrl
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy