
commonMain.aws.sdk.kotlin.services.swf.model.LambdaFunctionCompletedEventAttributes.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 `LambdaFunctionCompleted` event. It isn't set for other event types.
*/
public class LambdaFunctionCompletedEventAttributes private constructor(builder: Builder) {
/**
* The results of the Lambda task.
*/
public val result: kotlin.String? = builder.result
/**
* The ID of the `LambdaFunctionScheduled` event that was recorded when this Lambda 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 `LambdaFunctionStarted` event 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.LambdaFunctionCompletedEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LambdaFunctionCompletedEventAttributes(")
append("result=$result,")
append("scheduledEventId=$scheduledEventId,")
append("startedEventId=$startedEventId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = result?.hashCode() ?: 0
result = 31 * result + (scheduledEventId.hashCode())
result = 31 * result + (startedEventId.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 LambdaFunctionCompletedEventAttributes
if (result != other.result) return false
if (scheduledEventId != other.scheduledEventId) return false
if (startedEventId != other.startedEventId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.LambdaFunctionCompletedEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The results of the Lambda task.
*/
public var result: kotlin.String? = null
/**
* The ID of the `LambdaFunctionScheduled` event that was recorded when this Lambda 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 `LambdaFunctionStarted` event 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.LambdaFunctionCompletedEventAttributes) : this() {
this.result = x.result
this.scheduledEventId = x.scheduledEventId
this.startedEventId = x.startedEventId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.LambdaFunctionCompletedEventAttributes = LambdaFunctionCompletedEventAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy