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

commonMain.aws.sdk.kotlin.services.swf.model.LambdaFunctionTimedOutEventAttributes.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.swf.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Provides details of the `LambdaFunctionTimedOut` event.
 */
public class LambdaFunctionTimedOutEventAttributes private constructor(builder: Builder) {
    /**
     * The ID of the `LambdaFunctionScheduled` event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
     */
    public val scheduledEventId: kotlin.Long = builder.scheduledEventId
    /**
     * The ID of the `ActivityTaskStarted` event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
     */
    public val startedEventId: kotlin.Long = builder.startedEventId
    /**
     * The type of the timeout that caused this event.
     */
    public val timeoutType: aws.sdk.kotlin.services.swf.model.LambdaFunctionTimeoutType? = builder.timeoutType

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

    override fun toString(): kotlin.String = buildString {
        append("LambdaFunctionTimedOutEventAttributes(")
        append("scheduledEventId=$scheduledEventId,")
        append("startedEventId=$startedEventId,")
        append("timeoutType=$timeoutType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = scheduledEventId.hashCode()
        result = 31 * result + (startedEventId.hashCode())
        result = 31 * result + (timeoutType?.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 LambdaFunctionTimedOutEventAttributes

        if (scheduledEventId != other.scheduledEventId) return false
        if (startedEventId != other.startedEventId) return false
        if (timeoutType != other.timeoutType) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The ID of the `LambdaFunctionScheduled` event that was recorded when this activity task was scheduled. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
         */
        public var scheduledEventId: kotlin.Long = 0L
        /**
         * The ID of the `ActivityTaskStarted` event that was recorded when this activity task started. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
         */
        public var startedEventId: kotlin.Long = 0L
        /**
         * The type of the timeout that caused this event.
         */
        public var timeoutType: aws.sdk.kotlin.services.swf.model.LambdaFunctionTimeoutType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.swf.model.LambdaFunctionTimedOutEventAttributes) : this() {
            this.scheduledEventId = x.scheduledEventId
            this.startedEventId = x.startedEventId
            this.timeoutType = x.timeoutType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy