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

commonMain.aws.sdk.kotlin.services.codecommit.model.DeleteFileEntry.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

/**
 * A file that is deleted as part of a commit.
 */
public class DeleteFileEntry private constructor(builder: Builder) {
    /**
     * The full path of the file to be deleted, including the name of the file.
     */
    public val filePath: kotlin.String = requireNotNull(builder.filePath) { "A non-null value must be provided for filePath" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.DeleteFileEntry = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("DeleteFileEntry(")
        append("filePath=$filePath")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = filePath.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 DeleteFileEntry

        if (filePath != other.filePath) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.DeleteFileEntry = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The full path of the file to be deleted, including the name of the file.
         */
        public var filePath: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codecommit.model.DeleteFileEntry) : this() {
            this.filePath = x.filePath
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.codecommit.model.DeleteFileEntry = DeleteFileEntry(this)

        internal fun correctErrors(): Builder {
            if (filePath == null) filePath = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy