
commonMain.aws.sdk.kotlin.services.codecommit.model.MergeBranchesByFastForwardResponse.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 MergeBranchesByFastForwardResponse private constructor(builder: Builder) {
/**
* The commit ID of the merge in the destination or target branch.
*/
public val commitId: kotlin.String? = builder.commitId
/**
* The tree ID of the merge in the destination or target branch.
*/
public val treeId: kotlin.String? = builder.treeId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.MergeBranchesByFastForwardResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MergeBranchesByFastForwardResponse(")
append("commitId=$commitId,")
append("treeId=$treeId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = commitId?.hashCode() ?: 0
result = 31 * result + (treeId?.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 MergeBranchesByFastForwardResponse
if (commitId != other.commitId) return false
if (treeId != other.treeId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.MergeBranchesByFastForwardResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The commit ID of the merge in the destination or target branch.
*/
public var commitId: kotlin.String? = null
/**
* The tree ID of the merge in the destination or target branch.
*/
public var treeId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.MergeBranchesByFastForwardResponse) : this() {
this.commitId = x.commitId
this.treeId = x.treeId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.MergeBranchesByFastForwardResponse = MergeBranchesByFastForwardResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy