commonMain.aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse.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
/**
* Contains information about conversation log settings.
*/
public class ConversationLogsResponse private constructor(builder: Builder) {
/**
* The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket.
*/
public val iamRoleArn: kotlin.String? = builder.iamRoleArn
/**
* The settings for your conversation logs. You can log text, audio, or both.
*/
public val logSettings: List? = builder.logSettings
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConversationLogsResponse(")
append("iamRoleArn=$iamRoleArn,")
append("logSettings=$logSettings")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = iamRoleArn?.hashCode() ?: 0
result = 31 * result + (logSettings?.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 ConversationLogsResponse
if (iamRoleArn != other.iamRoleArn) return false
if (logSettings != other.logSettings) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Resource Name (ARN) of the IAM role used to write your logs to CloudWatch Logs or an S3 bucket.
*/
public var iamRoleArn: kotlin.String? = null
/**
* The settings for your conversation logs. You can log text, audio, or both.
*/
public var logSettings: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse) : this() {
this.iamRoleArn = x.iamRoleArn
this.logSettings = x.logSettings
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lexmodelbuildingservice.model.ConversationLogsResponse = ConversationLogsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy