
commonMain.aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* Configuration information for the file upload during chat feature.
*/
public class AttachmentsConfiguration private constructor(builder: Builder) {
/**
* Status information about whether file upload functionality is activated or deactivated for your end user.
*/
public val attachmentsControlMode: aws.sdk.kotlin.services.qbusiness.model.AttachmentsControlMode = requireNotNull(builder.attachmentsControlMode) { "A non-null value must be provided for attachmentsControlMode" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AttachmentsConfiguration(")
append("attachmentsControlMode=$attachmentsControlMode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = attachmentsControlMode.hashCode()
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 AttachmentsConfiguration
if (attachmentsControlMode != other.attachmentsControlMode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* Status information about whether file upload functionality is activated or deactivated for your end user.
*/
public var attachmentsControlMode: aws.sdk.kotlin.services.qbusiness.model.AttachmentsControlMode? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration) : this() {
this.attachmentsControlMode = x.attachmentsControlMode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.AttachmentsConfiguration = AttachmentsConfiguration(this)
internal fun correctErrors(): Builder {
if (attachmentsControlMode == null) attachmentsControlMode = AttachmentsControlMode.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy