
commonMain.aws.sdk.kotlin.services.comprehend.model.DetectKeyPhrasesResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.comprehend.model
public class DetectKeyPhrasesResponse private constructor(builder: Builder) {
/**
* A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
*/
public val keyPhrases: List? = builder.keyPhrases
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.comprehend.model.DetectKeyPhrasesResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectKeyPhrasesResponse(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = keyPhrases?.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 DetectKeyPhrasesResponse
if (keyPhrases != other.keyPhrases) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.comprehend.model.DetectKeyPhrasesResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A collection of key phrases that Amazon Comprehend identified in the input text. For each key phrase, the response provides the text of the key phrase, where the key phrase begins and ends, and the level of confidence that Amazon Comprehend has in the accuracy of the detection.
*/
public var keyPhrases: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.comprehend.model.DetectKeyPhrasesResponse) : this() {
this.keyPhrases = x.keyPhrases
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.comprehend.model.DetectKeyPhrasesResponse = DetectKeyPhrasesResponse(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy