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

commonMain.aws.sdk.kotlin.services.ecr.model.GetDownloadUrlForLayerResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ecr.model



public class GetDownloadUrlForLayerResponse private constructor(builder: Builder) {
    /**
     * The pre-signed Amazon S3 download URL for the requested layer.
     */
    public val downloadUrl: kotlin.String? = builder.downloadUrl
    /**
     * The digest of the image layer to download.
     */
    public val layerDigest: kotlin.String? = builder.layerDigest

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

    override fun toString(): kotlin.String = buildString {
        append("GetDownloadUrlForLayerResponse(")
        append("downloadUrl=$downloadUrl,")
        append("layerDigest=$layerDigest")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = downloadUrl?.hashCode() ?: 0
        result = 31 * result + (layerDigest?.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 GetDownloadUrlForLayerResponse

        if (downloadUrl != other.downloadUrl) return false
        if (layerDigest != other.layerDigest) return false

        return true
    }

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

    public class Builder {
        /**
         * The pre-signed Amazon S3 download URL for the requested layer.
         */
        public var downloadUrl: kotlin.String? = null
        /**
         * The digest of the image layer to download.
         */
        public var layerDigest: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ecr.model.GetDownloadUrlForLayerResponse) : this() {
            this.downloadUrl = x.downloadUrl
            this.layerDigest = x.layerDigest
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ecr.model.GetDownloadUrlForLayerResponse = GetDownloadUrlForLayerResponse(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy