
commonMain.aws.sdk.kotlin.services.rekognition.model.AssociateFacesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
public class AssociateFacesRequest private constructor(builder: Builder) {
/**
* Idempotent token used to identify the request to `AssociateFaces`. If you use the same token with multiple `AssociateFaces` requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* The ID of an existing collection containing the UserID.
*/
public val collectionId: kotlin.String? = builder.collectionId
/**
* An array of FaceIDs to associate with the UserID.
*/
public val faceIds: List? = builder.faceIds
/**
* The ID for the existing UserID.
*/
public val userId: kotlin.String? = builder.userId
/**
* An optional value specifying the minimum confidence in the UserID match to return. The default value is 75.
*/
public val userMatchThreshold: kotlin.Float? = builder.userMatchThreshold
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.AssociateFacesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AssociateFacesRequest(")
append("clientRequestToken=$clientRequestToken,")
append("collectionId=$collectionId,")
append("faceIds=$faceIds,")
append("userId=$userId,")
append("userMatchThreshold=$userMatchThreshold")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientRequestToken?.hashCode() ?: 0
result = 31 * result + (collectionId?.hashCode() ?: 0)
result = 31 * result + (faceIds?.hashCode() ?: 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 AssociateFacesRequest
if (clientRequestToken != other.clientRequestToken) return false
if (collectionId != other.collectionId) return false
if (faceIds != other.faceIds) 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.AssociateFacesRequest = Builder(this).apply(block).build()
public class Builder {
/**
* Idempotent token used to identify the request to `AssociateFaces`. If you use the same token with multiple `AssociateFaces` requests, the same response is returned. Use ClientRequestToken to prevent the same request from being processed more than once.
*/
public var clientRequestToken: kotlin.String? = null
/**
* The ID of an existing collection containing the UserID.
*/
public var collectionId: kotlin.String? = null
/**
* An array of FaceIDs to associate with the UserID.
*/
public var faceIds: List? = null
/**
* The ID for the existing UserID.
*/
public var userId: kotlin.String? = null
/**
* An optional value specifying the minimum confidence in the UserID match to return. The default value is 75.
*/
public var userMatchThreshold: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.AssociateFacesRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.collectionId = x.collectionId
this.faceIds = x.faceIds
this.userId = x.userId
this.userMatchThreshold = x.userMatchThreshold
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.AssociateFacesRequest = AssociateFacesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy