
commonMain.aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSqsQueueParameters.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.pipes.model
/**
* The parameters for using a Amazon SQS stream as a source.
*/
public class UpdatePipeSourceSqsQueueParameters private constructor(builder: Builder) {
/**
* The maximum number of records to include in each batch.
*/
public val batchSize: kotlin.Int? = builder.batchSize
/**
* The maximum length of a time to wait for events.
*/
public val maximumBatchingWindowInSeconds: kotlin.Int? = builder.maximumBatchingWindowInSeconds
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSqsQueueParameters = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdatePipeSourceSqsQueueParameters(")
append("batchSize=$batchSize,")
append("maximumBatchingWindowInSeconds=$maximumBatchingWindowInSeconds")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = batchSize ?: 0
result = 31 * result + (maximumBatchingWindowInSeconds ?: 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 UpdatePipeSourceSqsQueueParameters
if (batchSize != other.batchSize) return false
if (maximumBatchingWindowInSeconds != other.maximumBatchingWindowInSeconds) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSqsQueueParameters = Builder(this).apply(block).build()
public class Builder {
/**
* The maximum number of records to include in each batch.
*/
public var batchSize: kotlin.Int? = null
/**
* The maximum length of a time to wait for events.
*/
public var maximumBatchingWindowInSeconds: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSqsQueueParameters) : this() {
this.batchSize = x.batchSize
this.maximumBatchingWindowInSeconds = x.maximumBatchingWindowInSeconds
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.pipes.model.UpdatePipeSourceSqsQueueParameters = UpdatePipeSourceSqsQueueParameters(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy