
commonMain.aws.sdk.kotlin.services.qbusiness.model.GetWebExperienceResponse.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 GetWebExperienceResponse private constructor(builder: Builder) {
/**
* The identifier of the Amazon Q Business application linked to the web experience.
*/
public val applicationId: kotlin.String? = builder.applicationId
/**
* The authentication configuration information for your Amazon Q Business web experience.
*/
public val authenticationConfiguration: aws.sdk.kotlin.services.qbusiness.model.WebExperienceAuthConfiguration? = builder.authenticationConfiguration
/**
* The Unix timestamp when the retriever was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* The endpoint of your Amazon Q Business web experience.
*/
public val defaultEndpoint: kotlin.String? = builder.defaultEndpoint
/**
* When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public val error: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = builder.error
/**
* The Amazon Resource Name (ARN) of the service role attached to your web experience.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* Determines whether sample prompts are enabled in the web experience for an end user.
*/
public val samplePromptsControlMode: aws.sdk.kotlin.services.qbusiness.model.WebExperienceSamplePromptsControlMode? = builder.samplePromptsControlMode
/**
* The current status of the Amazon Q Business web experience. When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public val status: aws.sdk.kotlin.services.qbusiness.model.WebExperienceStatus? = builder.status
/**
* The subtitle for your Amazon Q Business web experience.
*/
public val subtitle: kotlin.String? = builder.subtitle
/**
* The title for your Amazon Q Business web experience.
*/
public val title: kotlin.String? = builder.title
/**
* The Unix timestamp when the data source connector was last updated.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
/**
* The Amazon Resource Name (ARN) of the role with the permission to access the Amazon Q Business web experience and required resources.
*/
public val webExperienceArn: kotlin.String? = builder.webExperienceArn
/**
* The identifier of the Amazon Q Business web experience.
*/
public val webExperienceId: kotlin.String? = builder.webExperienceId
/**
* The customized welcome message for end users of an Amazon Q Business web experience.
*/
public val welcomeMessage: kotlin.String? = builder.welcomeMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qbusiness.model.GetWebExperienceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetWebExperienceResponse(")
append("applicationId=$applicationId,")
append("authenticationConfiguration=$authenticationConfiguration,")
append("createdAt=$createdAt,")
append("defaultEndpoint=$defaultEndpoint,")
append("error=$error,")
append("roleArn=$roleArn,")
append("samplePromptsControlMode=$samplePromptsControlMode,")
append("status=$status,")
append("subtitle=$subtitle,")
append("title=$title,")
append("updatedAt=$updatedAt,")
append("webExperienceArn=$webExperienceArn,")
append("webExperienceId=$webExperienceId,")
append("welcomeMessage=$welcomeMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applicationId?.hashCode() ?: 0
result = 31 * result + (authenticationConfiguration?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (defaultEndpoint?.hashCode() ?: 0)
result = 31 * result + (error?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (samplePromptsControlMode?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (subtitle?.hashCode() ?: 0)
result = 31 * result + (title?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.hashCode() ?: 0)
result = 31 * result + (webExperienceArn?.hashCode() ?: 0)
result = 31 * result + (webExperienceId?.hashCode() ?: 0)
result = 31 * result + (welcomeMessage?.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 GetWebExperienceResponse
if (applicationId != other.applicationId) return false
if (authenticationConfiguration != other.authenticationConfiguration) return false
if (createdAt != other.createdAt) return false
if (defaultEndpoint != other.defaultEndpoint) return false
if (error != other.error) return false
if (roleArn != other.roleArn) return false
if (samplePromptsControlMode != other.samplePromptsControlMode) return false
if (status != other.status) return false
if (subtitle != other.subtitle) return false
if (title != other.title) return false
if (updatedAt != other.updatedAt) return false
if (webExperienceArn != other.webExperienceArn) return false
if (webExperienceId != other.webExperienceId) return false
if (welcomeMessage != other.welcomeMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qbusiness.model.GetWebExperienceResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The identifier of the Amazon Q Business application linked to the web experience.
*/
public var applicationId: kotlin.String? = null
/**
* The authentication configuration information for your Amazon Q Business web experience.
*/
public var authenticationConfiguration: aws.sdk.kotlin.services.qbusiness.model.WebExperienceAuthConfiguration? = null
/**
* The Unix timestamp when the retriever was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The endpoint of your Amazon Q Business web experience.
*/
public var defaultEndpoint: kotlin.String? = null
/**
* When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public var error: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail? = null
/**
* The Amazon Resource Name (ARN) of the service role attached to your web experience.
*/
public var roleArn: kotlin.String? = null
/**
* Determines whether sample prompts are enabled in the web experience for an end user.
*/
public var samplePromptsControlMode: aws.sdk.kotlin.services.qbusiness.model.WebExperienceSamplePromptsControlMode? = null
/**
* The current status of the Amazon Q Business web experience. When the `Status` field value is `FAILED`, the `ErrorMessage` field contains a description of the error that caused the data source connector to fail.
*/
public var status: aws.sdk.kotlin.services.qbusiness.model.WebExperienceStatus? = null
/**
* The subtitle for your Amazon Q Business web experience.
*/
public var subtitle: kotlin.String? = null
/**
* The title for your Amazon Q Business web experience.
*/
public var title: kotlin.String? = null
/**
* The Unix timestamp when the data source connector was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of the role with the permission to access the Amazon Q Business web experience and required resources.
*/
public var webExperienceArn: kotlin.String? = null
/**
* The identifier of the Amazon Q Business web experience.
*/
public var webExperienceId: kotlin.String? = null
/**
* The customized welcome message for end users of an Amazon Q Business web experience.
*/
public var welcomeMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qbusiness.model.GetWebExperienceResponse) : this() {
this.applicationId = x.applicationId
this.authenticationConfiguration = x.authenticationConfiguration
this.createdAt = x.createdAt
this.defaultEndpoint = x.defaultEndpoint
this.error = x.error
this.roleArn = x.roleArn
this.samplePromptsControlMode = x.samplePromptsControlMode
this.status = x.status
this.subtitle = x.subtitle
this.title = x.title
this.updatedAt = x.updatedAt
this.webExperienceArn = x.webExperienceArn
this.webExperienceId = x.webExperienceId
this.welcomeMessage = x.welcomeMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qbusiness.model.GetWebExperienceResponse = GetWebExperienceResponse(this)
/**
* construct an [aws.sdk.kotlin.services.qbusiness.model.ErrorDetail] inside the given [block]
*/
public fun error(block: aws.sdk.kotlin.services.qbusiness.model.ErrorDetail.Builder.() -> kotlin.Unit) {
this.error = aws.sdk.kotlin.services.qbusiness.model.ErrorDetail.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy