
commonMain.aws.sdk.kotlin.services.kendra.model.ExperienceEntitiesSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Summary information for users or groups in your IAM Identity Center identity source with granted access to your Amazon Kendra experience. You can create an Amazon Kendra experience such as a search application. For more information on creating a search application experience, see [Building a search experience with no code](https://docs.aws.amazon.com/kendra/latest/dg/deploying-search-experience-no-code.html).
*/
public class ExperienceEntitiesSummary private constructor(builder: Builder) {
/**
* Information about the user entity.
*/
public val displayData: aws.sdk.kotlin.services.kendra.model.EntityDisplayData? = builder.displayData
/**
* The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.
*/
public val entityId: kotlin.String? = builder.entityId
/**
* Shows the type as `User` or `Group`.
*/
public val entityType: aws.sdk.kotlin.services.kendra.model.EntityType? = builder.entityType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.ExperienceEntitiesSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExperienceEntitiesSummary(")
append("displayData=$displayData,")
append("entityId=$entityId,")
append("entityType=$entityType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = displayData?.hashCode() ?: 0
result = 31 * result + (entityId?.hashCode() ?: 0)
result = 31 * result + (entityType?.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 ExperienceEntitiesSummary
if (displayData != other.displayData) return false
if (entityId != other.entityId) return false
if (entityType != other.entityType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.ExperienceEntitiesSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Information about the user entity.
*/
public var displayData: aws.sdk.kotlin.services.kendra.model.EntityDisplayData? = null
/**
* The identifier of a user or group in your IAM Identity Center identity source. For example, a user ID could be an email.
*/
public var entityId: kotlin.String? = null
/**
* Shows the type as `User` or `Group`.
*/
public var entityType: aws.sdk.kotlin.services.kendra.model.EntityType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.ExperienceEntitiesSummary) : this() {
this.displayData = x.displayData
this.entityId = x.entityId
this.entityType = x.entityType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.ExperienceEntitiesSummary = ExperienceEntitiesSummary(this)
/**
* construct an [aws.sdk.kotlin.services.kendra.model.EntityDisplayData] inside the given [block]
*/
public fun displayData(block: aws.sdk.kotlin.services.kendra.model.EntityDisplayData.Builder.() -> kotlin.Unit) {
this.displayData = aws.sdk.kotlin.services.kendra.model.EntityDisplayData.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy