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

commonMain.aws.sdk.kotlin.services.qbusiness.model.GetPluginResponse.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 GetPluginResponse private constructor(builder: Builder) {
    /**
     * The identifier of the application which contains the plugin.
     */
    public val applicationId: kotlin.String? = builder.applicationId
    /**
     * Authentication configuration information for an Amazon Q Business plugin.
     */
    public val authConfiguration: aws.sdk.kotlin.services.qbusiness.model.PluginAuthConfiguration? = builder.authConfiguration
    /**
     * The timestamp for when the plugin was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The name of the plugin.
     */
    public val displayName: kotlin.String? = builder.displayName
    /**
     * The Amazon Resource Name (ARN) of the role with permission to access resources needed to create the plugin.
     */
    public val pluginArn: kotlin.String? = builder.pluginArn
    /**
     * The identifier of the plugin.
     */
    public val pluginId: kotlin.String? = builder.pluginId
    /**
     * The source URL used for plugin configuration.
     */
    public val serverUrl: kotlin.String? = builder.serverUrl
    /**
     * The current state of the plugin.
     */
    public val state: aws.sdk.kotlin.services.qbusiness.model.PluginState? = builder.state
    /**
     * The type of the plugin.
     */
    public val type: aws.sdk.kotlin.services.qbusiness.model.PluginType? = builder.type
    /**
     * The timestamp for when the plugin 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.GetPluginResponse = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("GetPluginResponse(")
        append("applicationId=$applicationId,")
        append("authConfiguration=$authConfiguration,")
        append("createdAt=$createdAt,")
        append("displayName=$displayName,")
        append("pluginArn=$pluginArn,")
        append("pluginId=$pluginId,")
        append("serverUrl=$serverUrl,")
        append("state=$state,")
        append("type=$type,")
        append("updatedAt=$updatedAt")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applicationId?.hashCode() ?: 0
        result = 31 * result + (authConfiguration?.hashCode() ?: 0)
        result = 31 * result + (createdAt?.hashCode() ?: 0)
        result = 31 * result + (displayName?.hashCode() ?: 0)
        result = 31 * result + (pluginArn?.hashCode() ?: 0)
        result = 31 * result + (pluginId?.hashCode() ?: 0)
        result = 31 * result + (serverUrl?.hashCode() ?: 0)
        result = 31 * result + (state?.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 GetPluginResponse

        if (applicationId != other.applicationId) return false
        if (authConfiguration != other.authConfiguration) return false
        if (createdAt != other.createdAt) return false
        if (displayName != other.displayName) return false
        if (pluginArn != other.pluginArn) return false
        if (pluginId != other.pluginId) return false
        if (serverUrl != other.serverUrl) return false
        if (state != other.state) 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.GetPluginResponse = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The identifier of the application which contains the plugin.
         */
        public var applicationId: kotlin.String? = null
        /**
         * Authentication configuration information for an Amazon Q Business plugin.
         */
        public var authConfiguration: aws.sdk.kotlin.services.qbusiness.model.PluginAuthConfiguration? = null
        /**
         * The timestamp for when the plugin was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the plugin.
         */
        public var displayName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the role with permission to access resources needed to create the plugin.
         */
        public var pluginArn: kotlin.String? = null
        /**
         * The identifier of the plugin.
         */
        public var pluginId: kotlin.String? = null
        /**
         * The source URL used for plugin configuration.
         */
        public var serverUrl: kotlin.String? = null
        /**
         * The current state of the plugin.
         */
        public var state: aws.sdk.kotlin.services.qbusiness.model.PluginState? = null
        /**
         * The type of the plugin.
         */
        public var type: aws.sdk.kotlin.services.qbusiness.model.PluginType? = null
        /**
         * The timestamp for when the plugin 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.GetPluginResponse) : this() {
            this.applicationId = x.applicationId
            this.authConfiguration = x.authConfiguration
            this.createdAt = x.createdAt
            this.displayName = x.displayName
            this.pluginArn = x.pluginArn
            this.pluginId = x.pluginId
            this.serverUrl = x.serverUrl
            this.state = x.state
            this.type = x.type
            this.updatedAt = x.updatedAt
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy