commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.InputSchemaUpdate.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
/**
* Describes updates for the application's input schema.
*/
public class InputSchemaUpdate private constructor(builder: Builder) {
/**
* A list of `RecordColumn` objects. Each object describes the mapping of the streaming source element to the corresponding column in the in-application stream.
*/
public val recordColumnUpdates: List? = builder.recordColumnUpdates
/**
* Specifies the encoding of the records in the streaming source. For example, UTF-8.
*/
public val recordEncodingUpdate: kotlin.String? = builder.recordEncodingUpdate
/**
* Specifies the format of the records on the streaming source.
*/
public val recordFormatUpdate: aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormat? = builder.recordFormatUpdate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.InputSchemaUpdate = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InputSchemaUpdate(")
append("recordColumnUpdates=$recordColumnUpdates,")
append("recordEncodingUpdate=$recordEncodingUpdate,")
append("recordFormatUpdate=$recordFormatUpdate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = recordColumnUpdates?.hashCode() ?: 0
result = 31 * result + (recordEncodingUpdate?.hashCode() ?: 0)
result = 31 * result + (recordFormatUpdate?.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 InputSchemaUpdate
if (recordColumnUpdates != other.recordColumnUpdates) return false
if (recordEncodingUpdate != other.recordEncodingUpdate) return false
if (recordFormatUpdate != other.recordFormatUpdate) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.InputSchemaUpdate = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of `RecordColumn` objects. Each object describes the mapping of the streaming source element to the corresponding column in the in-application stream.
*/
public var recordColumnUpdates: List? = null
/**
* Specifies the encoding of the records in the streaming source. For example, UTF-8.
*/
public var recordEncodingUpdate: kotlin.String? = null
/**
* Specifies the format of the records on the streaming source.
*/
public var recordFormatUpdate: aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormat? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.InputSchemaUpdate) : this() {
this.recordColumnUpdates = x.recordColumnUpdates
this.recordEncodingUpdate = x.recordEncodingUpdate
this.recordFormatUpdate = x.recordFormatUpdate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.InputSchemaUpdate = InputSchemaUpdate(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormat] inside the given [block]
*/
public fun recordFormatUpdate(block: aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormat.Builder.() -> kotlin.Unit) {
this.recordFormatUpdate = aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormat.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}