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

commonMain.aws.sdk.kotlin.services.entityresolution.model.BatchDeleteUniqueIdResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.entityresolution.model

import aws.smithy.kotlin.runtime.SdkDsl

public class BatchDeleteUniqueIdResponse private constructor(builder: Builder) {
    /**
     * The unique IDs that were deleted.
     */
    public val deleted: List = requireNotNull(builder.deleted) { "A non-null value must be provided for deleted" }
    /**
     * The unique IDs that were disconnected.
     */
    public val disconnectedUniqueIds: List = requireNotNull(builder.disconnectedUniqueIds) { "A non-null value must be provided for disconnectedUniqueIds" }
    /**
     * The errors from deleting multiple unique IDs.
     */
    public val errors: List = requireNotNull(builder.errors) { "A non-null value must be provided for errors" }
    /**
     * The status of the batch delete unique ID operation.
     */
    public val status: aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }

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

    override fun toString(): kotlin.String = buildString {
        append("BatchDeleteUniqueIdResponse(")
        append("deleted=$deleted,")
        append("disconnectedUniqueIds=$disconnectedUniqueIds,")
        append("errors=$errors,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deleted.hashCode()
        result = 31 * result + (disconnectedUniqueIds.hashCode())
        result = 31 * result + (errors.hashCode())
        result = 31 * result + (status.hashCode())
        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 BatchDeleteUniqueIdResponse

        if (deleted != other.deleted) return false
        if (disconnectedUniqueIds != other.disconnectedUniqueIds) return false
        if (errors != other.errors) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The unique IDs that were deleted.
         */
        public var deleted: List? = null
        /**
         * The unique IDs that were disconnected.
         */
        public var disconnectedUniqueIds: List? = null
        /**
         * The errors from deleting multiple unique IDs.
         */
        public var errors: List? = null
        /**
         * The status of the batch delete unique ID operation.
         */
        public var status: aws.sdk.kotlin.services.entityresolution.model.DeleteUniqueIdStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.entityresolution.model.BatchDeleteUniqueIdResponse) : this() {
            this.deleted = x.deleted
            this.disconnectedUniqueIds = x.disconnectedUniqueIds
            this.errors = x.errors
            this.status = x.status
        }

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

        internal fun correctErrors(): Builder {
            if (deleted == null) deleted = emptyList()
            if (disconnectedUniqueIds == null) disconnectedUniqueIds = emptyList()
            if (errors == null) errors = emptyList()
            if (status == null) status = DeleteUniqueIdStatus.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy