
commonMain.aws.sdk.kotlin.services.emr.model.InstanceGroupStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.emr.model
/**
* The details of the instance group status.
*/
public class InstanceGroupStatus private constructor(builder: Builder) {
/**
* The current state of the instance group.
*/
public val state: aws.sdk.kotlin.services.emr.model.InstanceGroupState? = builder.state
/**
* The status change reason details for the instance group.
*/
public val stateChangeReason: aws.sdk.kotlin.services.emr.model.InstanceGroupStateChangeReason? = builder.stateChangeReason
/**
* The timeline of the instance group status over time.
*/
public val timeline: aws.sdk.kotlin.services.emr.model.InstanceGroupTimeline? = builder.timeline
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.emr.model.InstanceGroupStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InstanceGroupStatus(")
append("state=$state,")
append("stateChangeReason=$stateChangeReason,")
append("timeline=$timeline)")
}
override fun hashCode(): kotlin.Int {
var result = state?.hashCode() ?: 0
result = 31 * result + (stateChangeReason?.hashCode() ?: 0)
result = 31 * result + (timeline?.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 InstanceGroupStatus
if (state != other.state) return false
if (stateChangeReason != other.stateChangeReason) return false
if (timeline != other.timeline) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.emr.model.InstanceGroupStatus = Builder(this).apply(block).build()
public class Builder {
/**
* The current state of the instance group.
*/
public var state: aws.sdk.kotlin.services.emr.model.InstanceGroupState? = null
/**
* The status change reason details for the instance group.
*/
public var stateChangeReason: aws.sdk.kotlin.services.emr.model.InstanceGroupStateChangeReason? = null
/**
* The timeline of the instance group status over time.
*/
public var timeline: aws.sdk.kotlin.services.emr.model.InstanceGroupTimeline? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.emr.model.InstanceGroupStatus) : this() {
this.state = x.state
this.stateChangeReason = x.stateChangeReason
this.timeline = x.timeline
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.emr.model.InstanceGroupStatus = InstanceGroupStatus(this)
/**
* construct an [aws.sdk.kotlin.services.emr.model.InstanceGroupStateChangeReason] inside the given [block]
*/
public fun stateChangeReason(block: aws.sdk.kotlin.services.emr.model.InstanceGroupStateChangeReason.Builder.() -> kotlin.Unit) {
this.stateChangeReason = aws.sdk.kotlin.services.emr.model.InstanceGroupStateChangeReason.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.emr.model.InstanceGroupTimeline] inside the given [block]
*/
public fun timeline(block: aws.sdk.kotlin.services.emr.model.InstanceGroupTimeline.Builder.() -> kotlin.Unit) {
this.timeline = aws.sdk.kotlin.services.emr.model.InstanceGroupTimeline.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy