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

commonMain.aws.sdk.kotlin.services.ssm.model.DocumentReviews.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model



/**
 * Information about a document approval review.
 */
public class DocumentReviews private constructor(builder: Builder) {
    /**
     * The action to take on a document approval review request.
     */
    public val action: aws.sdk.kotlin.services.ssm.model.DocumentReviewAction = requireNotNull(builder.action) { "A non-null value must be provided for action" }
    /**
     * A comment entered by a user in your organization about the document review request.
     */
    public val comment: List? = builder.comment

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

    override fun toString(): kotlin.String = buildString {
        append("DocumentReviews(")
        append("action=$action,")
        append("comment=$comment")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = action.hashCode()
        result = 31 * result + (comment?.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 DocumentReviews

        if (action != other.action) return false
        if (comment != other.comment) return false

        return true
    }

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

    public class Builder {
        /**
         * The action to take on a document approval review request.
         */
        public var action: aws.sdk.kotlin.services.ssm.model.DocumentReviewAction? = null
        /**
         * A comment entered by a user in your organization about the document review request.
         */
        public var comment: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.DocumentReviews) : this() {
            this.action = x.action
            this.comment = x.comment
        }

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

        internal fun correctErrors(): Builder {
            if (action == null) action = DocumentReviewAction.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy