All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.codecommit.model.DescribeMergeConflictsRequest.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 DescribeMergeConflictsRequest 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.
     */
    public val filePath: kotlin.String? = builder.filePath
    /**
     * 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 where you want to get information about a merge conflict.
     */
    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.DescribeMergeConflictsRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DescribeMergeConflictsRequest(")
        append("conflictDetailLevel=$conflictDetailLevel,")
        append("conflictResolutionStrategy=$conflictResolutionStrategy,")
        append("destinationCommitSpecifier=$destinationCommitSpecifier,")
        append("filePath=$filePath,")
        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 + (filePath?.hashCode() ?: 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 DescribeMergeConflictsRequest

        if (conflictDetailLevel != other.conflictDetailLevel) return false
        if (conflictResolutionStrategy != other.conflictResolutionStrategy) return false
        if (destinationCommitSpecifier != other.destinationCommitSpecifier) return false
        if (filePath != other.filePath) 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.DescribeMergeConflictsRequest = 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.
         */
        public var filePath: kotlin.String? = 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 where you want to get information about a merge conflict.
         */
        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.DescribeMergeConflictsRequest) : this() {
            this.conflictDetailLevel = x.conflictDetailLevel
            this.conflictResolutionStrategy = x.conflictResolutionStrategy
            this.destinationCommitSpecifier = x.destinationCommitSpecifier
            this.filePath = x.filePath
            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.DescribeMergeConflictsRequest = DescribeMergeConflictsRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy