commonMain.aws.sdk.kotlin.services.chatbot.model.UpdateAccountPreferencesRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chatbot-jvm Show documentation
Show all versions of chatbot-jvm Show documentation
The AWS SDK for Kotlin client for chatbot
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chatbot.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateAccountPreferencesRequest private constructor(builder: Builder) {
/**
* Turns on training data collection.
*
* This helps improve the AWS Chatbot experience by allowing AWS Chatbot to store and use your customer information, such as AWS Chatbot configurations, notifications, user inputs, AWS Chatbot generated responses, and interaction data. This data helps us to continuously improve and develop Artificial Intelligence (AI) technologies. Your data is not shared with any third parties and is protected using sophisticated controls to prevent unauthorized access and misuse. AWS Chatbot does not store or use interactions in chat channels with Amazon Q for training AI technologies for AWS Chatbot.
*/
public val trainingDataCollectionEnabled: kotlin.Boolean? = builder.trainingDataCollectionEnabled
/**
* Enables use of a user role requirement in your chat configuration.
*/
public val userAuthorizationRequired: kotlin.Boolean? = builder.userAuthorizationRequired
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chatbot.model.UpdateAccountPreferencesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateAccountPreferencesRequest(")
append("trainingDataCollectionEnabled=$trainingDataCollectionEnabled,")
append("userAuthorizationRequired=$userAuthorizationRequired")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = trainingDataCollectionEnabled?.hashCode() ?: 0
result = 31 * result + (userAuthorizationRequired?.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 UpdateAccountPreferencesRequest
if (trainingDataCollectionEnabled != other.trainingDataCollectionEnabled) return false
if (userAuthorizationRequired != other.userAuthorizationRequired) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chatbot.model.UpdateAccountPreferencesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Turns on training data collection.
*
* This helps improve the AWS Chatbot experience by allowing AWS Chatbot to store and use your customer information, such as AWS Chatbot configurations, notifications, user inputs, AWS Chatbot generated responses, and interaction data. This data helps us to continuously improve and develop Artificial Intelligence (AI) technologies. Your data is not shared with any third parties and is protected using sophisticated controls to prevent unauthorized access and misuse. AWS Chatbot does not store or use interactions in chat channels with Amazon Q for training AI technologies for AWS Chatbot.
*/
public var trainingDataCollectionEnabled: kotlin.Boolean? = null
/**
* Enables use of a user role requirement in your chat configuration.
*/
public var userAuthorizationRequired: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chatbot.model.UpdateAccountPreferencesRequest) : this() {
this.trainingDataCollectionEnabled = x.trainingDataCollectionEnabled
this.userAuthorizationRequired = x.userAuthorizationRequired
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chatbot.model.UpdateAccountPreferencesRequest = UpdateAccountPreferencesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}