
commonMain.aws.sdk.kotlin.services.swf.model.ActivityTaskStartedEventAttributes.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 `ActivityTaskStarted` event.
*/
public class ActivityTaskStartedEventAttributes private constructor(builder: Builder) {
/**
* Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.
*/
public val identity: kotlin.String? = builder.identity
/**
* 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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.swf.model.ActivityTaskStartedEventAttributes = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ActivityTaskStartedEventAttributes(")
append("identity=$identity,")
append("scheduledEventId=$scheduledEventId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = identity?.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 ActivityTaskStartedEventAttributes
if (identity != other.identity) return false
if (scheduledEventId != other.scheduledEventId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.swf.model.ActivityTaskStartedEventAttributes = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Identity of the worker that was assigned this task. This aids diagnostics when problems arise. The form of this identity is user defined.
*/
public var identity: 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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.swf.model.ActivityTaskStartedEventAttributes) : this() {
this.identity = x.identity
this.scheduledEventId = x.scheduledEventId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.swf.model.ActivityTaskStartedEventAttributes = ActivityTaskStartedEventAttributes(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy