
aws.sdk.kotlin.services.lexmodelsv2.model.ExportSummary.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
/**
* Provides summary information about an export in an export list.
*/
class ExportSummary private constructor(builder: Builder) {
/**
* The date and time that the export was created.
*/
val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
/**
* The unique identifier that Amazon Lex assigned to the export.
*/
val exportId: kotlin.String? = builder.exportId
/**
* The status of the export. When the status is Completed
* the export is ready to download.
*/
val exportStatus: aws.sdk.kotlin.services.lexmodelsv2.model.ExportStatus? = builder.exportStatus
/**
* The file format used in the export files.
*/
val fileFormat: aws.sdk.kotlin.services.lexmodelsv2.model.ImportExportFileFormat? = builder.fileFormat
/**
* The date and time that the export was last updated.
*/
val lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedDateTime
/**
* Information about the bot or bot locale that was exported.
*/
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.ExportSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExportSummary(")
append("creationDateTime=$creationDateTime,")
append("exportId=$exportId,")
append("exportStatus=$exportStatus,")
append("fileFormat=$fileFormat,")
append("lastUpdatedDateTime=$lastUpdatedDateTime,")
append("resourceSpecification=$resourceSpecification)")
}
override fun hashCode(): kotlin.Int {
var result = creationDateTime?.hashCode() ?: 0
result = 31 * result + (exportId?.hashCode() ?: 0)
result = 31 * result + (exportStatus?.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 ExportSummary
if (creationDateTime != other.creationDateTime) return false
if (exportId != other.exportId) return false
if (exportStatus != other.exportStatus) 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.ExportSummary = 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
/**
* The unique identifier that Amazon Lex assigned to the export.
*/
var exportId: kotlin.String? = null
/**
* The status of the export. When the status is Completed
* the export is ready to download.
*/
var exportStatus: aws.sdk.kotlin.services.lexmodelsv2.model.ExportStatus? = null
/**
* The file format used in the export files.
*/
var fileFormat: aws.sdk.kotlin.services.lexmodelsv2.model.ImportExportFileFormat? = null
/**
* The date and time that the export was last updated.
*/
var lastUpdatedDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Information about the bot or bot locale that was exported.
*/
var resourceSpecification: aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.ExportSummary) : this() {
this.creationDateTime = x.creationDateTime
this.exportId = x.exportId
this.exportStatus = x.exportStatus
this.fileFormat = x.fileFormat
this.lastUpdatedDateTime = x.lastUpdatedDateTime
this.resourceSpecification = x.resourceSpecification
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.ExportSummary = ExportSummary(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