
commonMain.aws.sdk.kotlin.services.emr.model.StepTimeline.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* The timeline of the cluster step lifecycle.
*/
public class StepTimeline private constructor(builder: Builder) {
/**
* The date and time when the cluster step was created.
*/
public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
/**
* The date and time when the cluster step execution completed or failed.
*/
public val endDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endDateTime
/**
* The date and time when the cluster step execution started.
*/
public val startDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startDateTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.StepTimeline = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StepTimeline(")
append("creationDateTime=$creationDateTime,")
append("endDateTime=$endDateTime,")
append("startDateTime=$startDateTime)")
}
override fun hashCode(): kotlin.Int {
var result = creationDateTime?.hashCode() ?: 0
result = 31 * result + (endDateTime?.hashCode() ?: 0)
result = 31 * result + (startDateTime?.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 StepTimeline
if (creationDateTime != other.creationDateTime) return false
if (endDateTime != other.endDateTime) return false
if (startDateTime != other.startDateTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.StepTimeline = Builder(this).apply(block).build()
public class Builder {
/**
* The date and time when the cluster step was created.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date and time when the cluster step execution completed or failed.
*/
public var endDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date and time when the cluster step execution started.
*/
public var startDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.StepTimeline) : this() {
this.creationDateTime = x.creationDateTime
this.endDateTime = x.endDateTime
this.startDateTime = x.startDateTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.StepTimeline = StepTimeline(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy