commonMain.aws.sdk.kotlin.services.glue.model.GetDataQualityModelResponse.kt Maven / Gradle / Ivy
// 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
public class GetDataQualityModelResponse private constructor(builder: Builder) {
/**
* The timestamp when the data quality model training completed.
*/
public val completedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.completedOn
/**
* The training failure reason.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The timestamp when the data quality model training started.
*/
public val startedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.startedOn
/**
* The training status of the data quality model.
*/
public val status: aws.sdk.kotlin.services.glue.model.DataQualityModelStatus? = builder.status
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetDataQualityModelResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetDataQualityModelResponse(")
append("completedOn=$completedOn,")
append("failureReason=$failureReason,")
append("startedOn=$startedOn,")
append("status=$status")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = completedOn?.hashCode() ?: 0
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (startedOn?.hashCode() ?: 0)
result = 31 * result + (status?.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 GetDataQualityModelResponse
if (completedOn != other.completedOn) return false
if (failureReason != other.failureReason) return false
if (startedOn != other.startedOn) return false
if (status != other.status) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.GetDataQualityModelResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp when the data quality model training completed.
*/
public var completedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The training failure reason.
*/
public var failureReason: kotlin.String? = null
/**
* The timestamp when the data quality model training started.
*/
public var startedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The training status of the data quality model.
*/
public var status: aws.sdk.kotlin.services.glue.model.DataQualityModelStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetDataQualityModelResponse) : this() {
this.completedOn = x.completedOn
this.failureReason = x.failureReason
this.startedOn = x.startedOn
this.status = x.status
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetDataQualityModelResponse = GetDataQualityModelResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}