
commonMain.aws.sdk.kotlin.services.kinesis.model.UpdateShardCountResponse.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
public class UpdateShardCountResponse private constructor(builder: Builder) {
/**
* The current number of shards.
*/
public val currentShardCount: kotlin.Int? = builder.currentShardCount
/**
* The ARN of the stream.
*/
public val streamArn: kotlin.String? = builder.streamArn
/**
* The name of the stream.
*/
public val streamName: kotlin.String? = builder.streamName
/**
* The updated number of shards.
*/
public val targetShardCount: kotlin.Int? = builder.targetShardCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesis.model.UpdateShardCountResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateShardCountResponse(")
append("currentShardCount=$currentShardCount,")
append("streamArn=$streamArn,")
append("streamName=$streamName,")
append("targetShardCount=$targetShardCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = currentShardCount ?: 0
result = 31 * result + (streamArn?.hashCode() ?: 0)
result = 31 * result + (streamName?.hashCode() ?: 0)
result = 31 * result + (targetShardCount ?: 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 UpdateShardCountResponse
if (currentShardCount != other.currentShardCount) return false
if (streamArn != other.streamArn) return false
if (streamName != other.streamName) return false
if (targetShardCount != other.targetShardCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesis.model.UpdateShardCountResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The current number of shards.
*/
public var currentShardCount: kotlin.Int? = null
/**
* The ARN of the stream.
*/
public var streamArn: kotlin.String? = null
/**
* The name of the stream.
*/
public var streamName: kotlin.String? = null
/**
* The updated number of shards.
*/
public var targetShardCount: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesis.model.UpdateShardCountResponse) : this() {
this.currentShardCount = x.currentShardCount
this.streamArn = x.streamArn
this.streamName = x.streamName
this.targetShardCount = x.targetShardCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesis.model.UpdateShardCountResponse = UpdateShardCountResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy