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

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

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

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



/**
 * The history of values for a time series property.
 */
public class PropertyValueHistory private constructor(builder: Builder) {
    /**
     * An object that uniquely identifies an entity property.
     */
    public val entityPropertyReference: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference? = builder.entityPropertyReference
    /**
     * A list of objects that contain information about the values in the history of a time series property.
     */
    public val values: List? = builder.values

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

    override fun toString(): kotlin.String = buildString {
        append("PropertyValueHistory(")
        append("entityPropertyReference=$entityPropertyReference,")
        append("values=$values")
        append(")")
    }

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

        if (entityPropertyReference != other.entityPropertyReference) return false
        if (values != other.values) return false

        return true
    }

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

    public class Builder {
        /**
         * An object that uniquely identifies an entity property.
         */
        public var entityPropertyReference: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference? = null
        /**
         * A list of objects that contain information about the values in the history of a time series property.
         */
        public var values: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.PropertyValueHistory) : this() {
            this.entityPropertyReference = x.entityPropertyReference
            this.values = x.values
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference] inside the given [block]
         */
        public fun entityPropertyReference(block: aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference.Builder.() -> kotlin.Unit) {
            this.entityPropertyReference = aws.sdk.kotlin.services.iottwinmaker.model.EntityPropertyReference.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy