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

commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.UserFeedback.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codeguruprofiler.model



/**
 * Feedback that can be submitted for each instance of an anomaly by the user. Feedback is be used for improvements in generating recommendations for the application.
 */
public class UserFeedback private constructor(builder: Builder) {
    /**
     * Optional `Positive` or `Negative` feedback submitted by the user about whether the recommendation is useful or not.
     */
    public val type: aws.sdk.kotlin.services.codeguruprofiler.model.FeedbackType? = builder.type

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

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

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

        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * Optional `Positive` or `Negative` feedback submitted by the user about whether the recommendation is useful or not.
         */
        public var type: aws.sdk.kotlin.services.codeguruprofiler.model.FeedbackType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.UserFeedback) : this() {
            this.type = x.type
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy