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

commonMain.aws.sdk.kotlin.services.iottwinmaker.model.InterpolationParameters.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iottwinmaker.model



/**
 * An object that specifies how to interpolate data in a list.
 */
public class InterpolationParameters private constructor(builder: Builder) {
    /**
     * The interpolation type.
     */
    public val interpolationType: aws.sdk.kotlin.services.iottwinmaker.model.InterpolationType? = builder.interpolationType
    /**
     * The interpolation time interval in seconds.
     */
    public val intervalInSeconds: kotlin.Long? = builder.intervalInSeconds

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

    override fun toString(): kotlin.String = buildString {
        append("InterpolationParameters(")
        append("interpolationType=$interpolationType,")
        append("intervalInSeconds=$intervalInSeconds")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = interpolationType?.hashCode() ?: 0
        result = 31 * result + (intervalInSeconds?.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 InterpolationParameters

        if (interpolationType != other.interpolationType) return false
        if (intervalInSeconds != other.intervalInSeconds) return false

        return true
    }

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

    public class Builder {
        /**
         * The interpolation type.
         */
        public var interpolationType: aws.sdk.kotlin.services.iottwinmaker.model.InterpolationType? = null
        /**
         * The interpolation time interval in seconds.
         */
        public var intervalInSeconds: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.InterpolationParameters) : this() {
            this.interpolationType = x.interpolationType
            this.intervalInSeconds = x.intervalInSeconds
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy