commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics Show documentation
Show all versions of lookoutmetrics Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
/**
* Contains information about a detector's configuration.
*/
public class AnomalyDetectorConfig private constructor(builder: Builder) {
/**
* The frequency at which the detector analyzes its source data.
*/
public val anomalyDetectorFrequency: aws.sdk.kotlin.services.lookoutmetrics.model.Frequency? = builder.anomalyDetectorFrequency
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnomalyDetectorConfig(")
append("anomalyDetectorFrequency=$anomalyDetectorFrequency)")
}
override fun hashCode(): kotlin.Int {
var result = anomalyDetectorFrequency?.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 AnomalyDetectorConfig
if (anomalyDetectorFrequency != other.anomalyDetectorFrequency) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorConfig = Builder(this).apply(block).build()
public class Builder {
/**
* The frequency at which the detector analyzes its source data.
*/
public var anomalyDetectorFrequency: aws.sdk.kotlin.services.lookoutmetrics.model.Frequency? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorConfig) : this() {
this.anomalyDetectorFrequency = x.anomalyDetectorFrequency
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorConfig = AnomalyDetectorConfig(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy