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

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

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

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



public class BatchCheckLayerAvailabilityResponse private constructor(builder: Builder) {
    /**
     * Any failures associated with the call.
     */
    public val failures: List? = builder.failures
    /**
     * A list of image layer objects corresponding to the image layer references in the request.
     */
    public val layers: List? = builder.layers

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

    override fun toString(): kotlin.String = buildString {
        append("BatchCheckLayerAvailabilityResponse(")
        append("failures=$failures,")
        append("layers=$layers")
        append(")")
    }

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

        if (failures != other.failures) return false
        if (layers != other.layers) return false

        return true
    }

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

    public class Builder {
        /**
         * Any failures associated with the call.
         */
        public var failures: List? = null
        /**
         * A list of image layer objects corresponding to the image layer references in the request.
         */
        public var layers: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ecr.model.BatchCheckLayerAvailabilityResponse) : this() {
            this.failures = x.failures
            this.layers = x.layers
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy