
commonMain.aws.sdk.kotlin.services.iot.model.MachineLearningDetectionConfig.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The configuration of an ML Detect Security Profile.
*/
public class MachineLearningDetectionConfig private constructor(builder: Builder) {
/**
* The sensitivity of anomalous behavior evaluation. Can be `Low`, `Medium`, or `High`.
*/
public val confidenceLevel: aws.sdk.kotlin.services.iot.model.ConfidenceLevel = requireNotNull(builder.confidenceLevel) { "A non-null value must be provided for confidenceLevel" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.MachineLearningDetectionConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MachineLearningDetectionConfig(")
append("confidenceLevel=$confidenceLevel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = confidenceLevel.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 MachineLearningDetectionConfig
if (confidenceLevel != other.confidenceLevel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.MachineLearningDetectionConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The sensitivity of anomalous behavior evaluation. Can be `Low`, `Medium`, or `High`.
*/
public var confidenceLevel: aws.sdk.kotlin.services.iot.model.ConfidenceLevel? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.MachineLearningDetectionConfig) : this() {
this.confidenceLevel = x.confidenceLevel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.MachineLearningDetectionConfig = MachineLearningDetectionConfig(this)
internal fun correctErrors(): Builder {
if (confidenceLevel == null) confidenceLevel = ConfidenceLevel.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy