
commonMain.aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference.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
/**
* Allows you to opt in or opt out to share data with Rekognition to improve model performance. You can choose this option at the account level or on a per-stream basis. Note that if you opt out at the account level this setting is ignored on individual streams.
*/
public class StreamProcessorDataSharingPreference private constructor(builder: Builder) {
/**
* If this option is set to true, you choose to share data with Rekognition to improve model performance.
*/
public val optIn: kotlin.Boolean = builder.optIn
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StreamProcessorDataSharingPreference(")
append("optIn=$optIn")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = optIn.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 StreamProcessorDataSharingPreference
if (optIn != other.optIn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If this option is set to true, you choose to share data with Rekognition to improve model performance.
*/
public var optIn: kotlin.Boolean = false
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference) : this() {
this.optIn = x.optIn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.StreamProcessorDataSharingPreference = StreamProcessorDataSharingPreference(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy