
commonMain.aws.sdk.kotlin.services.pipes.model.PipeTargetSqsQueueParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The parameters for using a Amazon SQS stream as a target.
*/
public class PipeTargetSqsQueueParameters private constructor(builder: Builder) {
/**
* This parameter applies only to FIFO (first-in-first-out) queues.
*
* The token used for deduplication of sent messages.
*/
public val messageDeduplicationId: kotlin.String? = builder.messageDeduplicationId
/**
* The FIFO message group ID to use as the target.
*/
public val messageGroupId: kotlin.String? = builder.messageGroupId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.PipeTargetSqsQueueParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PipeTargetSqsQueueParameters(")
append("messageDeduplicationId=*** Sensitive Data Redacted ***,")
append("messageGroupId=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = messageDeduplicationId?.hashCode() ?: 0
result = 31 * result + (messageGroupId?.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 PipeTargetSqsQueueParameters
if (messageDeduplicationId != other.messageDeduplicationId) return false
if (messageGroupId != other.messageGroupId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.PipeTargetSqsQueueParameters = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This parameter applies only to FIFO (first-in-first-out) queues.
*
* The token used for deduplication of sent messages.
*/
public var messageDeduplicationId: kotlin.String? = null
/**
* The FIFO message group ID to use as the target.
*/
public var messageGroupId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.PipeTargetSqsQueueParameters) : this() {
this.messageDeduplicationId = x.messageDeduplicationId
this.messageGroupId = x.messageGroupId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.PipeTargetSqsQueueParameters = PipeTargetSqsQueueParameters(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy