
commonMain.aws.sdk.kotlin.services.qbusiness.model.PluginConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* Configuration information required to invoke chat in `PLUGIN_MODE`.
*
* For more information, see [Admin controls and guardrails](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/guardrails.html), [Plugins](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/plugins.html), and [Conversation settings](https://docs.aws.amazon.com/amazonq/latest/business-use-dg/using-web-experience.html#chat-source-scope).
*/
public class PluginConfiguration private constructor(builder: Builder) {
/**
* The identifier of the plugin you want to use.
*/
public val pluginId: kotlin.String = requireNotNull(builder.pluginId) { "A non-null value must be provided for pluginId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.PluginConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PluginConfiguration(")
append("pluginId=$pluginId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pluginId.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 PluginConfiguration
if (pluginId != other.pluginId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.PluginConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the plugin you want to use.
*/
public var pluginId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.PluginConfiguration) : this() {
this.pluginId = x.pluginId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.PluginConfiguration = PluginConfiguration(this)
internal fun correctErrors(): Builder {
if (pluginId == null) pluginId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy