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

commonMain.aws.sdk.kotlin.services.qbusiness.model.Plugin.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

/**
 * Information about an Amazon Q Business plugin and its configuration.
 */
public class Plugin private constructor(builder: Builder) {
    /**
     * 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 identifier of the plugin.
     */
    public val pluginId: kotlin.String? = builder.pluginId
    /**
     * The plugin server URL used for configuration.
     */
    public val serverUrl: kotlin.String? = builder.serverUrl
    /**
     * The current status 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.Plugin = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (displayName?.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 Plugin

        if (createdAt != other.createdAt) return false
        if (displayName != other.displayName) 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.Plugin = Builder(this).apply(block).build()

    public class Builder {
        /**
         * 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 identifier of the plugin.
         */
        public var pluginId: kotlin.String? = null
        /**
         * The plugin server URL used for configuration.
         */
        public var serverUrl: kotlin.String? = null
        /**
         * The current status 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.Plugin) : this() {
            this.createdAt = x.createdAt
            this.displayName = x.displayName
            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.Plugin = Plugin(this)

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy