
commonMain.aws.sdk.kotlin.services.iot.model.ViolationEventAdditionalInfo.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The details of a violation event.
*/
public class ViolationEventAdditionalInfo 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? = builder.confidenceLevel
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.ViolationEventAdditionalInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ViolationEventAdditionalInfo(")
append("confidenceLevel=$confidenceLevel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = confidenceLevel?.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 ViolationEventAdditionalInfo
if (confidenceLevel != other.confidenceLevel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.ViolationEventAdditionalInfo = 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.ViolationEventAdditionalInfo) : this() {
this.confidenceLevel = x.confidenceLevel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.ViolationEventAdditionalInfo = ViolationEventAdditionalInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy