
commonMain.aws.sdk.kotlin.services.sqs.model.SendMessageBatchRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.sqs.model
/**
*
*/
public class SendMessageBatchRequest private constructor(builder: Builder) {
/**
* A list of ` SendMessageBatchRequestEntry ` items.
*/
public val entries: List? = builder.entries
/**
* The URL of the Amazon SQS queue to which batched messages are sent.
*
* 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.SendMessageBatchRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendMessageBatchRequest(")
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 SendMessageBatchRequest
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.SendMessageBatchRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A list of ` SendMessageBatchRequestEntry ` items.
*/
public var entries: List? = null
/**
* The URL of the Amazon SQS queue to which batched messages are sent.
*
* 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.SendMessageBatchRequest) : this() {
this.entries = x.entries
this.queueUrl = x.queueUrl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.sqs.model.SendMessageBatchRequest = SendMessageBatchRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy