
commonMain.aws.sdk.kotlin.services.codecommit.model.BatchDescribeMergeConflictsRequest.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 BatchDescribeMergeConflictsRequest 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 path of the target files used to describe the conflicts. If not specified, the default is all conflict files.
*/
public val filePaths: List? = builder.filePaths
/**
* The maximum number of files to include in the output.
*/
public val maxConflictFiles: kotlin.Int? = builder.maxConflictFiles
/**
* The maximum number of merge hunks to include in the output.
*/
public val maxMergeHunks: kotlin.Int? = builder.maxMergeHunks
/**
* The merge option or strategy you want to use to merge the code.
*/
public val mergeOption: aws.sdk.kotlin.services.codecommit.model.MergeOptionTypeEnum? = builder.mergeOption
/**
* An enumeration token that, when provided in a request, returns the next batch of the results.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The name of the repository that contains the merge conflicts you want to review.
*/
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.BatchDescribeMergeConflictsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchDescribeMergeConflictsRequest(")
append("conflictDetailLevel=$conflictDetailLevel,")
append("conflictResolutionStrategy=$conflictResolutionStrategy,")
append("destinationCommitSpecifier=$destinationCommitSpecifier,")
append("filePaths=$filePaths,")
append("maxConflictFiles=$maxConflictFiles,")
append("maxMergeHunks=$maxMergeHunks,")
append("mergeOption=$mergeOption,")
append("nextToken=$nextToken,")
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 + (filePaths?.hashCode() ?: 0)
result = 31 * result + (maxConflictFiles ?: 0)
result = 31 * result + (maxMergeHunks ?: 0)
result = 31 * result + (mergeOption?.hashCode() ?: 0)
result = 31 * result + (nextToken?.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 BatchDescribeMergeConflictsRequest
if (conflictDetailLevel != other.conflictDetailLevel) return false
if (conflictResolutionStrategy != other.conflictResolutionStrategy) return false
if (destinationCommitSpecifier != other.destinationCommitSpecifier) return false
if (filePaths != other.filePaths) return false
if (maxConflictFiles != other.maxConflictFiles) return false
if (maxMergeHunks != other.maxMergeHunks) return false
if (mergeOption != other.mergeOption) return false
if (nextToken != other.nextToken) 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.BatchDescribeMergeConflictsRequest = 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 path of the target files used to describe the conflicts. If not specified, the default is all conflict files.
*/
public var filePaths: List? = null
/**
* The maximum number of files to include in the output.
*/
public var maxConflictFiles: kotlin.Int? = null
/**
* The maximum number of merge hunks to include in the output.
*/
public var maxMergeHunks: kotlin.Int? = null
/**
* The merge option or strategy you want to use to merge the code.
*/
public var mergeOption: aws.sdk.kotlin.services.codecommit.model.MergeOptionTypeEnum? = null
/**
* An enumeration token that, when provided in a request, returns the next batch of the results.
*/
public var nextToken: kotlin.String? = null
/**
* The name of the repository that contains the merge conflicts you want to review.
*/
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.BatchDescribeMergeConflictsRequest) : this() {
this.conflictDetailLevel = x.conflictDetailLevel
this.conflictResolutionStrategy = x.conflictResolutionStrategy
this.destinationCommitSpecifier = x.destinationCommitSpecifier
this.filePaths = x.filePaths
this.maxConflictFiles = x.maxConflictFiles
this.maxMergeHunks = x.maxMergeHunks
this.mergeOption = x.mergeOption
this.nextToken = x.nextToken
this.repositoryName = x.repositoryName
this.sourceCommitSpecifier = x.sourceCommitSpecifier
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.BatchDescribeMergeConflictsRequest = BatchDescribeMergeConflictsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy