commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.ExecutionStatus.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
/**
* The status of an anomaly detector run.
*/
public class ExecutionStatus private constructor(builder: Builder) {
/**
* The reason that the run failed, if applicable.
*/
public val failureReason: kotlin.String? = builder.failureReason
/**
* The run's status.
*/
public val status: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectionTaskStatus? = builder.status
/**
* The run's timestamp.
*/
public val timestamp: kotlin.String? = builder.timestamp
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.ExecutionStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionStatus(")
append("failureReason=$failureReason,")
append("status=$status,")
append("timestamp=$timestamp")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failureReason?.hashCode() ?: 0
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (timestamp?.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 ExecutionStatus
if (failureReason != other.failureReason) return false
if (status != other.status) return false
if (timestamp != other.timestamp) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.ExecutionStatus = Builder(this).apply(block).build()
public class Builder {
/**
* The reason that the run failed, if applicable.
*/
public var failureReason: kotlin.String? = null
/**
* The run's status.
*/
public var status: aws.sdk.kotlin.services.lookoutmetrics.model.AnomalyDetectionTaskStatus? = null
/**
* The run's timestamp.
*/
public var timestamp: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.ExecutionStatus) : this() {
this.failureReason = x.failureReason
this.status = x.status
this.timestamp = x.timestamp
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.ExecutionStatus = ExecutionStatus(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy