
aws.sdk.kotlin.services.lexmodelsv2.model.CreateExportRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelsv2.model
class CreateExportRequest private constructor(builder: Builder) {
/**
* The file format of the bot or bot locale definition files.
*/
val fileFormat: aws.sdk.kotlin.services.lexmodelsv2.model.ImportExportFileFormat? = builder.fileFormat
/**
* An password to use to encrypt the exported archive. Using a password
* is optional, but you should encrypt the archive to protect the data in
* transit between Amazon Lex and your local computer.
*/
val filePassword: kotlin.String? = builder.filePassword
/**
* Specifies the type of resource to export, either a bot or a bot
* locale. You can only specify one type of resource to export.
*/
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.CreateExportRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateExportRequest(")
append("fileFormat=$fileFormat,")
append("filePassword=*** Sensitive Data Redacted ***,")
append("resourceSpecification=$resourceSpecification)")
}
override fun hashCode(): kotlin.Int {
var result = fileFormat?.hashCode() ?: 0
result = 31 * result + (filePassword?.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 CreateExportRequest
if (fileFormat != other.fileFormat) return false
if (filePassword != other.filePassword) return false
if (resourceSpecification != other.resourceSpecification) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelsv2.model.CreateExportRequest = Builder(this).apply(block).build()
class Builder {
/**
* The file format of the bot or bot locale definition files.
*/
var fileFormat: aws.sdk.kotlin.services.lexmodelsv2.model.ImportExportFileFormat? = null
/**
* An password to use to encrypt the exported archive. Using a password
* is optional, but you should encrypt the archive to protect the data in
* transit between Amazon Lex and your local computer.
*/
var filePassword: kotlin.String? = null
/**
* Specifies the type of resource to export, either a bot or a bot
* locale. You can only specify one type of resource to export.
*/
var resourceSpecification: aws.sdk.kotlin.services.lexmodelsv2.model.ExportResourceSpecification? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.CreateExportRequest) : this() {
this.fileFormat = x.fileFormat
this.filePassword = x.filePassword
this.resourceSpecification = x.resourceSpecification
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.CreateExportRequest = CreateExportRequest(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