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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

public class GetRetrieverResponse private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon Q Business application using the retriever.
     */
    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 Unix timestamp when the retriever was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The name of the retriever.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The Amazon Resource Name (ARN) of the IAM role associated with the retriever.
     */
    public val retrieverArn: kotlin.String? = builder.retrieverArn
    /**
     * The identifier of the retriever.
     */
    public val retrieverId: kotlin.String? = builder.retrieverId
    /**
     * The Amazon Resource Name (ARN) of the role with the permission to access the retriever and required resources.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * The status of the retriever.
     */
    public val status: aws.sdk.kotlin.services.qbusiness.model.RetrieverStatus? = builder.status
    /**
     * The type of the retriever.
     */
    public val type: aws.sdk.kotlin.services.qbusiness.model.RetrieverType? = builder.type
    /**
     * The Unix timestamp when the retriever was last updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt

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

    override fun toString(): kotlin.String = buildString {
        append("GetRetrieverResponse(")
        append("applicationId=$applicationId,")
        append("configuration=$configuration,")
        append("createdAt=$createdAt,")
        append("displayName=$displayName,")
        append("retrieverArn=$retrieverArn,")
        append("retrieverId=$retrieverId,")
        append("roleArn=$roleArn,")
        append("status=$status,")
        append("type=$type,")
        append("updatedAt=$updatedAt")
        append(")")
    }

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

        if (applicationId != other.applicationId) return false
        if (configuration != other.configuration) return false
        if (createdAt != other.createdAt) return false
        if (displayName != other.displayName) return false
        if (retrieverArn != other.retrieverArn) return false
        if (retrieverId != other.retrieverId) return false
        if (roleArn != other.roleArn) return false
        if (status != other.status) return false
        if (type != other.type) return false
        if (updatedAt != other.updatedAt) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.GetRetrieverResponse = 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
        /**
         * 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 Unix timestamp when the retriever was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the retriever.
         */
        public var displayName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the IAM role associated with the retriever.
         */
        public var retrieverArn: kotlin.String? = null
        /**
         * The identifier of the retriever.
         */
        public var retrieverId: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the role with the permission to access the retriever and required resources.
         */
        public var roleArn: kotlin.String? = null
        /**
         * The status of the retriever.
         */
        public var status: aws.sdk.kotlin.services.qbusiness.model.RetrieverStatus? = null
        /**
         * The type of the retriever.
         */
        public var type: aws.sdk.kotlin.services.qbusiness.model.RetrieverType? = null
        /**
         * The Unix timestamp when the retriever was last updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.GetRetrieverResponse) : this() {
            this.applicationId = x.applicationId
            this.configuration = x.configuration
            this.createdAt = x.createdAt
            this.displayName = x.displayName
            this.retrieverArn = x.retrieverArn
            this.retrieverId = x.retrieverId
            this.roleArn = x.roleArn
            this.status = x.status
            this.type = x.type
            this.updatedAt = x.updatedAt
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy