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

commonMain.aws.sdk.kotlin.services.codeartifact.model.UpdatePackageVersionsStatusResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.codeartifact.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdatePackageVersionsStatusResponse private constructor(builder: Builder) {
    /**
     * A list of `SuccessfulPackageVersionInfo` objects, one for each package version with a status that successfully updated.
     */
    public val failedVersions: Map? = builder.failedVersions
    /**
     * A list of `PackageVersionError` objects, one for each package version with a status that failed to update.
     */
    public val successfulVersions: Map? = builder.successfulVersions

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

    override fun toString(): kotlin.String = buildString {
        append("UpdatePackageVersionsStatusResponse(")
        append("failedVersions=$failedVersions,")
        append("successfulVersions=$successfulVersions")
        append(")")
    }

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

        if (failedVersions != other.failedVersions) return false
        if (successfulVersions != other.successfulVersions) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A list of `SuccessfulPackageVersionInfo` objects, one for each package version with a status that successfully updated.
         */
        public var failedVersions: Map? = null
        /**
         * A list of `PackageVersionError` objects, one for each package version with a status that failed to update.
         */
        public var successfulVersions: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codeartifact.model.UpdatePackageVersionsStatusResponse) : this() {
            this.failedVersions = x.failedVersions
            this.successfulVersions = x.successfulVersions
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy