commonMain.aws.sdk.kotlin.services.qconnect.model.RenderingConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qconnect-jvm Show documentation
Show all versions of qconnect-jvm Show documentation
The AWS SDK for Kotlin client for QConnect
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qconnect.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Information about how to render the content.
*/
public class RenderingConfiguration private constructor(builder: Builder) {
/**
* A URI template containing exactly one variable in `${variableName} `format. This can only be set for `EXTERNAL` knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:
* + Salesforce: `Id`, `ArticleNumber`, `VersionNumber`, `Title`, `PublishStatus`, or `IsDeleted`
* + ServiceNow: `number`, `short_description`, `sys_mod_count`, `workflow_state`, or `active`
* + Zendesk: `id`, `title`, `updated_at`, or `draft`
*
* The variable is replaced with the actual value for a piece of content when calling [GetContent](https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_GetContent.html).
*/
public val templateUri: kotlin.String? = builder.templateUri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qconnect.model.RenderingConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RenderingConfiguration(")
append("templateUri=$templateUri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = templateUri?.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 RenderingConfiguration
if (templateUri != other.templateUri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qconnect.model.RenderingConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A URI template containing exactly one variable in `${variableName} `format. This can only be set for `EXTERNAL` knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:
* + Salesforce: `Id`, `ArticleNumber`, `VersionNumber`, `Title`, `PublishStatus`, or `IsDeleted`
* + ServiceNow: `number`, `short_description`, `sys_mod_count`, `workflow_state`, or `active`
* + Zendesk: `id`, `title`, `updated_at`, or `draft`
*
* The variable is replaced with the actual value for a piece of content when calling [GetContent](https://docs.aws.amazon.com/amazon-q-connect/latest/APIReference/API_GetContent.html).
*/
public var templateUri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qconnect.model.RenderingConfiguration) : this() {
this.templateUri = x.templateUri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qconnect.model.RenderingConfiguration = RenderingConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}