All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.kinesisanalytics.model.DestinationSchema.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.kinesisanalytics.model



/**
 * Describes the data format when records are written to the destination. For more information, see [Configuring Application Output](https://docs.aws.amazon.com/kinesisanalytics/latest/dev/how-it-works-output.html).
 */
public class DestinationSchema private constructor(builder: Builder) {
    /**
     * Specifies the format of the records on the output stream.
     */
    public val recordFormatType: aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormatType = requireNotNull(builder.recordFormatType) { "A non-null value must be provided for recordFormatType" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kinesisanalytics.model.DestinationSchema = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DestinationSchema(")
        append("recordFormatType=$recordFormatType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = recordFormatType.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 DestinationSchema

        if (recordFormatType != other.recordFormatType) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kinesisanalytics.model.DestinationSchema = Builder(this).apply(block).build()

    public class Builder {
        /**
         * Specifies the format of the records on the output stream.
         */
        public var recordFormatType: aws.sdk.kotlin.services.kinesisanalytics.model.RecordFormatType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kinesisanalytics.model.DestinationSchema) : this() {
            this.recordFormatType = x.recordFormatType
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.kinesisanalytics.model.DestinationSchema = DestinationSchema(this)

        internal fun correctErrors(): Builder {
            if (recordFormatType == null) recordFormatType = RecordFormatType.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy