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

commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.StartImportResponse.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.lexmodelbuildingservice.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

public class StartImportResponse private constructor(builder: Builder) {
    /**
     * A timestamp for the date and time that the import job was requested.
     */
    public val createdDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createdDate
    /**
     * The identifier for the specific import job.
     */
    public val importId: kotlin.String? = builder.importId
    /**
     * The status of the import job. If the status is `FAILED`, you can get the reason for the failure using the `GetImport` operation.
     */
    public val importStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ImportStatus? = builder.importStatus
    /**
     * The action to take when there is a merge conflict.
     */
    public val mergeStrategy: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MergeStrategy? = builder.mergeStrategy
    /**
     * The name given to the import job.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The type of resource to import.
     */
    public val resourceType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ResourceType? = builder.resourceType
    /**
     * A list of tags added to the imported bot.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("StartImportResponse(")
        append("createdDate=$createdDate,")
        append("importId=$importId,")
        append("importStatus=$importStatus,")
        append("mergeStrategy=$mergeStrategy,")
        append("name=$name,")
        append("resourceType=$resourceType,")
        append("tags=$tags")
        append(")")
    }

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

        if (createdDate != other.createdDate) return false
        if (importId != other.importId) return false
        if (importStatus != other.importStatus) return false
        if (mergeStrategy != other.mergeStrategy) return false
        if (name != other.name) return false
        if (resourceType != other.resourceType) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A timestamp for the date and time that the import job was requested.
         */
        public var createdDate: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier for the specific import job.
         */
        public var importId: kotlin.String? = null
        /**
         * The status of the import job. If the status is `FAILED`, you can get the reason for the failure using the `GetImport` operation.
         */
        public var importStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ImportStatus? = null
        /**
         * The action to take when there is a merge conflict.
         */
        public var mergeStrategy: aws.sdk.kotlin.services.lexmodelbuildingservice.model.MergeStrategy? = null
        /**
         * The name given to the import job.
         */
        public var name: kotlin.String? = null
        /**
         * The type of resource to import.
         */
        public var resourceType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ResourceType? = null
        /**
         * A list of tags added to the imported bot.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.StartImportResponse) : this() {
            this.createdDate = x.createdDate
            this.importId = x.importId
            this.importStatus = x.importStatus
            this.mergeStrategy = x.mergeStrategy
            this.name = x.name
            this.resourceType = x.resourceType
            this.tags = x.tags
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy