
commonMain.aws.sdk.kotlin.services.codecommit.model.UpdateCommentRequest.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 UpdateCommentRequest private constructor(builder: Builder) {
/**
* The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
*/
public val commentId: kotlin.String? = builder.commentId
/**
* The updated content to replace the existing content of the comment.
*/
public val content: kotlin.String? = builder.content
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.UpdateCommentRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateCommentRequest(")
append("commentId=$commentId,")
append("content=$content")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commentId?.hashCode() ?: 0
result = 31 * result + (content?.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 UpdateCommentRequest
if (commentId != other.commentId) return false
if (content != other.content) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.UpdateCommentRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The system-generated ID of the comment you want to update. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
*/
public var commentId: kotlin.String? = null
/**
* The updated content to replace the existing content of the comment.
*/
public var content: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.UpdateCommentRequest) : this() {
this.commentId = x.commentId
this.content = x.content
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.UpdateCommentRequest = UpdateCommentRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy