
commonMain.aws.sdk.kotlin.services.codecommit.model.BatchDescribeMergeConflictsResponse.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 BatchDescribeMergeConflictsResponse private constructor(builder: Builder) {
/**
* The commit ID of the merge base.
*/
public val baseCommitId: kotlin.String? = builder.baseCommitId
/**
* A list of conflicts for each file, including the conflict metadata and the hunks of the differences between the files.
*/
public val conflicts: List = requireNotNull(builder.conflicts) { "A non-null value must be provided for conflicts" }
/**
* The commit ID of the destination commit specifier that was used in the merge evaluation.
*/
public val destinationCommitId: kotlin.String = requireNotNull(builder.destinationCommitId) { "A non-null value must be provided for destinationCommitId" }
/**
* A list of any errors returned while describing the merge conflicts for each file.
*/
public val errors: List? = builder.errors
/**
* An enumeration token that can be used in a request to return the next batch of the results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The commit ID of the source commit specifier that was used in the merge evaluation.
*/
public val sourceCommitId: kotlin.String = requireNotNull(builder.sourceCommitId) { "A non-null value must be provided for sourceCommitId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.BatchDescribeMergeConflictsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDescribeMergeConflictsResponse(")
append("baseCommitId=$baseCommitId,")
append("conflicts=$conflicts,")
append("destinationCommitId=$destinationCommitId,")
append("errors=$errors,")
append("nextToken=$nextToken,")
append("sourceCommitId=$sourceCommitId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baseCommitId?.hashCode() ?: 0
result = 31 * result + (conflicts.hashCode())
result = 31 * result + (destinationCommitId.hashCode())
result = 31 * result + (errors?.hashCode() ?: 0)
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (sourceCommitId.hashCode())
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 BatchDescribeMergeConflictsResponse
if (baseCommitId != other.baseCommitId) return false
if (conflicts != other.conflicts) return false
if (destinationCommitId != other.destinationCommitId) return false
if (errors != other.errors) return false
if (nextToken != other.nextToken) return false
if (sourceCommitId != other.sourceCommitId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.BatchDescribeMergeConflictsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The commit ID of the merge base.
*/
public var baseCommitId: kotlin.String? = null
/**
* A list of conflicts for each file, including the conflict metadata and the hunks of the differences between the files.
*/
public var conflicts: List? = null
/**
* The commit ID of the destination commit specifier that was used in the merge evaluation.
*/
public var destinationCommitId: kotlin.String? = null
/**
* A list of any errors returned while describing the merge conflicts for each file.
*/
public var errors: List? = null
/**
* An enumeration token that can be used in a request to return the next batch of the results.
*/
public var nextToken: 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.BatchDescribeMergeConflictsResponse) : this() {
this.baseCommitId = x.baseCommitId
this.conflicts = x.conflicts
this.destinationCommitId = x.destinationCommitId
this.errors = x.errors
this.nextToken = x.nextToken
this.sourceCommitId = x.sourceCommitId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.BatchDescribeMergeConflictsResponse = BatchDescribeMergeConflictsResponse(this)
internal fun correctErrors(): Builder {
if (conflicts == null) conflicts = emptyList()
if (destinationCommitId == null) destinationCommitId = ""
if (sourceCommitId == null) sourceCommitId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy