
commonMain.aws.sdk.kotlin.services.codecommit.model.GetMergeCommitResponse.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 GetMergeCommitResponse private constructor(builder: Builder) {
/**
* The commit ID of the merge base.
*/
public val baseCommitId: kotlin.String? = builder.baseCommitId
/**
* The commit ID of the destination commit specifier that was used in the merge evaluation.
*/
public val destinationCommitId: kotlin.String? = builder.destinationCommitId
/**
* The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.
*/
public val mergedCommitId: kotlin.String? = builder.mergedCommitId
/**
* The commit ID of the source commit specifier that was used in the merge evaluation.
*/
public val sourceCommitId: kotlin.String? = builder.sourceCommitId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetMergeCommitResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMergeCommitResponse(")
append("baseCommitId=$baseCommitId,")
append("destinationCommitId=$destinationCommitId,")
append("mergedCommitId=$mergedCommitId,")
append("sourceCommitId=$sourceCommitId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baseCommitId?.hashCode() ?: 0
result = 31 * result + (destinationCommitId?.hashCode() ?: 0)
result = 31 * result + (mergedCommitId?.hashCode() ?: 0)
result = 31 * result + (sourceCommitId?.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 GetMergeCommitResponse
if (baseCommitId != other.baseCommitId) return false
if (destinationCommitId != other.destinationCommitId) return false
if (mergedCommitId != other.mergedCommitId) return false
if (sourceCommitId != other.sourceCommitId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetMergeCommitResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The commit ID of the merge base.
*/
public var baseCommitId: kotlin.String? = null
/**
* The commit ID of the destination commit specifier that was used in the merge evaluation.
*/
public var destinationCommitId: kotlin.String? = null
/**
* The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.
*/
public var mergedCommitId: kotlin.String? = null
/**
* The commit ID of the source commit specifier that was used in the merge evaluation.
*/
public var sourceCommitId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetMergeCommitResponse) : this() {
this.baseCommitId = x.baseCommitId
this.destinationCommitId = x.destinationCommitId
this.mergedCommitId = x.mergedCommitId
this.sourceCommitId = x.sourceCommitId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetMergeCommitResponse = GetMergeCommitResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy