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

commonMain.aws.sdk.kotlin.services.codegurureviewer.model.PutRecommendationFeedbackRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.78
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codegurureviewer.model

import aws.smithy.kotlin.runtime.SdkDsl

public class PutRecommendationFeedbackRequest private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the [CodeReview](https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) object.
     */
    public val codeReviewArn: kotlin.String? = builder.codeReviewArn
    /**
     * List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.
     */
    public val reactions: List? = builder.reactions
    /**
     * The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
     */
    public val recommendationId: kotlin.String? = builder.recommendationId

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

    override fun toString(): kotlin.String = buildString {
        append("PutRecommendationFeedbackRequest(")
        append("codeReviewArn=$codeReviewArn,")
        append("reactions=$reactions,")
        append("recommendationId=$recommendationId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = codeReviewArn?.hashCode() ?: 0
        result = 31 * result + (reactions?.hashCode() ?: 0)
        result = 31 * result + (recommendationId?.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 PutRecommendationFeedbackRequest

        if (codeReviewArn != other.codeReviewArn) return false
        if (reactions != other.reactions) return false
        if (recommendationId != other.recommendationId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the [CodeReview](https://docs.aws.amazon.com/codeguru/latest/reviewer-api/API_CodeReview.html) object.
         */
        public var codeReviewArn: kotlin.String? = null
        /**
         * List for storing reactions. Reactions are utf-8 text code for emojis. If you send an empty list it clears all your feedback.
         */
        public var reactions: List? = null
        /**
         * The recommendation ID that can be used to track the provided recommendations and then to collect the feedback.
         */
        public var recommendationId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codegurureviewer.model.PutRecommendationFeedbackRequest) : this() {
            this.codeReviewArn = x.codeReviewArn
            this.reactions = x.reactions
            this.recommendationId = x.recommendationId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy