commonMain.aws.sdk.kotlin.services.glue.model.StatisticModelResult.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
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The statistic model result.
*/
public class StatisticModelResult private constructor(builder: Builder) {
/**
* The actual value.
*/
public val actualValue: kotlin.Double? = builder.actualValue
/**
* The date.
*/
public val date: aws.smithy.kotlin.runtime.time.Instant? = builder.date
/**
* The inclusion annotation.
*/
public val inclusionAnnotation: aws.sdk.kotlin.services.glue.model.InclusionAnnotationValue? = builder.inclusionAnnotation
/**
* The lower bound.
*/
public val lowerBound: kotlin.Double? = builder.lowerBound
/**
* The predicted value.
*/
public val predictedValue: kotlin.Double? = builder.predictedValue
/**
* The upper bound.
*/
public val upperBound: kotlin.Double? = builder.upperBound
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.StatisticModelResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StatisticModelResult(")
append("actualValue=$actualValue,")
append("date=$date,")
append("inclusionAnnotation=$inclusionAnnotation,")
append("lowerBound=$lowerBound,")
append("predictedValue=$predictedValue,")
append("upperBound=$upperBound")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actualValue?.hashCode() ?: 0
result = 31 * result + (date?.hashCode() ?: 0)
result = 31 * result + (inclusionAnnotation?.hashCode() ?: 0)
result = 31 * result + (lowerBound?.hashCode() ?: 0)
result = 31 * result + (predictedValue?.hashCode() ?: 0)
result = 31 * result + (upperBound?.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 StatisticModelResult
if (!(actualValue?.equals(other.actualValue) ?: (other.actualValue == null))) return false
if (date != other.date) return false
if (inclusionAnnotation != other.inclusionAnnotation) return false
if (!(lowerBound?.equals(other.lowerBound) ?: (other.lowerBound == null))) return false
if (!(predictedValue?.equals(other.predictedValue) ?: (other.predictedValue == null))) return false
if (!(upperBound?.equals(other.upperBound) ?: (other.upperBound == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StatisticModelResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The actual value.
*/
public var actualValue: kotlin.Double? = null
/**
* The date.
*/
public var date: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The inclusion annotation.
*/
public var inclusionAnnotation: aws.sdk.kotlin.services.glue.model.InclusionAnnotationValue? = null
/**
* The lower bound.
*/
public var lowerBound: kotlin.Double? = null
/**
* The predicted value.
*/
public var predictedValue: kotlin.Double? = null
/**
* The upper bound.
*/
public var upperBound: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.StatisticModelResult) : this() {
this.actualValue = x.actualValue
this.date = x.date
this.inclusionAnnotation = x.inclusionAnnotation
this.lowerBound = x.lowerBound
this.predictedValue = x.predictedValue
this.upperBound = x.upperBound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StatisticModelResult = StatisticModelResult(this)
internal fun correctErrors(): Builder {
return this
}
}
}