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

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

/**
 * Provides information for an Amazon Q Business web experience.
 */
public class WebExperience private constructor(builder: Builder) {
    /**
     * The Unix timestamp when the Amazon Q Business application was last updated.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The endpoint URLs for your Amazon Q Business web experience. The URLs are unique and fully hosted by Amazon Web Services.
     */
    public val defaultEndpoint: kotlin.String? = builder.defaultEndpoint
    /**
     * The status of your Amazon Q Business web experience.
     */
    public val status: aws.sdk.kotlin.services.qbusiness.model.WebExperienceStatus? = builder.status
    /**
     * The Unix timestamp when your Amazon Q Business web experience was updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
    /**
     * The identifier of your Amazon Q Business web experience.
     */
    public val webExperienceId: kotlin.String? = builder.webExperienceId

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

    override fun toString(): kotlin.String = buildString {
        append("WebExperience(")
        append("createdAt=$createdAt,")
        append("defaultEndpoint=$defaultEndpoint,")
        append("status=$status,")
        append("updatedAt=$updatedAt,")
        append("webExperienceId=$webExperienceId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (defaultEndpoint?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.hashCode() ?: 0)
        result = 31 * result + (webExperienceId?.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 WebExperience

        if (createdAt != other.createdAt) return false
        if (defaultEndpoint != other.defaultEndpoint) return false
        if (status != other.status) return false
        if (updatedAt != other.updatedAt) return false
        if (webExperienceId != other.webExperienceId) return false

        return true
    }

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

    public class Builder {
        /**
         * The Unix timestamp when the Amazon Q Business application was last updated.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The endpoint URLs for your Amazon Q Business web experience. The URLs are unique and fully hosted by Amazon Web Services.
         */
        public var defaultEndpoint: kotlin.String? = null
        /**
         * The status of your Amazon Q Business web experience.
         */
        public var status: aws.sdk.kotlin.services.qbusiness.model.WebExperienceStatus? = null
        /**
         * The Unix timestamp when your Amazon Q Business web experience was updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The identifier of your Amazon Q Business web experience.
         */
        public var webExperienceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.WebExperience) : this() {
            this.createdAt = x.createdAt
            this.defaultEndpoint = x.defaultEndpoint
            this.status = x.status
            this.updatedAt = x.updatedAt
            this.webExperienceId = x.webExperienceId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy