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

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

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

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



/**
 * Provides additional mapping information when JSON is the record format on the streaming source.
 */
public class JsonMappingParameters private constructor(builder: Builder) {
    /**
     * Path to the top-level parent that contains the records.
     */
    public val recordRowPath: kotlin.String = requireNotNull(builder.recordRowPath) { "A non-null value must be provided for recordRowPath" }

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

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

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

        if (recordRowPath != other.recordRowPath) return false

        return true
    }

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

    public class Builder {
        /**
         * Path to the top-level parent that contains the records.
         */
        public var recordRowPath: kotlin.String? = null

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

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

        internal fun correctErrors(): Builder {
            if (recordRowPath == null) recordRowPath = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy