
commonMain.aws.sdk.kotlin.services.qbusiness.model.Retriever.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qbusiness.model
/**
* Summary information for the retriever used for your Amazon Q Business application.
*/
public class Retriever private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q Business application using the retriever.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The name of your retriever.
*/
public val displayName: kotlin.String? = builder.displayName
/**
* The identifier of the retriever used by your Amazon Q Business application.
*/
public val retrieverId: kotlin.String? = builder.retrieverId
/**
* The status of your retriever.
*/
public val status: aws.sdk.kotlin.services.qbusiness.model.RetrieverStatus? = builder.status
/**
* The type of your retriever.
*/
public val type: aws.sdk.kotlin.services.qbusiness.model.RetrieverType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.Retriever = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Retriever(")
append("applicationId=$applicationId,")
append("displayName=$displayName,")
append("retrieverId=$retrieverId,")
append("status=$status,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (displayName?.hashCode() ?: 0)
result = 31 * result + (retrieverId?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (type?.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 Retriever
if (applicationId != other.applicationId) return false
if (displayName != other.displayName) return false
if (retrieverId != other.retrieverId) return false
if (status != other.status) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.Retriever = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q Business application using the retriever.
*/
public var applicationId: kotlin.String? = null
/**
* The name of your retriever.
*/
public var displayName: kotlin.String? = null
/**
* The identifier of the retriever used by your Amazon Q Business application.
*/
public var retrieverId: kotlin.String? = null
/**
* The status of your retriever.
*/
public var status: aws.sdk.kotlin.services.qbusiness.model.RetrieverStatus? = null
/**
* The type of your retriever.
*/
public var type: aws.sdk.kotlin.services.qbusiness.model.RetrieverType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.Retriever) : this() {
this.applicationId = x.applicationId
this.displayName = x.displayName
this.retrieverId = x.retrieverId
this.status = x.status
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.Retriever = Retriever(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy