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

commonMain.aws.sdk.kotlin.services.ecrpublic.model.CompleteLayerUploadResponse.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ecrpublic.model

import aws.smithy.kotlin.runtime.SdkDsl

public class CompleteLayerUploadResponse private constructor(builder: Builder) {
    /**
     * The `sha256` digest of the image layer.
     */
    public val layerDigest: kotlin.String? = builder.layerDigest
    /**
     * The public registry ID that's associated with the request.
     */
    public val registryId: kotlin.String? = builder.registryId
    /**
     * The repository name that's associated with the request.
     */
    public val repositoryName: kotlin.String? = builder.repositoryName
    /**
     * The upload ID that's associated with the layer.
     */
    public val uploadId: kotlin.String? = builder.uploadId

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

    override fun toString(): kotlin.String = buildString {
        append("CompleteLayerUploadResponse(")
        append("layerDigest=$layerDigest,")
        append("registryId=$registryId,")
        append("repositoryName=$repositoryName,")
        append("uploadId=$uploadId")
        append(")")
    }

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

        if (layerDigest != other.layerDigest) return false
        if (registryId != other.registryId) return false
        if (repositoryName != other.repositoryName) return false
        if (uploadId != other.uploadId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The `sha256` digest of the image layer.
         */
        public var layerDigest: kotlin.String? = null
        /**
         * The public registry ID that's associated with the request.
         */
        public var registryId: kotlin.String? = null
        /**
         * The repository name that's associated with the request.
         */
        public var repositoryName: kotlin.String? = null
        /**
         * The upload ID that's associated with the layer.
         */
        public var uploadId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ecrpublic.model.CompleteLayerUploadResponse) : this() {
            this.layerDigest = x.layerDigest
            this.registryId = x.registryId
            this.repositoryName = x.repositoryName
            this.uploadId = x.uploadId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy