
commonMain.aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail.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 execution state of a step.
*/
public class StepExecutionStatusDetail private constructor(builder: Builder) {
/**
* The creation date and time of the step.
*/
public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
/**
* The completion date and time of the step.
*/
public val endDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endDateTime
/**
* A description of the step's current state.
*/
public val lastStateChangeReason: kotlin.String? = builder.lastStateChangeReason
/**
* The start date and time of the step.
*/
public val startDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startDateTime
/**
* The state of the step.
*/
public val state: aws.sdk.kotlin.services.emr.model.StepExecutionState? = builder.state
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StepExecutionStatusDetail(")
append("creationDateTime=$creationDateTime,")
append("endDateTime=$endDateTime,")
append("lastStateChangeReason=$lastStateChangeReason,")
append("startDateTime=$startDateTime,")
append("state=$state)")
}
override fun hashCode(): kotlin.Int {
var result = creationDateTime?.hashCode() ?: 0
result = 31 * result + (endDateTime?.hashCode() ?: 0)
result = 31 * result + (lastStateChangeReason?.hashCode() ?: 0)
result = 31 * result + (startDateTime?.hashCode() ?: 0)
result = 31 * result + (state?.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 StepExecutionStatusDetail
if (creationDateTime != other.creationDateTime) return false
if (endDateTime != other.endDateTime) return false
if (lastStateChangeReason != other.lastStateChangeReason) return false
if (startDateTime != other.startDateTime) return false
if (state != other.state) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail = Builder(this).apply(block).build()
public class Builder {
/**
* The creation date and time of the step.
*/
public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The completion date and time of the step.
*/
public var endDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* A description of the step's current state.
*/
public var lastStateChangeReason: kotlin.String? = null
/**
* The start date and time of the step.
*/
public var startDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The state of the step.
*/
public var state: aws.sdk.kotlin.services.emr.model.StepExecutionState? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail) : this() {
this.creationDateTime = x.creationDateTime
this.endDateTime = x.endDateTime
this.lastStateChangeReason = x.lastStateChangeReason
this.startDateTime = x.startDateTime
this.state = x.state
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail = StepExecutionStatusDetail(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy