commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.UnableToDetectSchemaException.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
import aws.smithy.kotlin.runtime.ServiceErrorMetadata
/**
* Data format is not valid. Amazon Kinesis Analytics is not able to detect schema for the given streaming source.
*/
public class UnableToDetectSchemaException private constructor(builder: Builder) : KinesisAnalyticsException(builder.message) {
public val processedInputRecords: List? = builder.processedInputRecords
public val rawInputRecords: List? = builder.rawInputRecords
init {
sdkErrorMetadata.attributes[ServiceErrorMetadata.ErrorType] = ErrorType.Client
}
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.UnableToDetectSchemaException = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UnableToDetectSchemaException(")
append("message=$message,")
append("processedInputRecords=$processedInputRecords,")
append("rawInputRecords=$rawInputRecords")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = message?.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 UnableToDetectSchemaException
if (message != other.message) 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.UnableToDetectSchemaException = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
public var message: kotlin.String? = null
public var processedInputRecords: List? = null
public var rawInputRecords: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.UnableToDetectSchemaException) : this() {
this.message = x.message
this.processedInputRecords = x.processedInputRecords
this.rawInputRecords = x.rawInputRecords
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.UnableToDetectSchemaException = UnableToDetectSchemaException(this)
internal fun correctErrors(): Builder {
return this
}
}
}