
commonMain.aws.sdk.kotlin.services.qconnect.model.GenerativeReference.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qconnect.model
/**
* Reference information about generative content.
*/
public class GenerativeReference private constructor(builder: Builder) {
/**
* The identifier of the LLM model.
*/
public val generationId: kotlin.String? = builder.generationId
/**
* The identifier of the LLM model.
*/
public val modelId: kotlin.String? = builder.modelId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qconnect.model.GenerativeReference = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GenerativeReference(")
append("generationId=$generationId,")
append("modelId=$modelId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = generationId?.hashCode() ?: 0
result = 31 * result + (modelId?.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 GenerativeReference
if (generationId != other.generationId) return false
if (modelId != other.modelId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qconnect.model.GenerativeReference = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the LLM model.
*/
public var generationId: kotlin.String? = null
/**
* The identifier of the LLM model.
*/
public var modelId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qconnect.model.GenerativeReference) : this() {
this.generationId = x.generationId
this.modelId = x.modelId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qconnect.model.GenerativeReference = GenerativeReference(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy