
commonMain.aws.sdk.kotlin.services.kinesis.model.GetShardIteratorResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesis.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Represents the output for `GetShardIterator`.
*/
public class GetShardIteratorResponse private constructor(builder: Builder) {
/**
* The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard.
*/
public val shardIterator: kotlin.String? = builder.shardIterator
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesis.model.GetShardIteratorResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetShardIteratorResponse(")
append("shardIterator=$shardIterator")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = shardIterator?.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 GetShardIteratorResponse
if (shardIterator != other.shardIterator) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesis.model.GetShardIteratorResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The position in the shard from which to start reading data records sequentially. A shard iterator specifies this position using the sequence number of a data record in a shard.
*/
public var shardIterator: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesis.model.GetShardIteratorResponse) : this() {
this.shardIterator = x.shardIterator
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesis.model.GetShardIteratorResponse = GetShardIteratorResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy