
commonMain.aws.sdk.kotlin.services.swf.model.StartLambdaFunctionFailedEventAttributes.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 `StartLambdaFunctionFailed` event. It isn't set for other event types.
*/
public class StartLambdaFunctionFailedEventAttributes private constructor(builder: Builder) {
/**
* The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
*
* If `cause` is set to `OPERATION_NOT_PERMITTED`, the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see [Lambda Tasks](https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html) in the *Amazon SWF Developer Guide*.
*/
public val cause: aws.sdk.kotlin.services.swf.model.StartLambdaFunctionFailedCause? = builder.cause
/**
* A description that can help diagnose the cause of the fault.
*/
public val message: kotlin.String? = builder.message
/**
* The ID of the `ActivityTaskScheduled` 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.StartLambdaFunctionFailedEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartLambdaFunctionFailedEventAttributes(")
append("cause=$cause,")
append("message=$message,")
append("scheduledEventId=$scheduledEventId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cause?.hashCode() ?: 0
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * 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 StartLambdaFunctionFailedEventAttributes
if (cause != other.cause) return false
if (message != other.message) return false
if (scheduledEventId != other.scheduledEventId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.StartLambdaFunctionFailedEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The cause of the failure. To help diagnose issues, use this information to trace back the chain of events leading up to this event.
*
* If `cause` is set to `OPERATION_NOT_PERMITTED`, the decision failed because the IAM role attached to the execution lacked sufficient permissions. For details and example IAM policies, see [Lambda Tasks](https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html) in the *Amazon SWF Developer Guide*.
*/
public var cause: aws.sdk.kotlin.services.swf.model.StartLambdaFunctionFailedCause? = null
/**
* A description that can help diagnose the cause of the fault.
*/
public var message: kotlin.String? = null
/**
* The ID of the `ActivityTaskScheduled` 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.StartLambdaFunctionFailedEventAttributes) : this() {
this.cause = x.cause
this.message = x.message
this.scheduledEventId = x.scheduledEventId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.StartLambdaFunctionFailedEventAttributes = StartLambdaFunctionFailedEventAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy