commonMain.aws.sdk.kotlin.services.glue.model.DataQualityMetricValues.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes the data quality metric value according to the analysis of historical data.
*/
public class DataQualityMetricValues private constructor(builder: Builder) {
/**
* The actual value of the data quality metric.
*/
public val actualValue: kotlin.Double? = builder.actualValue
/**
* The expected value of the data quality metric according to the analysis of historical data.
*/
public val expectedValue: kotlin.Double? = builder.expectedValue
/**
* The lower limit of the data quality metric value according to the analysis of historical data.
*/
public val lowerLimit: kotlin.Double? = builder.lowerLimit
/**
* The upper limit of the data quality metric value according to the analysis of historical data.
*/
public val upperLimit: kotlin.Double? = builder.upperLimit
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DataQualityMetricValues = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataQualityMetricValues(")
append("actualValue=$actualValue,")
append("expectedValue=$expectedValue,")
append("lowerLimit=$lowerLimit,")
append("upperLimit=$upperLimit")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actualValue?.hashCode() ?: 0
result = 31 * result + (expectedValue?.hashCode() ?: 0)
result = 31 * result + (lowerLimit?.hashCode() ?: 0)
result = 31 * result + (upperLimit?.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 DataQualityMetricValues
if (!(actualValue?.equals(other.actualValue) ?: (other.actualValue == null))) return false
if (!(expectedValue?.equals(other.expectedValue) ?: (other.expectedValue == null))) return false
if (!(lowerLimit?.equals(other.lowerLimit) ?: (other.lowerLimit == null))) return false
if (!(upperLimit?.equals(other.upperLimit) ?: (other.upperLimit == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DataQualityMetricValues = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The actual value of the data quality metric.
*/
public var actualValue: kotlin.Double? = null
/**
* The expected value of the data quality metric according to the analysis of historical data.
*/
public var expectedValue: kotlin.Double? = null
/**
* The lower limit of the data quality metric value according to the analysis of historical data.
*/
public var lowerLimit: kotlin.Double? = null
/**
* The upper limit of the data quality metric value according to the analysis of historical data.
*/
public var upperLimit: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DataQualityMetricValues) : this() {
this.actualValue = x.actualValue
this.expectedValue = x.expectedValue
this.lowerLimit = x.lowerLimit
this.upperLimit = x.upperLimit
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DataQualityMetricValues = DataQualityMetricValues(this)
internal fun correctErrors(): Builder {
return this
}
}
}