
aws.sdk.kotlin.services.lexmodelsv2.model.AudioLogDestination.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lexmodelsv2.model
/**
* The location of audio log files collected when conversation logging
* is enabled for a bot.
*/
class AudioLogDestination private constructor(builder: Builder) {
/**
* The Amazon S3 bucket where the audio log files are stored. The IAM
* role specified in the roleArn parameter of the CreateBot operation must have permission to write to this
* bucket.
*/
val s3Bucket: aws.sdk.kotlin.services.lexmodelsv2.model.S3BucketLogDestination? = builder.s3Bucket
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelsv2.model.AudioLogDestination = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AudioLogDestination(")
append("s3Bucket=$s3Bucket)")
}
override fun hashCode(): kotlin.Int {
var result = s3Bucket?.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 AudioLogDestination
if (s3Bucket != other.s3Bucket) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelsv2.model.AudioLogDestination = Builder(this).apply(block).build()
class Builder {
/**
* The Amazon S3 bucket where the audio log files are stored. The IAM
* role specified in the roleArn parameter of the CreateBot operation must have permission to write to this
* bucket.
*/
var s3Bucket: aws.sdk.kotlin.services.lexmodelsv2.model.S3BucketLogDestination? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelsv2.model.AudioLogDestination) : this() {
this.s3Bucket = x.s3Bucket
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelsv2.model.AudioLogDestination = AudioLogDestination(this)
/**
* construct an [aws.sdk.kotlin.services.lexmodelsv2.model.S3BucketLogDestination] inside the given [block]
*/
fun s3Bucket(block: aws.sdk.kotlin.services.lexmodelsv2.model.S3BucketLogDestination.Builder.() -> kotlin.Unit) {
this.s3Bucket = aws.sdk.kotlin.services.lexmodelsv2.model.S3BucketLogDestination.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy