commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.InputConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kinesisanalytics-jvm Show documentation
Show all versions of kinesisanalytics-jvm Show documentation
The AWS SDK for Kotlin client for Kinesis Analytics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisanalytics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* When you start your application, you provide this configuration, which identifies the input source and the point in the input source at which you want the application to start processing records.
*/
public class InputConfiguration private constructor(builder: Builder) {
/**
* Input source ID. You can get this ID by calling the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation.
*/
public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
/**
* Point at which you want the application to start processing records from the streaming source.
*/
public val inputStartingPositionConfiguration: aws.sdk.kotlin.services.kinesisanalytics.model.InputStartingPositionConfiguration? = builder.inputStartingPositionConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.InputConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputConfiguration(")
append("id=$id,")
append("inputStartingPositionConfiguration=$inputStartingPositionConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = id.hashCode()
result = 31 * result + (inputStartingPositionConfiguration?.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 InputConfiguration
if (id != other.id) return false
if (inputStartingPositionConfiguration != other.inputStartingPositionConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.InputConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Input source ID. You can get this ID by calling the [DescribeApplication](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/API_DescribeApplication.html) operation.
*/
public var id: kotlin.String? = null
/**
* Point at which you want the application to start processing records from the streaming source.
*/
public var inputStartingPositionConfiguration: aws.sdk.kotlin.services.kinesisanalytics.model.InputStartingPositionConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.InputConfiguration) : this() {
this.id = x.id
this.inputStartingPositionConfiguration = x.inputStartingPositionConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.InputConfiguration = InputConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisanalytics.model.InputStartingPositionConfiguration] inside the given [block]
*/
public fun inputStartingPositionConfiguration(block: aws.sdk.kotlin.services.kinesisanalytics.model.InputStartingPositionConfiguration.Builder.() -> kotlin.Unit) {
this.inputStartingPositionConfiguration = aws.sdk.kotlin.services.kinesisanalytics.model.InputStartingPositionConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
if (id == null) id = ""
return this
}
}
}