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

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

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

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

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

class DescribeExportResponse private constructor(builder: Builder) {
    /**
     * The date and time that the export was created.
     */
    val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
    /**
     * A pre-signed S3 URL that points to the bot or bot locale archive.
     * The URL is only available for 5 minutes after calling the
     * DescribeExport operation.
     */
    val downloadUrl: kotlin.String? = builder.downloadUrl
    /**
     * The unique identifier of the described export.
     */
    val exportId: kotlin.String? = builder.exportId
    /**
     * The status of the export. When the status is Complete
     * the export archive file is available for download.
     */
    val exportStatus: aws.sdk.kotlin.services.lexmodelsv2.model.ExportStatus? = builder.exportStatus
    /**
     * If the exportStatus is failed, contains one or more
     * reasons why the export could not be completed.
     */
    val failureReasons: List? = builder.failureReasons
    /**
     * The file format used in the files that describe the resource.
     */
    val fileFormat: aws.sdk.kotlin.services.lexmodelsv2.model.ImportExportFileFormat? = builder.fileFormat
    /**
     * The last date and time that the export was updated.
     */
    val lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDateTime
    /**
     * The bot, bot ID, and optional locale ID of the exported bot or bot
     * locale.
     */
    val resourceSpecification: aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification? = builder.resourceSpecification

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeExportResponse(")
        append("creationDateTime=$creationDateTime,")
        append("downloadUrl=$downloadUrl,")
        append("exportId=$exportId,")
        append("exportStatus=$exportStatus,")
        append("failureReasons=$failureReasons,")
        append("fileFormat=$fileFormat,")
        append("lastUpdatedDateTime=$lastUpdatedDateTime,")
        append("resourceSpecification=$resourceSpecification)")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationDateTime?.hashCode() ?: 0
        result = 31 * result + (downloadUrl?.hashCode() ?: 0)
        result = 31 * result + (exportId?.hashCode() ?: 0)
        result = 31 * result + (exportStatus?.hashCode() ?: 0)
        result = 31 * result + (failureReasons?.hashCode() ?: 0)
        result = 31 * result + (fileFormat?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedDateTime?.hashCode() ?: 0)
        result = 31 * result + (resourceSpecification?.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 DescribeExportResponse

        if (creationDateTime != other.creationDateTime) return false
        if (downloadUrl != other.downloadUrl) return false
        if (exportId != other.exportId) return false
        if (exportStatus != other.exportStatus) return false
        if (failureReasons != other.failureReasons) return false
        if (fileFormat != other.fileFormat) return false
        if (lastUpdatedDateTime != other.lastUpdatedDateTime) return false
        if (resourceSpecification != other.resourceSpecification) return false

        return true
    }

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

    class Builder {
        /**
         * The date and time that the export was created.
         */
        var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A pre-signed S3 URL that points to the bot or bot locale archive.
         * The URL is only available for 5 minutes after calling the
         * DescribeExport operation.
         */
        var downloadUrl: kotlin.String? = null
        /**
         * The unique identifier of the described export.
         */
        var exportId: kotlin.String? = null
        /**
         * The status of the export. When the status is Complete
         * the export archive file is available for download.
         */
        var exportStatus: aws.sdk.kotlin.services.lexmodelsv2.model.ExportStatus? = null
        /**
         * If the exportStatus is failed, contains one or more
         * reasons why the export could not be completed.
         */
        var failureReasons: List? = null
        /**
         * The file format used in the files that describe the resource.
         */
        var fileFormat: aws.sdk.kotlin.services.lexmodelsv2.model.ImportExportFileFormat? = null
        /**
         * The last date and time that the export was updated.
         */
        var lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The bot, bot ID, and optional locale ID of the exported bot or bot
         * locale.
         */
        var resourceSpecification: aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.DescribeExportResponse) : this() {
            this.creationDateTime = x.creationDateTime
            this.downloadUrl = x.downloadUrl
            this.exportId = x.exportId
            this.exportStatus = x.exportStatus
            this.failureReasons = x.failureReasons
            this.fileFormat = x.fileFormat
            this.lastUpdatedDateTime = x.lastUpdatedDateTime
            this.resourceSpecification = x.resourceSpecification
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification] inside the given [block]
         */
        fun resourceSpecification(block: aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification.Builder.() -> kotlin.Unit) {
            this.resourceSpecification = aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy