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

aws.sdk.kotlin.services.lexmodelsv2.model.DeleteImportResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lexmodelsv2.model



class DeleteImportResponse private constructor(builder: Builder) {
    /**
     * The unique identifier of the deleted import.
     */
    val importId: kotlin.String? = builder.importId
    /**
     * The current status of the deletion. When the deletion is complete,
     * the import will no longer be returned by the ListImports operation and calls to the DescribeImport operation with the import identifier will
     * fail.
     */
    val importStatus: aws.sdk.kotlin.services.lexmodelsv2.model.ImportStatus? = builder.importStatus

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteImportResponse(")
        append("importId=$importId,")
        append("importStatus=$importStatus)")
    }

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

        if (importId != other.importId) return false
        if (importStatus != other.importStatus) return false

        return true
    }

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

    class Builder {
        /**
         * The unique identifier of the deleted import.
         */
        var importId: kotlin.String? = null
        /**
         * The current status of the deletion. When the deletion is complete,
         * the import will no longer be returned by the ListImports operation and calls to the DescribeImport operation with the import identifier will
         * fail.
         */
        var importStatus: aws.sdk.kotlin.services.lexmodelsv2.model.ImportStatus? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.DeleteImportResponse) : this() {
            this.importId = x.importId
            this.importStatus = x.importStatus
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy