
commonMain.aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentSource.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
/**
* Information about comments added to a document review request.
*/
public class DocumentReviewCommentSource private constructor(builder: Builder) {
/**
* The content of a comment entered by a user who requests a review of a new document version, or who reviews the new version.
*/
public val content: kotlin.String? = builder.content
/**
* The type of information added to a review request. Currently, only the value `Comment` is supported.
*/
public val type: aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentSource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DocumentReviewCommentSource(")
append("content=$content,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = content?.hashCode() ?: 0
result = 31 * 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 DocumentReviewCommentSource
if (content != other.content) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentSource = Builder(this).apply(block).build()
public class Builder {
/**
* The content of a comment entered by a user who requests a review of a new document version, or who reviews the new version.
*/
public var content: kotlin.String? = null
/**
* The type of information added to a review request. Currently, only the value `Comment` is supported.
*/
public var type: aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentSource) : this() {
this.content = x.content
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.DocumentReviewCommentSource = DocumentReviewCommentSource(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy