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

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

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

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



public class GetPropertyValueHistoryResponse private constructor(builder: Builder) {
    /**
     * The string that specifies the next page of results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.
     */
    public val propertyValues: List = requireNotNull(builder.propertyValues) { "A non-null value must be provided for propertyValues" }

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

    override fun toString(): kotlin.String = buildString {
        append("GetPropertyValueHistoryResponse(")
        append("nextToken=$nextToken,")
        append("propertyValues=$propertyValues")
        append(")")
    }

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

        if (nextToken != other.nextToken) return false
        if (propertyValues != other.propertyValues) return false

        return true
    }

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

    public class Builder {
        /**
         * The string that specifies the next page of results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * An object that maps strings to the property definitions in the component type. Each string in the mapping must be unique to this object.
         */
        public var propertyValues: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iottwinmaker.model.GetPropertyValueHistoryResponse) : this() {
            this.nextToken = x.nextToken
            this.propertyValues = x.propertyValues
        }

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

        internal fun correctErrors(): Builder {
            if (propertyValues == null) propertyValues = emptyList()
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy