commonMain.aws.sdk.kotlin.services.kinesis.model.StreamModeDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesis-jvm Show documentation
Show all versions of kinesis-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesis.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an **on-demand** capacity mode and a **provisioned** capacity mode for your data streams.
*/
public class StreamModeDetails private constructor(builder: Builder) {
/**
* Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an **on-demand** capacity mode and a **provisioned** capacity mode for your data streams.
*/
public val streamMode: aws.sdk.kotlin.services.kinesis.model.StreamMode = requireNotNull(builder.streamMode) { "A non-null value must be provided for streamMode" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesis.model.StreamModeDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamModeDetails(")
append("streamMode=$streamMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = streamMode.hashCode()
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 StreamModeDetails
if (streamMode != other.streamMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesis.model.StreamModeDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the capacity mode to which you want to set your data stream. Currently, in Kinesis Data Streams, you can choose between an **on-demand** capacity mode and a **provisioned** capacity mode for your data streams.
*/
public var streamMode: aws.sdk.kotlin.services.kinesis.model.StreamMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesis.model.StreamModeDetails) : this() {
this.streamMode = x.streamMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesis.model.StreamModeDetails = StreamModeDetails(this)
internal fun correctErrors(): Builder {
if (streamMode == null) streamMode = StreamMode.SdkUnknown("no value provided")
return this
}
}
}