
commonMain.aws.sdk.kotlin.services.codecommit.model.MergeOperations.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
/**
* Information about the file operation conflicts in a merge operation.
*/
public class MergeOperations private constructor(builder: Builder) {
/**
* The operation on a file in the destination of a merge or pull request.
*/
public val destination: aws.sdk.kotlin.services.codecommit.model.ChangeTypeEnum? = builder.destination
/**
* The operation (add, modify, or delete) on a file in the source of a merge or pull request.
*/
public val source: aws.sdk.kotlin.services.codecommit.model.ChangeTypeEnum? = builder.source
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.MergeOperations = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MergeOperations(")
append("destination=$destination,")
append("source=$source")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destination?.hashCode() ?: 0
result = 31 * result + (source?.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 MergeOperations
if (destination != other.destination) return false
if (source != other.source) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.MergeOperations = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The operation on a file in the destination of a merge or pull request.
*/
public var destination: aws.sdk.kotlin.services.codecommit.model.ChangeTypeEnum? = null
/**
* The operation (add, modify, or delete) on a file in the source of a merge or pull request.
*/
public var source: aws.sdk.kotlin.services.codecommit.model.ChangeTypeEnum? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.MergeOperations) : this() {
this.destination = x.destination
this.source = x.source
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.MergeOperations = MergeOperations(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy