
commonMain.aws.sdk.kotlin.services.rekognition.model.User.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* Metadata of the user stored in a collection.
*/
public class User private constructor(builder: Builder) {
/**
* A provided ID for the User. Unique within the collection.
*/
public val userId: kotlin.String? = builder.userId
/**
* Communicates if the UserID has been updated with latest set of faces to be associated with the UserID.
*/
public val userStatus: aws.sdk.kotlin.services.rekognition.model.UserStatus? = builder.userStatus
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.User = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("User(")
append("userId=$userId,")
append("userStatus=$userStatus")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = userId?.hashCode() ?: 0
result = 31 * result + (userStatus?.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 User
if (userId != other.userId) return false
if (userStatus != other.userStatus) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.User = Builder(this).apply(block).build()
public class Builder {
/**
* A provided ID for the User. Unique within the collection.
*/
public var userId: kotlin.String? = null
/**
* Communicates if the UserID has been updated with latest set of faces to be associated with the UserID.
*/
public var userStatus: aws.sdk.kotlin.services.rekognition.model.UserStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.User) : this() {
this.userId = x.userId
this.userStatus = x.userStatus
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.User = User(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy