
commonMain.aws.sdk.kotlin.services.rekognition.model.SearchUsersRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
public class SearchUsersRequest private constructor(builder: Builder) {
/**
* The ID of an existing collection containing the UserID, used with a UserId or FaceId. If a FaceId is provided, UserId isn’t required to be present in the Collection.
*/
public val collectionId: kotlin.String? = builder.collectionId
/**
* ID for the existing face.
*/
public val faceId: kotlin.String? = builder.faceId
/**
* Maximum number of identities to return.
*/
public val maxUsers: kotlin.Int? = builder.maxUsers
/**
* ID for the existing User.
*/
public val userId: kotlin.String? = builder.userId
/**
* Optional value that specifies the minimum confidence in the matched UserID to return. Default value of 80.
*/
public val userMatchThreshold: kotlin.Float? = builder.userMatchThreshold
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.SearchUsersRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SearchUsersRequest(")
append("collectionId=$collectionId,")
append("faceId=$faceId,")
append("maxUsers=$maxUsers,")
append("userId=$userId,")
append("userMatchThreshold=$userMatchThreshold")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = collectionId?.hashCode() ?: 0
result = 31 * result + (faceId?.hashCode() ?: 0)
result = 31 * result + (maxUsers ?: 0)
result = 31 * result + (userId?.hashCode() ?: 0)
result = 31 * result + (userMatchThreshold?.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 SearchUsersRequest
if (collectionId != other.collectionId) return false
if (faceId != other.faceId) return false
if (maxUsers != other.maxUsers) return false
if (userId != other.userId) return false
if (userMatchThreshold != other.userMatchThreshold) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.SearchUsersRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The ID of an existing collection containing the UserID, used with a UserId or FaceId. If a FaceId is provided, UserId isn’t required to be present in the Collection.
*/
public var collectionId: kotlin.String? = null
/**
* ID for the existing face.
*/
public var faceId: kotlin.String? = null
/**
* Maximum number of identities to return.
*/
public var maxUsers: kotlin.Int? = null
/**
* ID for the existing User.
*/
public var userId: kotlin.String? = null
/**
* Optional value that specifies the minimum confidence in the matched UserID to return. Default value of 80.
*/
public var userMatchThreshold: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.SearchUsersRequest) : this() {
this.collectionId = x.collectionId
this.faceId = x.faceId
this.maxUsers = x.maxUsers
this.userId = x.userId
this.userMatchThreshold = x.userMatchThreshold
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.SearchUsersRequest = SearchUsersRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy