
commonMain.aws.sdk.kotlin.services.kendra.model.EntityDisplayData.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.kendra.model
/**
* Information about the user entity.
*/
public class EntityDisplayData private constructor(builder: Builder) {
/**
* The first name of the user.
*/
public val firstName: kotlin.String? = builder.firstName
/**
* The name of the group.
*/
public val groupName: kotlin.String? = builder.groupName
/**
* The user name of the user.
*/
public val identifiedUserName: kotlin.String? = builder.identifiedUserName
/**
* The last name of the user.
*/
public val lastName: kotlin.String? = builder.lastName
/**
* The name of the user.
*/
public val userName: kotlin.String? = builder.userName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.kendra.model.EntityDisplayData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EntityDisplayData(")
append("firstName=*** Sensitive Data Redacted ***,")
append("groupName=*** Sensitive Data Redacted ***,")
append("identifiedUserName=*** Sensitive Data Redacted ***,")
append("lastName=*** Sensitive Data Redacted ***,")
append("userName=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = firstName?.hashCode() ?: 0
result = 31 * result + (groupName?.hashCode() ?: 0)
result = 31 * result + (identifiedUserName?.hashCode() ?: 0)
result = 31 * result + (lastName?.hashCode() ?: 0)
result = 31 * result + (userName?.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 EntityDisplayData
if (firstName != other.firstName) return false
if (groupName != other.groupName) return false
if (identifiedUserName != other.identifiedUserName) return false
if (lastName != other.lastName) return false
if (userName != other.userName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.kendra.model.EntityDisplayData = Builder(this).apply(block).build()
public class Builder {
/**
* The first name of the user.
*/
public var firstName: kotlin.String? = null
/**
* The name of the group.
*/
public var groupName: kotlin.String? = null
/**
* The user name of the user.
*/
public var identifiedUserName: kotlin.String? = null
/**
* The last name of the user.
*/
public var lastName: kotlin.String? = null
/**
* The name of the user.
*/
public var userName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.kendra.model.EntityDisplayData) : this() {
this.firstName = x.firstName
this.groupName = x.groupName
this.identifiedUserName = x.identifiedUserName
this.lastName = x.lastName
this.userName = x.userName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.kendra.model.EntityDisplayData = EntityDisplayData(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy