commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorDataQualityMetric.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm 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
import aws.smithy.kotlin.runtime.time.Instant
/**
* Aggregated details about the data quality metrics collected for the `AnomalyDetectorArn` provided in the GetDataQualityMetrics object.
*/
public class AnomalyDetectorDataQualityMetric private constructor(builder: Builder) {
/**
* An array of `DataQualityMetricList` objects. Each object in the array contains information about a data quality metric.
*/
public val metricSetDataQualityMetricList: List? = builder.metricSetDataQualityMetricList
/**
* The start time for the data quality metrics collection.
*/
public val startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.startTimestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorDataQualityMetric = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnomalyDetectorDataQualityMetric(")
append("metricSetDataQualityMetricList=$metricSetDataQualityMetricList,")
append("startTimestamp=$startTimestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metricSetDataQualityMetricList?.hashCode() ?: 0
result = 31 * result + (startTimestamp?.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 AnomalyDetectorDataQualityMetric
if (metricSetDataQualityMetricList != other.metricSetDataQualityMetricList) return false
if (startTimestamp != other.startTimestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorDataQualityMetric = Builder(this).apply(block).build()
public class Builder {
/**
* An array of `DataQualityMetricList` objects. Each object in the array contains information about a data quality metric.
*/
public var metricSetDataQualityMetricList: List? = null
/**
* The start time for the data quality metrics collection.
*/
public var startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorDataQualityMetric) : this() {
this.metricSetDataQualityMetricList = x.metricSetDataQualityMetricList
this.startTimestamp = x.startTimestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectorDataQualityMetric = AnomalyDetectorDataQualityMetric(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy