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