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

commonMain.aws.sdk.kotlin.services.ssm.model.FailureDetails.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.ssm.model



/**
 * Information about an Automation failure.
 */
public class FailureDetails private constructor(builder: Builder) {
    /**
     * Detailed information about the Automation step failure.
     */
    public val details: Map>? = builder.details
    /**
     * The stage of the Automation execution when the failure occurred. The stages include the following: InputValidation, PreVerification, Invocation, PostVerification.
     */
    public val failureStage: kotlin.String? = builder.failureStage
    /**
     * The type of Automation failure. Failure types include the following: Action, Permission, Throttling, Verification, Internal.
     */
    public val failureType: kotlin.String? = builder.failureType

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

    override fun toString(): kotlin.String = buildString {
        append("FailureDetails(")
        append("details=$details,")
        append("failureStage=$failureStage,")
        append("failureType=$failureType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = details?.hashCode() ?: 0
        result = 31 * result + (failureStage?.hashCode() ?: 0)
        result = 31 * result + (failureType?.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 FailureDetails

        if (details != other.details) return false
        if (failureStage != other.failureStage) return false
        if (failureType != other.failureType) return false

        return true
    }

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

    public class Builder {
        /**
         * Detailed information about the Automation step failure.
         */
        public var details: Map>? = null
        /**
         * The stage of the Automation execution when the failure occurred. The stages include the following: InputValidation, PreVerification, Invocation, PostVerification.
         */
        public var failureStage: kotlin.String? = null
        /**
         * The type of Automation failure. Failure types include the following: Action, Permission, Throttling, Verification, Internal.
         */
        public var failureType: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ssm.model.FailureDetails) : this() {
            this.details = x.details
            this.failureStage = x.failureStage
            this.failureType = x.failureType
        }

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

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy