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

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

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

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



/**
 *
 */
public class DeleteMessageRequest private constructor(builder: Builder) {
    /**
     * 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
    /**
     * The receipt handle associated with the message to delete.
     */
    public val receiptHandle: kotlin.String? = builder.receiptHandle

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * 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
        /**
         * The receipt handle associated with the message to delete.
         */
        public var receiptHandle: kotlin.String? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy