All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.qbusiness.model.UpdateRetrieverRequest.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.qbusiness.model



public class UpdateRetrieverRequest private constructor(builder: Builder) {
    /**
     * The identifier of your Amazon Q Business application.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * Provides information on how the retriever used for your Amazon Q Business application is configured.
     */
    public val configuration: aws.sdk.kotlin.services.qbusiness.model.RetrieverConfiguration? = builder.configuration
    /**
     * The name of your retriever.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The identifier of your retriever.
     */
    public val retrieverId: kotlin.String? = builder.retrieverId
    /**
     * The Amazon Resource Name (ARN) of an IAM role with permission to access the retriever and required resources.
     */
    public val roleArn: kotlin.String? = builder.roleArn

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.UpdateRetrieverRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateRetrieverRequest(")
        append("applicationId=$applicationId,")
        append("configuration=$configuration,")
        append("displayName=$displayName,")
        append("retrieverId=$retrieverId,")
        append("roleArn=$roleArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (configuration?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (retrieverId?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.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 UpdateRetrieverRequest

        if (applicationId != other.applicationId) return false
        if (configuration != other.configuration) return false
        if (displayName != other.displayName) return false
        if (retrieverId != other.retrieverId) return false
        if (roleArn != other.roleArn) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.UpdateRetrieverRequest = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The identifier of your Amazon Q Business application.
         */
        public var applicationId: kotlin.String? = null
        /**
         * Provides information on how the retriever used for your Amazon Q Business application is configured.
         */
        public var configuration: aws.sdk.kotlin.services.qbusiness.model.RetrieverConfiguration? = null
        /**
         * The name of your retriever.
         */
        public var displayName: kotlin.String? = null
        /**
         * The identifier of your retriever.
         */
        public var retrieverId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of an IAM role with permission to access the retriever and required resources.
         */
        public var roleArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.UpdateRetrieverRequest) : this() {
            this.applicationId = x.applicationId
            this.configuration = x.configuration
            this.displayName = x.displayName
            this.retrieverId = x.retrieverId
            this.roleArn = x.roleArn
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.qbusiness.model.UpdateRetrieverRequest = UpdateRetrieverRequest(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy