
commonMain.aws.sdk.kotlin.services.kendra.model.DescribeExperienceResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
import aws.smithy.kotlin.runtime.time.Instant
public class DescribeExperienceResponse private constructor(builder: Builder) {
/**
* Shows the configuration information for your Amazon Kendra experience. This includes `ContentSourceConfiguration`, which specifies the data source IDs and/or FAQ IDs, and `UserIdentityConfiguration`, which specifies the user or group information to grant access to your Amazon Kendra experience.
*/
public val configuration: aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration? = builder.configuration
/**
* The Unix timestamp when your Amazon Kendra experience was created.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* Shows the description for your Amazon Kendra experience.
*/
public val description: kotlin.String? = builder.description
/**
* Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully hosted by Amazon Web Services.
*/
public val endpoints: List? = builder.endpoints
/**
* The reason your Amazon Kendra experience could not properly process.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* Shows the identifier of your Amazon Kendra experience.
*/
public val id: kotlin.String? = builder.id
/**
* Shows the identifier of the index for your Amazon Kendra experience.
*/
public val indexId: kotlin.String? = builder.indexId
/**
* Shows the name of your Amazon Kendra experience.
*/
public val name: kotlin.String? = builder.name
/**
* Shows the Amazon Resource Name (ARN) of a role with permission to access `Query` API, `QuerySuggestions` API, `SubmitFeedback` API, and IAM Identity Center that stores your user and group information.
*/
public val roleArn: kotlin.String? = builder.roleArn
/**
* The current processing status of your Amazon Kendra experience. When the status is `ACTIVE`, your Amazon Kendra experience is ready to use. When the status is `FAILED`, the `ErrorMessage` field contains the reason that this failed.
*/
public val status: aws.sdk.kotlin.services.kendra.model.ExperienceStatus? = builder.status
/**
* The Unix timestamp when your Amazon Kendra experience 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.kendra.model.DescribeExperienceResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeExperienceResponse(")
append("configuration=$configuration,")
append("createdAt=$createdAt,")
append("description=$description,")
append("endpoints=$endpoints,")
append("errorMessage=$errorMessage,")
append("id=$id,")
append("indexId=$indexId,")
append("name=$name,")
append("roleArn=$roleArn,")
append("status=$status,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = configuration?.hashCode() ?: 0
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (endpoints?.hashCode() ?: 0)
result = 31 * result + (errorMessage?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (indexId?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (roleArn?.hashCode() ?: 0)
result = 31 * result + (status?.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 DescribeExperienceResponse
if (configuration != other.configuration) return false
if (createdAt != other.createdAt) return false
if (description != other.description) return false
if (endpoints != other.endpoints) return false
if (errorMessage != other.errorMessage) return false
if (id != other.id) return false
if (indexId != other.indexId) return false
if (name != other.name) return false
if (roleArn != other.roleArn) return false
if (status != other.status) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.DescribeExperienceResponse = Builder(this).apply(block).build()
public class Builder {
/**
* Shows the configuration information for your Amazon Kendra experience. This includes `ContentSourceConfiguration`, which specifies the data source IDs and/or FAQ IDs, and `UserIdentityConfiguration`, which specifies the user or group information to grant access to your Amazon Kendra experience.
*/
public var configuration: aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration? = null
/**
* The Unix timestamp when your Amazon Kendra experience was created.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Shows the description for your Amazon Kendra experience.
*/
public var description: kotlin.String? = null
/**
* Shows the endpoint URLs for your Amazon Kendra experiences. The URLs are unique and fully hosted by Amazon Web Services.
*/
public var endpoints: List? = null
/**
* The reason your Amazon Kendra experience could not properly process.
*/
public var errorMessage: kotlin.String? = null
/**
* Shows the identifier of your Amazon Kendra experience.
*/
public var id: kotlin.String? = null
/**
* Shows the identifier of the index for your Amazon Kendra experience.
*/
public var indexId: kotlin.String? = null
/**
* Shows the name of your Amazon Kendra experience.
*/
public var name: kotlin.String? = null
/**
* Shows the Amazon Resource Name (ARN) of a role with permission to access `Query` API, `QuerySuggestions` API, `SubmitFeedback` API, and IAM Identity Center that stores your user and group information.
*/
public var roleArn: kotlin.String? = null
/**
* The current processing status of your Amazon Kendra experience. When the status is `ACTIVE`, your Amazon Kendra experience is ready to use. When the status is `FAILED`, the `ErrorMessage` field contains the reason that this failed.
*/
public var status: aws.sdk.kotlin.services.kendra.model.ExperienceStatus? = null
/**
* The Unix timestamp when your Amazon Kendra experience was last updated.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.DescribeExperienceResponse) : this() {
this.configuration = x.configuration
this.createdAt = x.createdAt
this.description = x.description
this.endpoints = x.endpoints
this.errorMessage = x.errorMessage
this.id = x.id
this.indexId = x.indexId
this.name = x.name
this.roleArn = x.roleArn
this.status = x.status
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.DescribeExperienceResponse = DescribeExperienceResponse(this)
/**
* construct an [aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration] inside the given [block]
*/
public fun configuration(block: aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration.Builder.() -> kotlin.Unit) {
this.configuration = aws.sdk.kotlin.services.kendra.model.ExperienceConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy