
commonMain.aws.sdk.kotlin.services.rekognition.model.DetectLabelsImagePropertiesSettings.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
/**
* Settings for the IMAGE_PROPERTIES feature type.
*/
public class DetectLabelsImagePropertiesSettings private constructor(builder: Builder) {
/**
* The maximum number of dominant colors to return when detecting labels in an image. The default value is 10.
*/
public val maxDominantColors: kotlin.Int = builder.maxDominantColors
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.rekognition.model.DetectLabelsImagePropertiesSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectLabelsImagePropertiesSettings(")
append("maxDominantColors=$maxDominantColors")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxDominantColors
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 DetectLabelsImagePropertiesSettings
if (maxDominantColors != other.maxDominantColors) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.rekognition.model.DetectLabelsImagePropertiesSettings = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The maximum number of dominant colors to return when detecting labels in an image. The default value is 10.
*/
public var maxDominantColors: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.rekognition.model.DetectLabelsImagePropertiesSettings) : this() {
this.maxDominantColors = x.maxDominantColors
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.rekognition.model.DetectLabelsImagePropertiesSettings = DetectLabelsImagePropertiesSettings(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy