
commonMain.aws.sdk.kotlin.services.codecommit.model.GetMergeOptionsRequest.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 GetMergeOptionsRequest private constructor(builder: Builder) {
/**
* The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
*/
public val conflictDetailLevel: aws.sdk.kotlin.services.codecommit.model.ConflictDetailLevelTypeEnum? = builder.conflictDetailLevel
/**
* Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
*/
public val conflictResolutionStrategy: aws.sdk.kotlin.services.codecommit.model.ConflictResolutionStrategyTypeEnum? = builder.conflictResolutionStrategy
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
*/
public val destinationCommitSpecifier: kotlin.String? = builder.destinationCommitSpecifier
/**
* The name of the repository that contains the commits about which you want to get merge options.
*/
public val repositoryName: kotlin.String? = builder.repositoryName
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
*/
public val sourceCommitSpecifier: kotlin.String? = builder.sourceCommitSpecifier
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.GetMergeOptionsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetMergeOptionsRequest(")
append("conflictDetailLevel=$conflictDetailLevel,")
append("conflictResolutionStrategy=$conflictResolutionStrategy,")
append("destinationCommitSpecifier=$destinationCommitSpecifier,")
append("repositoryName=$repositoryName,")
append("sourceCommitSpecifier=$sourceCommitSpecifier")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = conflictDetailLevel?.hashCode() ?: 0
result = 31 * result + (conflictResolutionStrategy?.hashCode() ?: 0)
result = 31 * result + (destinationCommitSpecifier?.hashCode() ?: 0)
result = 31 * result + (repositoryName?.hashCode() ?: 0)
result = 31 * result + (sourceCommitSpecifier?.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 GetMergeOptionsRequest
if (conflictDetailLevel != other.conflictDetailLevel) return false
if (conflictResolutionStrategy != other.conflictResolutionStrategy) return false
if (destinationCommitSpecifier != other.destinationCommitSpecifier) return false
if (repositoryName != other.repositoryName) return false
if (sourceCommitSpecifier != other.sourceCommitSpecifier) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.GetMergeOptionsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.
*/
public var conflictDetailLevel: aws.sdk.kotlin.services.codecommit.model.ConflictDetailLevelTypeEnum? = null
/**
* Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.
*/
public var conflictResolutionStrategy: aws.sdk.kotlin.services.codecommit.model.ConflictResolutionStrategyTypeEnum? = null
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
*/
public var destinationCommitSpecifier: kotlin.String? = null
/**
* The name of the repository that contains the commits about which you want to get merge options.
*/
public var repositoryName: kotlin.String? = null
/**
* The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
*/
public var sourceCommitSpecifier: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.GetMergeOptionsRequest) : this() {
this.conflictDetailLevel = x.conflictDetailLevel
this.conflictResolutionStrategy = x.conflictResolutionStrategy
this.destinationCommitSpecifier = x.destinationCommitSpecifier
this.repositoryName = x.repositoryName
this.sourceCommitSpecifier = x.sourceCommitSpecifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.GetMergeOptionsRequest = GetMergeOptionsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy