package com.amplifyframework.predictions.aws.options import com.amplifyframework.annotations.InternalAmplifyApi import com.amplifyframework.auth.AWSCredentials import com.amplifyframework.auth.AWSCredentialsProvider import com.amplifyframework.predictions.options.FaceLivenessSessionOptions @InternalAmplifyApi open class AWSFaceLivenessSessionOptions private constructor( val credentialsProvider: AWSCredentialsProvider? ) : FaceLivenessSessionOptions() { companion object { @JvmStatic fun builder() = Builder() @JvmStatic fun defaults() = builder().build() } class Builder : FaceLivenessSessionOptions.Builder() { var credentialsProvider: AWSCredentialsProvider? = null private set fun credentialsProvider(credentialsProvider: AWSCredentialsProvider) = apply { this.credentialsProvider = credentialsProvider } override fun getThis() = this override fun build() = AWSFaceLivenessSessionOptions(credentialsProvider) } }