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

commonMain.aws.sdk.kotlin.services.customerprofiles.model.FoundByKeyValue.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.customerprofiles.model



/**
 * A data type pair that consists of a `KeyName` and `Values` list that were used to find a profile returned in response to a [SearchProfiles](https://docs.aws.amazon.com/customerprofiles/latest/APIReference/API_SearchProfiles.html) request.
 */
public class FoundByKeyValue private constructor(builder: Builder) {
    /**
     * A searchable identifier of a customer profile.
     */
    public val keyName: kotlin.String? = builder.keyName
    /**
     * A list of key values.
     */
    public val values: List? = builder.values

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

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

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

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

        return true
    }

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

    public class Builder {
        /**
         * A searchable identifier of a customer profile.
         */
        public var keyName: kotlin.String? = null
        /**
         * A list of key values.
         */
        public var values: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.FoundByKeyValue) : this() {
            this.keyName = x.keyName
            this.values = x.values
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.customerprofiles.model.FoundByKeyValue = FoundByKeyValue(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy