
commonMain.aws.sdk.kotlin.services.rekognition.model.CustomizationFeatureContentModerationConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* Configuration options for Content Moderation training.
*/
public class CustomizationFeatureContentModerationConfig private constructor(builder: Builder) {
/**
* The confidence level you plan to use to identify if unsafe content is present during inference.
*/
public val confidenceThreshold: kotlin.Float? = builder.confidenceThreshold
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.CustomizationFeatureContentModerationConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CustomizationFeatureContentModerationConfig(")
append("confidenceThreshold=$confidenceThreshold")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = confidenceThreshold?.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 CustomizationFeatureContentModerationConfig
if (confidenceThreshold != other.confidenceThreshold) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.CustomizationFeatureContentModerationConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The confidence level you plan to use to identify if unsafe content is present during inference.
*/
public var confidenceThreshold: kotlin.Float? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.CustomizationFeatureContentModerationConfig) : this() {
this.confidenceThreshold = x.confidenceThreshold
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.CustomizationFeatureContentModerationConfig = CustomizationFeatureContentModerationConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy