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

commonMain.aws.sdk.kotlin.services.kendra.model.UpdateFeaturedResultsSetResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kendra.model



public class UpdateFeaturedResultsSetResponse private constructor(builder: Builder) {
    /**
     * Information on the set of featured results. This includes the identifier of the featured results set, whether the featured results set is active or inactive, when the featured results set was last updated, and more.
     */
    public val featuredResultsSet: aws.sdk.kotlin.services.kendra.model.FeaturedResultsSet? = builder.featuredResultsSet

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateFeaturedResultsSetResponse(")
        append("featuredResultsSet=$featuredResultsSet")
        append(")")
    }

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

        if (featuredResultsSet != other.featuredResultsSet) return false

        return true
    }

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

    public class Builder {
        /**
         * Information on the set of featured results. This includes the identifier of the featured results set, whether the featured results set is active or inactive, when the featured results set was last updated, and more.
         */
        public var featuredResultsSet: aws.sdk.kotlin.services.kendra.model.FeaturedResultsSet? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kendra.model.UpdateFeaturedResultsSetResponse) : this() {
            this.featuredResultsSet = x.featuredResultsSet
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy