
commonMain.aws.sdk.kotlin.services.codecommit.model.PostCommentReplyResponse.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 PostCommentReplyResponse private constructor(builder: Builder) {
/**
* Information about the reply to a comment.
*/
public val comment: aws.sdk.kotlin.services.codecommit.model.Comment? = builder.comment
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.PostCommentReplyResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PostCommentReplyResponse(")
append("comment=$comment")
append(")")
}
override fun hashCode(): kotlin.Int {
var 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 PostCommentReplyResponse
if (comment != other.comment) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.PostCommentReplyResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Information about the reply to a comment.
*/
public var comment: aws.sdk.kotlin.services.codecommit.model.Comment? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.PostCommentReplyResponse) : this() {
this.comment = x.comment
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.PostCommentReplyResponse = PostCommentReplyResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codecommit.model.Comment] inside the given [block]
*/
public fun comment(block: aws.sdk.kotlin.services.codecommit.model.Comment.Builder.() -> kotlin.Unit) {
this.comment = aws.sdk.kotlin.services.codecommit.model.Comment.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy