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

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

/**
 * Returns information about a symbolic link in a repository folder.
 */
public class SymbolicLink private constructor(builder: Builder) {
    /**
     * The fully qualified path to the folder that contains the symbolic link.
     */
    public val absolutePath: kotlin.String? = builder.absolutePath
    /**
     * The blob ID that contains the information about the symbolic link.
     */
    public val blobId: kotlin.String? = builder.blobId
    /**
     * The file mode permissions of the blob that cotains information about the symbolic link.
     */
    public val fileMode: aws.sdk.kotlin.services.codecommit.model.FileModeTypeEnum? = builder.fileMode
    /**
     * The relative path of the symbolic link from the folder where the query originated.
     */
    public val relativePath: kotlin.String? = builder.relativePath

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

    override fun toString(): kotlin.String = buildString {
        append("SymbolicLink(")
        append("absolutePath=$absolutePath,")
        append("blobId=$blobId,")
        append("fileMode=$fileMode,")
        append("relativePath=$relativePath")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = absolutePath?.hashCode() ?: 0
        result = 31 * result + (blobId?.hashCode() ?: 0)
        result = 31 * result + (fileMode?.hashCode() ?: 0)
        result = 31 * result + (relativePath?.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 SymbolicLink

        if (absolutePath != other.absolutePath) return false
        if (blobId != other.blobId) return false
        if (fileMode != other.fileMode) return false
        if (relativePath != other.relativePath) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The fully qualified path to the folder that contains the symbolic link.
         */
        public var absolutePath: kotlin.String? = null
        /**
         * The blob ID that contains the information about the symbolic link.
         */
        public var blobId: kotlin.String? = null
        /**
         * The file mode permissions of the blob that cotains information about the symbolic link.
         */
        public var fileMode: aws.sdk.kotlin.services.codecommit.model.FileModeTypeEnum? = null
        /**
         * The relative path of the symbolic link from the folder where the query originated.
         */
        public var relativePath: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codecommit.model.SymbolicLink) : this() {
            this.absolutePath = x.absolutePath
            this.blobId = x.blobId
            this.fileMode = x.fileMode
            this.relativePath = x.relativePath
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy