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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

public class GetMatchesResponse private constructor(builder: Builder) {
    /**
     * The timestamp this version of Match Result generated.
     */
    public val matchGenerationDate: aws.smithy.kotlin.runtime.time.Instant? = builder.matchGenerationDate
    /**
     * The list of matched profiles for this instance.
     */
    public val matches: List? = builder.matches
    /**
     * If there are additional results, this is the token for the next set of results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * The number of potential matches found.
     */
    public val potentialMatches: kotlin.Int? = builder.potentialMatches

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

    override fun toString(): kotlin.String = buildString {
        append("GetMatchesResponse(")
        append("matchGenerationDate=$matchGenerationDate,")
        append("matches=$matches,")
        append("nextToken=$nextToken,")
        append("potentialMatches=$potentialMatches")
        append(")")
    }

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

        if (matchGenerationDate != other.matchGenerationDate) return false
        if (matches != other.matches) return false
        if (nextToken != other.nextToken) return false
        if (potentialMatches != other.potentialMatches) return false

        return true
    }

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

    public class Builder {
        /**
         * The timestamp this version of Match Result generated.
         */
        public var matchGenerationDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The list of matched profiles for this instance.
         */
        public var matches: List? = null
        /**
         * If there are additional results, this is the token for the next set of results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * The number of potential matches found.
         */
        public var potentialMatches: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.customerprofiles.model.GetMatchesResponse) : this() {
            this.matchGenerationDate = x.matchGenerationDate
            this.matches = x.matches
            this.nextToken = x.nextToken
            this.potentialMatches = x.potentialMatches
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy