
commonMain.aws.sdk.kotlin.services.codecommit.model.PostCommentForComparedCommitResponse.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 PostCommentForComparedCommitResponse private constructor(builder: Builder) {
/**
* In the directionality you established, the blob ID of the after blob.
*/
public val afterBlobId: kotlin.String? = builder.afterBlobId
/**
* In the directionality you established, the full commit ID of the after commit.
*/
public val afterCommitId: kotlin.String? = builder.afterCommitId
/**
* In the directionality you established, the blob ID of the before blob.
*/
public val beforeBlobId: kotlin.String? = builder.beforeBlobId
/**
* In the directionality you established, the full commit ID of the before commit.
*/
public val beforeCommitId: kotlin.String? = builder.beforeCommitId
/**
* The content of the comment you posted.
*/
public val comment: aws.sdk.kotlin.services.codecommit.model.Comment? = builder.comment
/**
* The location of the comment in the comparison between the two commits.
*/
public val location: aws.sdk.kotlin.services.codecommit.model.Location? = builder.location
/**
* The name of the repository where you posted a comment on the comparison between commits.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.PostCommentForComparedCommitResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PostCommentForComparedCommitResponse(")
append("afterBlobId=$afterBlobId,")
append("afterCommitId=$afterCommitId,")
append("beforeBlobId=$beforeBlobId,")
append("beforeCommitId=$beforeCommitId,")
append("comment=$comment,")
append("location=$location,")
append("repositoryName=$repositoryName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = afterBlobId?.hashCode() ?: 0
result = 31 * result + (afterCommitId?.hashCode() ?: 0)
result = 31 * result + (beforeBlobId?.hashCode() ?: 0)
result = 31 * result + (beforeCommitId?.hashCode() ?: 0)
result = 31 * result + (comment?.hashCode() ?: 0)
result = 31 * result + (location?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.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 PostCommentForComparedCommitResponse
if (afterBlobId != other.afterBlobId) return false
if (afterCommitId != other.afterCommitId) return false
if (beforeBlobId != other.beforeBlobId) return false
if (beforeCommitId != other.beforeCommitId) return false
if (comment != other.comment) return false
if (location != other.location) return false
if (repositoryName != other.repositoryName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.PostCommentForComparedCommitResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* In the directionality you established, the blob ID of the after blob.
*/
public var afterBlobId: kotlin.String? = null
/**
* In the directionality you established, the full commit ID of the after commit.
*/
public var afterCommitId: kotlin.String? = null
/**
* In the directionality you established, the blob ID of the before blob.
*/
public var beforeBlobId: kotlin.String? = null
/**
* In the directionality you established, the full commit ID of the before commit.
*/
public var beforeCommitId: kotlin.String? = null
/**
* The content of the comment you posted.
*/
public var comment: aws.sdk.kotlin.services.codecommit.model.Comment? = null
/**
* The location of the comment in the comparison between the two commits.
*/
public var location: aws.sdk.kotlin.services.codecommit.model.Location? = null
/**
* The name of the repository where you posted a comment on the comparison between commits.
*/
public var repositoryName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.PostCommentForComparedCommitResponse) : this() {
this.afterBlobId = x.afterBlobId
this.afterCommitId = x.afterCommitId
this.beforeBlobId = x.beforeBlobId
this.beforeCommitId = x.beforeCommitId
this.comment = x.comment
this.location = x.location
this.repositoryName = x.repositoryName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.PostCommentForComparedCommitResponse = PostCommentForComparedCommitResponse(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)
}
/**
* construct an [aws.sdk.kotlin.services.codecommit.model.Location] inside the given [block]
*/
public fun location(block: aws.sdk.kotlin.services.codecommit.model.Location.Builder.() -> kotlin.Unit) {
this.location = aws.sdk.kotlin.services.codecommit.model.Location.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy