
commonMain.aws.sdk.kotlin.services.rekognition.model.LabelDetectionSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.rekognition.model
/**
* Contains the specified filters that should be applied to a list of returned GENERAL_LABELS.
*/
public class LabelDetectionSettings private constructor(builder: Builder) {
/**
* Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a combination of both and can be applied to individual labels or entire label categories. To see a list of label categories, see [Detecting Labels](https://docs.aws.amazon.com/rekognition/latest/dg/labels.html).
*/
public val generalLabels: aws.sdk.kotlin.services.rekognition.model.GeneralLabelsSettings? = builder.generalLabels
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.LabelDetectionSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LabelDetectionSettings(")
append("generalLabels=$generalLabels")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = generalLabels?.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 LabelDetectionSettings
if (generalLabels != other.generalLabels) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.LabelDetectionSettings = Builder(this).apply(block).build()
public class Builder {
/**
* Contains filters for the object labels returned by DetectLabels. Filters can be inclusive, exclusive, or a combination of both and can be applied to individual labels or entire label categories. To see a list of label categories, see [Detecting Labels](https://docs.aws.amazon.com/rekognition/latest/dg/labels.html).
*/
public var generalLabels: aws.sdk.kotlin.services.rekognition.model.GeneralLabelsSettings? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.LabelDetectionSettings) : this() {
this.generalLabels = x.generalLabels
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.LabelDetectionSettings = LabelDetectionSettings(this)
/**
* construct an [aws.sdk.kotlin.services.rekognition.model.GeneralLabelsSettings] inside the given [block]
*/
public fun generalLabels(block: aws.sdk.kotlin.services.rekognition.model.GeneralLabelsSettings.Builder.() -> kotlin.Unit) {
this.generalLabels = aws.sdk.kotlin.services.rekognition.model.GeneralLabelsSettings.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy