commonMain.aws.sdk.kotlin.services.wisdom.model.DocumentText.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wisdom-jvm Show documentation
Show all versions of wisdom-jvm Show documentation
The AWS SDK for Kotlin client for Wisdom
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.wisdom.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The text of the document.
*/
public class DocumentText private constructor(builder: Builder) {
/**
* Highlights in the document text.
*/
public val highlights: List? = builder.highlights
/**
* Text in the document.
*/
public val text: kotlin.String? = builder.text
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.wisdom.model.DocumentText = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DocumentText(")
append("highlights=$highlights,")
append("text=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = highlights?.hashCode() ?: 0
result = 31 * result + (text?.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 DocumentText
if (highlights != other.highlights) return false
if (text != other.text) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.wisdom.model.DocumentText = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Highlights in the document text.
*/
public var highlights: List? = null
/**
* Text in the document.
*/
public var text: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.wisdom.model.DocumentText) : this() {
this.highlights = x.highlights
this.text = x.text
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.wisdom.model.DocumentText = DocumentText(this)
internal fun correctErrors(): Builder {
return this
}
}
}