
commonMain.aws.sdk.kotlin.services.swf.model.ActivityTaskTimedOutEventAttributes.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 `ActivityTaskTimedOut` event.
*/
public class ActivityTaskTimedOutEventAttributes private constructor(builder: Builder) {
/**
* Contains the content of the `details` parameter for the last call made by the activity to `RecordActivityTaskHeartbeat`.
*/
public val details: kotlin.String? = builder.details
/**
* The ID of the `ActivityTaskScheduled` event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public val scheduledEventId: kotlin.Long = builder.scheduledEventId
/**
* The ID of the `ActivityTaskStarted` event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing 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.ActivityTaskTimeoutType = requireNotNull(builder.timeoutType) { "A non-null value must be provided for timeoutType" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.ActivityTaskTimedOutEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActivityTaskTimedOutEventAttributes(")
append("details=$details,")
append("scheduledEventId=$scheduledEventId,")
append("startedEventId=$startedEventId,")
append("timeoutType=$timeoutType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = details?.hashCode() ?: 0
result = 31 * result + (scheduledEventId.hashCode())
result = 31 * result + (startedEventId.hashCode())
result = 31 * result + (timeoutType.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 ActivityTaskTimedOutEventAttributes
if (details != other.details) return false
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.ActivityTaskTimedOutEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains the content of the `details` parameter for the last call made by the activity to `RecordActivityTaskHeartbeat`.
*/
public var details: kotlin.String? = null
/**
* The ID of the `ActivityTaskScheduled` event that was recorded when this activity task was scheduled. This information can be useful for diagnosing problems by tracing back the chain of events leading up to this event.
*/
public var scheduledEventId: kotlin.Long = 0L
/**
* The ID of the `ActivityTaskStarted` event recorded when this activity task was started. This information can be useful for diagnosing problems by tracing 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.ActivityTaskTimeoutType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.ActivityTaskTimedOutEventAttributes) : this() {
this.details = x.details
this.scheduledEventId = x.scheduledEventId
this.startedEventId = x.startedEventId
this.timeoutType = x.timeoutType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.ActivityTaskTimedOutEventAttributes = ActivityTaskTimedOutEventAttributes(this)
internal fun correctErrors(): Builder {
if (timeoutType == null) timeoutType = ActivityTaskTimeoutType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy