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

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

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

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



/**
 * Specification of the status of a CancelSteps request. Available only in Amazon EMR version 4.8.0 and later, excluding version 5.0.0.
 */
public class CancelStepsInfo private constructor(builder: Builder) {
    /**
     * The reason for the failure if the CancelSteps request fails.
     */
    public val reason: kotlin.String? = builder.reason
    /**
     * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED.
     */
    public val status: aws.sdk.kotlin.services.emr.model.CancelStepsRequestStatus? = builder.status
    /**
     * The encrypted StepId of a step.
     */
    public val stepId: kotlin.String? = builder.stepId

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

    override fun toString(): kotlin.String = buildString {
        append("CancelStepsInfo(")
        append("reason=$reason,")
        append("status=$status,")
        append("stepId=$stepId)")
    }

    override fun hashCode(): kotlin.Int {
        var result = reason?.hashCode() ?: 0
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (stepId?.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 CancelStepsInfo

        if (reason != other.reason) return false
        if (status != other.status) return false
        if (stepId != other.stepId) return false

        return true
    }

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

    public class Builder {
        /**
         * The reason for the failure if the CancelSteps request fails.
         */
        public var reason: kotlin.String? = null
        /**
         * The status of a CancelSteps Request. The value may be SUBMITTED or FAILED.
         */
        public var status: aws.sdk.kotlin.services.emr.model.CancelStepsRequestStatus? = null
        /**
         * The encrypted StepId of a step.
         */
        public var stepId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.emr.model.CancelStepsInfo) : this() {
            this.reason = x.reason
            this.status = x.status
            this.stepId = x.stepId
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy