
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
import aws.smithy.kotlin.runtime.SdkDsl
/**
* 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()
@SdkDsl
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