All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.emr.model.ClusterTimeline.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

/**
 * Represents the timeline of the cluster's lifecycle.
 */
public class ClusterTimeline private constructor(builder: Builder) {
    /**
     * The creation date and time of the cluster.
     */
    public val creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationDateTime
    /**
     * The date and time when the cluster was terminated.
     */
    public val endDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endDateTime
    /**
     * The date and time when the cluster was ready to run steps.
     */
    public val readyDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.readyDateTime

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.ClusterTimeline = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("ClusterTimeline(")
        append("creationDateTime=$creationDateTime,")
        append("endDateTime=$endDateTime,")
        append("readyDateTime=$readyDateTime)")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationDateTime?.hashCode() ?: 0
        result = 31 * result + (endDateTime?.hashCode() ?: 0)
        result = 31 * result + (readyDateTime?.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 ClusterTimeline

        if (creationDateTime != other.creationDateTime) return false
        if (endDateTime != other.endDateTime) return false
        if (readyDateTime != other.readyDateTime) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.ClusterTimeline = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The creation date and time of the cluster.
         */
        public var creationDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The date and time when the cluster was terminated.
         */
        public var endDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The date and time when the cluster was ready to run steps.
         */
        public var readyDateTime: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emr.model.ClusterTimeline) : this() {
            this.creationDateTime = x.creationDateTime
            this.endDateTime = x.endDateTime
            this.readyDateTime = x.readyDateTime
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.emr.model.ClusterTimeline = ClusterTimeline(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy