
commonMain.aws.sdk.kotlin.services.rekognition.model.CreateFaceLivenessSessionResponse.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 CreateFaceLivenessSessionResponse private constructor(builder: Builder) {
/**
* A unique 128-bit UUID identifying a Face Liveness session. A new sessionID must be used for every Face Liveness check. If a given sessionID is used for subsequent Face Liveness checks, the checks will fail. Additionally, a SessionId expires 3 minutes after it's sent, making all Liveness data associated with the session (e.g., sessionID, reference image, audit images, etc.) unavailable.
*/
public val sessionId: kotlin.String = requireNotNull(builder.sessionId) { "A non-null value must be provided for sessionId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.CreateFaceLivenessSessionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateFaceLivenessSessionResponse(")
append("sessionId=$sessionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = sessionId.hashCode()
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 CreateFaceLivenessSessionResponse
if (sessionId != other.sessionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.CreateFaceLivenessSessionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique 128-bit UUID identifying a Face Liveness session. A new sessionID must be used for every Face Liveness check. If a given sessionID is used for subsequent Face Liveness checks, the checks will fail. Additionally, a SessionId expires 3 minutes after it's sent, making all Liveness data associated with the session (e.g., sessionID, reference image, audit images, etc.) unavailable.
*/
public var sessionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.CreateFaceLivenessSessionResponse) : this() {
this.sessionId = x.sessionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.CreateFaceLivenessSessionResponse = CreateFaceLivenessSessionResponse(this)
internal fun correctErrors(): Builder {
if (sessionId == null) sessionId = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy