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

commonMain.aws.sdk.kotlin.services.kendra.model.ExperienceEndpoint.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kendra.model



/**
 * Provides the configuration information for the endpoint for your Amazon Kendra experience.
 */
public class ExperienceEndpoint private constructor(builder: Builder) {
    /**
     * The endpoint of your Amazon Kendra experience.
     */
    public val endpoint: kotlin.String? = builder.endpoint
    /**
     * The type of endpoint for your Amazon Kendra experience. The type currently available is `HOME`, which is a unique and fully hosted URL to the home page of your Amazon Kendra experience.
     */
    public val endpointType: aws.sdk.kotlin.services.kendra.model.EndpointType? = builder.endpointType

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

    override fun toString(): kotlin.String = buildString {
        append("ExperienceEndpoint(")
        append("endpoint=$endpoint,")
        append("endpointType=$endpointType")
        append(")")
    }

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

        if (endpoint != other.endpoint) return false
        if (endpointType != other.endpointType) return false

        return true
    }

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

    public class Builder {
        /**
         * The endpoint of your Amazon Kendra experience.
         */
        public var endpoint: kotlin.String? = null
        /**
         * The type of endpoint for your Amazon Kendra experience. The type currently available is `HOME`, which is a unique and fully hosted URL to the home page of your Amazon Kendra experience.
         */
        public var endpointType: aws.sdk.kotlin.services.kendra.model.EndpointType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kendra.model.ExperienceEndpoint) : this() {
            this.endpoint = x.endpoint
            this.endpointType = x.endpointType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy