commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetric.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An array that describes a data quality metric. Each `DataQualityMetric` object contains the data quality metric name, its value, a description of the metric, and the affected column.
*/
public class DataQualityMetric private constructor(builder: Builder) {
/**
* A description of the data quality metric.
*/
public val metricDescription: kotlin.String? = builder.metricDescription
/**
* The name of the data quality metric.
*/
public val metricType: aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetricType? = builder.metricType
/**
* The value of the data quality metric.
*/
public val metricValue: kotlin.Double? = builder.metricValue
/**
* The column that is being monitored.
*/
public val relatedColumnName: kotlin.String? = builder.relatedColumnName
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetric = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataQualityMetric(")
append("metricDescription=$metricDescription,")
append("metricType=$metricType,")
append("metricValue=$metricValue,")
append("relatedColumnName=$relatedColumnName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metricDescription?.hashCode() ?: 0
result = 31 * result + (metricType?.hashCode() ?: 0)
result = 31 * result + (metricValue?.hashCode() ?: 0)
result = 31 * result + (relatedColumnName?.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 DataQualityMetric
if (metricDescription != other.metricDescription) return false
if (metricType != other.metricType) return false
if (!(metricValue?.equals(other.metricValue) ?: (other.metricValue == null))) return false
if (relatedColumnName != other.relatedColumnName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetric = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A description of the data quality metric.
*/
public var metricDescription: kotlin.String? = null
/**
* The name of the data quality metric.
*/
public var metricType: aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetricType? = null
/**
* The value of the data quality metric.
*/
public var metricValue: kotlin.Double? = null
/**
* The column that is being monitored.
*/
public var relatedColumnName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetric) : this() {
this.metricDescription = x.metricDescription
this.metricType = x.metricType
this.metricValue = x.metricValue
this.relatedColumnName = x.relatedColumnName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.DataQualityMetric = DataQualityMetric(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy