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

commonMain.aws.sdk.kotlin.services.codecommit.model.GetCommentReactionsRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codecommit.model

import aws.smithy.kotlin.runtime.SdkDsl

public class GetCommentReactionsRequest private constructor(builder: Builder) {
    /**
     * The ID of the comment for which you want to get reactions information.
     */
    public val commentId: kotlin.String? = builder.commentId
    /**
     * A non-zero, non-negative integer used to limit the number of returned results. The default is the same as the allowed maximum, 1,000.
     */
    public val maxResults: kotlin.Int? = builder.maxResults
    /**
     * An enumeration token that, when provided in a request, returns the next batch of the results.
     */
    public val nextToken: kotlin.String? = builder.nextToken
    /**
     * Optional. The Amazon Resource Name (ARN) of the user or identity for which you want to get reaction information.
     */
    public val reactionUserArn: kotlin.String? = builder.reactionUserArn

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

    override fun toString(): kotlin.String = buildString {
        append("GetCommentReactionsRequest(")
        append("commentId=$commentId,")
        append("maxResults=$maxResults,")
        append("nextToken=$nextToken,")
        append("reactionUserArn=$reactionUserArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = commentId?.hashCode() ?: 0
        result = 31 * result + (maxResults ?: 0)
        result = 31 * result + (nextToken?.hashCode() ?: 0)
        result = 31 * result + (reactionUserArn?.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 GetCommentReactionsRequest

        if (commentId != other.commentId) return false
        if (maxResults != other.maxResults) return false
        if (nextToken != other.nextToken) return false
        if (reactionUserArn != other.reactionUserArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the comment for which you want to get reactions information.
         */
        public var commentId: kotlin.String? = null
        /**
         * A non-zero, non-negative integer used to limit the number of returned results. The default is the same as the allowed maximum, 1,000.
         */
        public var maxResults: kotlin.Int? = null
        /**
         * An enumeration token that, when provided in a request, returns the next batch of the results.
         */
        public var nextToken: kotlin.String? = null
        /**
         * Optional. The Amazon Resource Name (ARN) of the user or identity for which you want to get reaction information.
         */
        public var reactionUserArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetCommentReactionsRequest) : this() {
            this.commentId = x.commentId
            this.maxResults = x.maxResults
            this.nextToken = x.nextToken
            this.reactionUserArn = x.reactionUserArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy