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

commonMain.aws.sdk.kotlin.services.emr.model.StepDetail.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.emr.model



/**
 * Combines the execution state and configuration of a step.
 */
public class StepDetail private constructor(builder: Builder) {
    /**
     * The description of the step status.
     */
    public val executionStatusDetail: aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail? = builder.executionStatusDetail
    /**
     * The step configuration.
     */
    public val stepConfig: aws.sdk.kotlin.services.emr.model.StepConfig? = builder.stepConfig

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

    override fun toString(): kotlin.String = buildString {
        append("StepDetail(")
        append("executionStatusDetail=$executionStatusDetail,")
        append("stepConfig=$stepConfig)")
    }

    override fun hashCode(): kotlin.Int {
        var result = executionStatusDetail?.hashCode() ?: 0
        result = 31 * result + (stepConfig?.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 StepDetail

        if (executionStatusDetail != other.executionStatusDetail) return false
        if (stepConfig != other.stepConfig) return false

        return true
    }

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

    public class Builder {
        /**
         * The description of the step status.
         */
        public var executionStatusDetail: aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail? = null
        /**
         * The step configuration.
         */
        public var stepConfig: aws.sdk.kotlin.services.emr.model.StepConfig? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emr.model.StepDetail) : this() {
            this.executionStatusDetail = x.executionStatusDetail
            this.stepConfig = x.stepConfig
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail] inside the given [block]
         */
        public fun executionStatusDetail(block: aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail.Builder.() -> kotlin.Unit) {
            this.executionStatusDetail = aws.sdk.kotlin.services.emr.model.StepExecutionStatusDetail.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.emr.model.StepConfig] inside the given [block]
         */
        public fun stepConfig(block: aws.sdk.kotlin.services.emr.model.StepConfig.Builder.() -> kotlin.Unit) {
            this.stepConfig = aws.sdk.kotlin.services.emr.model.StepConfig.invoke(block)
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy