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

commonMain.aws.sdk.kotlin.services.swf.model.LambdaFunctionStartedEventAttributes.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 the details of the `LambdaFunctionStarted` event. It isn't set for other event types.
 */
public class LambdaFunctionStartedEventAttributes 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

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

    override fun toString(): kotlin.String = buildString {
        append("LambdaFunctionStartedEventAttributes(")
        append("scheduledEventId=$scheduledEventId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = scheduledEventId.hashCode()
        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 LambdaFunctionStartedEventAttributes

        if (scheduledEventId != other.scheduledEventId) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.LambdaFunctionStartedEventAttributes = 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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy