
commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.DiscoverInputSchemaResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kinesisanalytics.model
/**
*
*/
public class DiscoverInputSchemaResponse private constructor(builder: Builder) {
/**
* Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.
*/
public val inputSchema: aws.sdk.kotlin.services.kinesisanalytics.model.SourceSchema? = builder.inputSchema
/**
* An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
*/
public val parsedInputRecords: List>? = builder.parsedInputRecords
/**
* Stream data that was modified by the processor specified in the `InputProcessingConfiguration` parameter.
*/
public val processedInputRecords: List? = builder.processedInputRecords
/**
* Raw stream data that was sampled to infer the schema.
*/
public val rawInputRecords: List? = builder.rawInputRecords
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.DiscoverInputSchemaResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DiscoverInputSchemaResponse(")
append("inputSchema=$inputSchema,")
append("parsedInputRecords=$parsedInputRecords,")
append("processedInputRecords=$processedInputRecords,")
append("rawInputRecords=$rawInputRecords")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = inputSchema?.hashCode() ?: 0
result = 31 * result + (parsedInputRecords?.hashCode() ?: 0)
result = 31 * result + (processedInputRecords?.hashCode() ?: 0)
result = 31 * result + (rawInputRecords?.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 DiscoverInputSchemaResponse
if (inputSchema != other.inputSchema) return false
if (parsedInputRecords != other.parsedInputRecords) return false
if (processedInputRecords != other.processedInputRecords) return false
if (rawInputRecords != other.rawInputRecords) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.DiscoverInputSchemaResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Schema inferred from the streaming source. It identifies the format of the data in the streaming source and how each data element maps to corresponding columns in the in-application stream that you can create.
*/
public var inputSchema: aws.sdk.kotlin.services.kinesisanalytics.model.SourceSchema? = null
/**
* An array of elements, where each element corresponds to a row in a stream record (a stream record can have more than one row).
*/
public var parsedInputRecords: List>? = null
/**
* Stream data that was modified by the processor specified in the `InputProcessingConfiguration` parameter.
*/
public var processedInputRecords: List? = null
/**
* Raw stream data that was sampled to infer the schema.
*/
public var rawInputRecords: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.DiscoverInputSchemaResponse) : this() {
this.inputSchema = x.inputSchema
this.parsedInputRecords = x.parsedInputRecords
this.processedInputRecords = x.processedInputRecords
this.rawInputRecords = x.rawInputRecords
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.DiscoverInputSchemaResponse = DiscoverInputSchemaResponse(this)
/**
* construct an [aws.sdk.kotlin.services.kinesisanalytics.model.SourceSchema] inside the given [block]
*/
public fun inputSchema(block: aws.sdk.kotlin.services.kinesisanalytics.model.SourceSchema.Builder.() -> kotlin.Unit) {
this.inputSchema = aws.sdk.kotlin.services.kinesisanalytics.model.SourceSchema.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy