commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetExportResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelbuildingservice.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetExportResponse private constructor(builder: Builder) {
/**
* The status of the export.
* + `IN_PROGRESS` - The export is in progress.
* + `READY` - The export is complete.
* + `FAILED` - The export could not be completed.
*/
public val exportStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ExportStatus? = builder.exportStatus
/**
* The format of the exported data.
*/
public val exportType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ExportType? = builder.exportType
/**
* If `status` is `FAILED`, Amazon Lex provides the reason that it failed to export the resource.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The name of the bot being exported.
*/
public val name: kotlin.String? = builder.name
/**
* The type of the exported resource.
*/
public val resourceType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ResourceType? = builder.resourceType
/**
* An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.
*/
public val url: kotlin.String? = builder.url
/**
* The version of the bot being exported.
*/
public val version: kotlin.String? = builder.version
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetExportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetExportResponse(")
append("exportStatus=$exportStatus,")
append("exportType=$exportType,")
append("failureReason=$failureReason,")
append("name=$name,")
append("resourceType=$resourceType,")
append("url=$url,")
append("version=$version")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exportStatus?.hashCode() ?: 0
result = 31 * result + (exportType?.hashCode() ?: 0)
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (resourceType?.hashCode() ?: 0)
result = 31 * result + (url?.hashCode() ?: 0)
result = 31 * result + (version?.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 GetExportResponse
if (exportStatus != other.exportStatus) return false
if (exportType != other.exportType) return false
if (failureReason != other.failureReason) return false
if (name != other.name) return false
if (resourceType != other.resourceType) return false
if (url != other.url) return false
if (version != other.version) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetExportResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The status of the export.
* + `IN_PROGRESS` - The export is in progress.
* + `READY` - The export is complete.
* + `FAILED` - The export could not be completed.
*/
public var exportStatus: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ExportStatus? = null
/**
* The format of the exported data.
*/
public var exportType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ExportType? = null
/**
* If `status` is `FAILED`, Amazon Lex provides the reason that it failed to export the resource.
*/
public var failureReason: kotlin.String? = null
/**
* The name of the bot being exported.
*/
public var name: kotlin.String? = null
/**
* The type of the exported resource.
*/
public var resourceType: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ResourceType? = null
/**
* An S3 pre-signed URL that provides the location of the exported resource. The exported resource is a ZIP archive that contains the exported resource in JSON format. The structure of the archive may change. Your code should not rely on the archive structure.
*/
public var url: kotlin.String? = null
/**
* The version of the bot being exported.
*/
public var version: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetExportResponse) : this() {
this.exportStatus = x.exportStatus
this.exportType = x.exportType
this.failureReason = x.failureReason
this.name = x.name
this.resourceType = x.resourceType
this.url = x.url
this.version = x.version
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.GetExportResponse = GetExportResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy