
commonMain.aws.sdk.kotlin.services.codecommit.model.PostCommentReplyRequest.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 PostCommentReplyRequest private constructor(builder: Builder) {
/**
* A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The contents of your reply to a comment.
*/
public val content: kotlin.String? = builder.content
/**
* The system-generated ID of the comment to which you want to reply. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
*/
public val inReplyTo: kotlin.String? = builder.inReplyTo
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.PostCommentReplyRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PostCommentReplyRequest(")
append("clientRequestToken=$clientRequestToken,")
append("content=$content,")
append("inReplyTo=$inReplyTo")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (content?.hashCode() ?: 0)
result = 31 * result + (inReplyTo?.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 PostCommentReplyRequest
if (clientRequestToken != other.clientRequestToken) return false
if (content != other.content) return false
if (inReplyTo != other.inReplyTo) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.PostCommentReplyRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The contents of your reply to a comment.
*/
public var content: kotlin.String? = null
/**
* The system-generated ID of the comment to which you want to reply. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
*/
public var inReplyTo: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.PostCommentReplyRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.content = x.content
this.inReplyTo = x.inReplyTo
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.PostCommentReplyRequest = PostCommentReplyRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy