
commonMain.aws.sdk.kotlin.services.rekognition.model.DisassociateFacesRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
import aws.smithy.kotlin.runtime.SdkDsl
public class DisassociateFacesRequest private constructor(builder: Builder) {
/**
* Idempotent token used to identify the request to `DisassociateFaces`. If you use the same token with multiple `DisassociateFaces` 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 face IDs to disassociate from the UserID.
*/
public val faceIds: List? = builder.faceIds
/**
* ID for the existing UserID.
*/
public val userId: kotlin.String? = builder.userId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DisassociateFacesRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DisassociateFacesRequest(")
append("clientRequestToken=$clientRequestToken,")
append("collectionId=$collectionId,")
append("faceIds=$faceIds,")
append("userId=$userId")
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)
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 DisassociateFacesRequest
if (clientRequestToken != other.clientRequestToken) return false
if (collectionId != other.collectionId) return false
if (faceIds != other.faceIds) return false
if (userId != other.userId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DisassociateFacesRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Idempotent token used to identify the request to `DisassociateFaces`. If you use the same token with multiple `DisassociateFaces` 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 face IDs to disassociate from the UserID.
*/
public var faceIds: List? = null
/**
* ID for the existing UserID.
*/
public var userId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DisassociateFacesRequest) : this() {
this.clientRequestToken = x.clientRequestToken
this.collectionId = x.collectionId
this.faceIds = x.faceIds
this.userId = x.userId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DisassociateFacesRequest = DisassociateFacesRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy