
commonMain.aws.sdk.kotlin.services.dynamodbstreams.model.SequenceNumberRange.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodbstreams.model
/**
* The beginning and ending sequence numbers for the stream records contained within a shard.
*/
public class SequenceNumberRange private constructor(builder: Builder) {
/**
* The last sequence number for the stream records contained within a shard. String contains numeric characters only.
*/
public val endingSequenceNumber: kotlin.String? = builder.endingSequenceNumber
/**
* The first sequence number for the stream records contained within a shard. String contains numeric characters only.
*/
public val startingSequenceNumber: kotlin.String? = builder.startingSequenceNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodbstreams.model.SequenceNumberRange = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SequenceNumberRange(")
append("endingSequenceNumber=$endingSequenceNumber,")
append("startingSequenceNumber=$startingSequenceNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endingSequenceNumber?.hashCode() ?: 0
result = 31 * result + (startingSequenceNumber?.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 SequenceNumberRange
if (endingSequenceNumber != other.endingSequenceNumber) return false
if (startingSequenceNumber != other.startingSequenceNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodbstreams.model.SequenceNumberRange = Builder(this).apply(block).build()
public class Builder {
/**
* The last sequence number for the stream records contained within a shard. String contains numeric characters only.
*/
public var endingSequenceNumber: kotlin.String? = null
/**
* The first sequence number for the stream records contained within a shard. String contains numeric characters only.
*/
public var startingSequenceNumber: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodbstreams.model.SequenceNumberRange) : this() {
this.endingSequenceNumber = x.endingSequenceNumber
this.startingSequenceNumber = x.startingSequenceNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodbstreams.model.SequenceNumberRange = SequenceNumberRange(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy