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

io.github.vigoo.zioaws.swf.model.HistoryEvent.scala Maven / Gradle / Ivy

package io.github.vigoo.zioaws.swf.model
import zio.ZIO
import io.github.vigoo.zioaws.swf.model.primitives.{EventId, Timestamp}
import java.time.Instant
import io.github.vigoo.zioaws.core.{AwsError, BuilderHelper}
import scala.jdk.CollectionConverters._
final case class HistoryEvent(
    eventTimestamp: Timestamp,
    eventType: io.github.vigoo.zioaws.swf.model.EventType,
    eventId: EventId,
    workflowExecutionStartedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionStartedEventAttributes
    ] = None,
    workflowExecutionCompletedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCompletedEventAttributes
    ] = None,
    completeWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.CompleteWorkflowExecutionFailedEventAttributes
    ] = None,
    workflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionFailedEventAttributes
    ] = None,
    failWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.FailWorkflowExecutionFailedEventAttributes
    ] = None,
    workflowExecutionTimedOutEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTimedOutEventAttributes
    ] = None,
    workflowExecutionCanceledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCanceledEventAttributes
    ] = None,
    cancelWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.CancelWorkflowExecutionFailedEventAttributes
    ] = None,
    workflowExecutionContinuedAsNewEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionContinuedAsNewEventAttributes
    ] = None,
    continueAsNewWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ContinueAsNewWorkflowExecutionFailedEventAttributes
    ] = None,
    workflowExecutionTerminatedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTerminatedEventAttributes
    ] = None,
    workflowExecutionCancelRequestedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCancelRequestedEventAttributes
    ] = None,
    decisionTaskScheduledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskScheduledEventAttributes
    ] = None,
    decisionTaskStartedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskStartedEventAttributes
    ] = None,
    decisionTaskCompletedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskCompletedEventAttributes
    ] = None,
    decisionTaskTimedOutEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes
    ] = None,
    activityTaskScheduledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskScheduledEventAttributes
    ] = None,
    activityTaskStartedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskStartedEventAttributes
    ] = None,
    activityTaskCompletedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCompletedEventAttributes
    ] = None,
    activityTaskFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskFailedEventAttributes
    ] = None,
    activityTaskTimedOutEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskTimedOutEventAttributes
    ] = None,
    activityTaskCanceledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCanceledEventAttributes
    ] = None,
    activityTaskCancelRequestedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCancelRequestedEventAttributes
    ] = None,
    workflowExecutionSignaledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionSignaledEventAttributes
    ] = None,
    markerRecordedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.MarkerRecordedEventAttributes
    ] = None,
    recordMarkerFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.RecordMarkerFailedEventAttributes
    ] = None,
    timerStartedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.TimerStartedEventAttributes
    ] = None,
    timerFiredEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes
    ] = None,
    timerCanceledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes
    ] = None,
    startChildWorkflowExecutionInitiatedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionInitiatedEventAttributes
    ] = None,
    childWorkflowExecutionStartedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionStartedEventAttributes
    ] = None,
    childWorkflowExecutionCompletedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCompletedEventAttributes
    ] = None,
    childWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionFailedEventAttributes
    ] = None,
    childWorkflowExecutionTimedOutEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTimedOutEventAttributes
    ] = None,
    childWorkflowExecutionCanceledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCanceledEventAttributes
    ] = None,
    childWorkflowExecutionTerminatedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTerminatedEventAttributes
    ] = None,
    signalExternalWorkflowExecutionInitiatedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionInitiatedEventAttributes
    ] = None,
    externalWorkflowExecutionSignaledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionSignaledEventAttributes
    ] = None,
    signalExternalWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionFailedEventAttributes
    ] = None,
    externalWorkflowExecutionCancelRequestedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
    ] = None,
    requestCancelExternalWorkflowExecutionInitiatedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
    ] = None,
    requestCancelExternalWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionFailedEventAttributes
    ] = None,
    scheduleActivityTaskFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ScheduleActivityTaskFailedEventAttributes
    ] = None,
    requestCancelActivityTaskFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.RequestCancelActivityTaskFailedEventAttributes
    ] = None,
    startTimerFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.StartTimerFailedEventAttributes
    ] = None,
    cancelTimerFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.CancelTimerFailedEventAttributes
    ] = None,
    startChildWorkflowExecutionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionFailedEventAttributes
    ] = None,
    lambdaFunctionScheduledEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionScheduledEventAttributes
    ] = None,
    lambdaFunctionStartedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionStartedEventAttributes
    ] = None,
    lambdaFunctionCompletedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionCompletedEventAttributes
    ] = None,
    lambdaFunctionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionFailedEventAttributes
    ] = None,
    lambdaFunctionTimedOutEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionTimedOutEventAttributes
    ] = None,
    scheduleLambdaFunctionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes
    ] = None,
    startLambdaFunctionFailedEventAttributes: Option[
      io.github.vigoo.zioaws.swf.model.StartLambdaFunctionFailedEventAttributes
    ] = None
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.swf.model.HistoryEvent = {
    import HistoryEvent.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.swf.model.HistoryEvent
      .builder()
      .eventTimestamp(eventTimestamp: Instant)
      .eventType(eventType.unwrap)
      .eventId(eventId: java.lang.Long)
      .optionallyWith(
        workflowExecutionStartedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionStartedEventAttributes)
      .optionallyWith(
        workflowExecutionCompletedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionCompletedEventAttributes)
      .optionallyWith(
        completeWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.completeWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        workflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionFailedEventAttributes)
      .optionallyWith(
        failWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.failWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        workflowExecutionTimedOutEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionTimedOutEventAttributes)
      .optionallyWith(
        workflowExecutionCanceledEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionCanceledEventAttributes)
      .optionallyWith(
        cancelWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.cancelWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        workflowExecutionContinuedAsNewEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionContinuedAsNewEventAttributes)
      .optionallyWith(
        continueAsNewWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.continueAsNewWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        workflowExecutionTerminatedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionTerminatedEventAttributes)
      .optionallyWith(
        workflowExecutionCancelRequestedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionCancelRequestedEventAttributes)
      .optionallyWith(
        decisionTaskScheduledEventAttributes.map(value => value.buildAwsValue())
      )(_.decisionTaskScheduledEventAttributes)
      .optionallyWith(
        decisionTaskStartedEventAttributes.map(value => value.buildAwsValue())
      )(_.decisionTaskStartedEventAttributes)
      .optionallyWith(
        decisionTaskCompletedEventAttributes.map(value => value.buildAwsValue())
      )(_.decisionTaskCompletedEventAttributes)
      .optionallyWith(
        decisionTaskTimedOutEventAttributes.map(value => value.buildAwsValue())
      )(_.decisionTaskTimedOutEventAttributes)
      .optionallyWith(
        activityTaskScheduledEventAttributes.map(value => value.buildAwsValue())
      )(_.activityTaskScheduledEventAttributes)
      .optionallyWith(
        activityTaskStartedEventAttributes.map(value => value.buildAwsValue())
      )(_.activityTaskStartedEventAttributes)
      .optionallyWith(
        activityTaskCompletedEventAttributes.map(value => value.buildAwsValue())
      )(_.activityTaskCompletedEventAttributes)
      .optionallyWith(
        activityTaskFailedEventAttributes.map(value => value.buildAwsValue())
      )(_.activityTaskFailedEventAttributes)
      .optionallyWith(
        activityTaskTimedOutEventAttributes.map(value => value.buildAwsValue())
      )(_.activityTaskTimedOutEventAttributes)
      .optionallyWith(
        activityTaskCanceledEventAttributes.map(value => value.buildAwsValue())
      )(_.activityTaskCanceledEventAttributes)
      .optionallyWith(
        activityTaskCancelRequestedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.activityTaskCancelRequestedEventAttributes)
      .optionallyWith(
        workflowExecutionSignaledEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.workflowExecutionSignaledEventAttributes)
      .optionallyWith(
        markerRecordedEventAttributes.map(value => value.buildAwsValue())
      )(_.markerRecordedEventAttributes)
      .optionallyWith(
        recordMarkerFailedEventAttributes.map(value => value.buildAwsValue())
      )(_.recordMarkerFailedEventAttributes)
      .optionallyWith(
        timerStartedEventAttributes.map(value => value.buildAwsValue())
      )(_.timerStartedEventAttributes)
      .optionallyWith(
        timerFiredEventAttributes.map(value => value.buildAwsValue())
      )(_.timerFiredEventAttributes)
      .optionallyWith(
        timerCanceledEventAttributes.map(value => value.buildAwsValue())
      )(_.timerCanceledEventAttributes)
      .optionallyWith(
        startChildWorkflowExecutionInitiatedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.startChildWorkflowExecutionInitiatedEventAttributes)
      .optionallyWith(
        childWorkflowExecutionStartedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.childWorkflowExecutionStartedEventAttributes)
      .optionallyWith(
        childWorkflowExecutionCompletedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.childWorkflowExecutionCompletedEventAttributes)
      .optionallyWith(
        childWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.childWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        childWorkflowExecutionTimedOutEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.childWorkflowExecutionTimedOutEventAttributes)
      .optionallyWith(
        childWorkflowExecutionCanceledEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.childWorkflowExecutionCanceledEventAttributes)
      .optionallyWith(
        childWorkflowExecutionTerminatedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.childWorkflowExecutionTerminatedEventAttributes)
      .optionallyWith(
        signalExternalWorkflowExecutionInitiatedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.signalExternalWorkflowExecutionInitiatedEventAttributes)
      .optionallyWith(
        externalWorkflowExecutionSignaledEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.externalWorkflowExecutionSignaledEventAttributes)
      .optionallyWith(
        signalExternalWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.signalExternalWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        externalWorkflowExecutionCancelRequestedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.externalWorkflowExecutionCancelRequestedEventAttributes)
      .optionallyWith(
        requestCancelExternalWorkflowExecutionInitiatedEventAttributes.map(
          value => value.buildAwsValue()
        )
      )(_.requestCancelExternalWorkflowExecutionInitiatedEventAttributes)
      .optionallyWith(
        requestCancelExternalWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.requestCancelExternalWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        scheduleActivityTaskFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.scheduleActivityTaskFailedEventAttributes)
      .optionallyWith(
        requestCancelActivityTaskFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.requestCancelActivityTaskFailedEventAttributes)
      .optionallyWith(
        startTimerFailedEventAttributes.map(value => value.buildAwsValue())
      )(_.startTimerFailedEventAttributes)
      .optionallyWith(
        cancelTimerFailedEventAttributes.map(value => value.buildAwsValue())
      )(_.cancelTimerFailedEventAttributes)
      .optionallyWith(
        startChildWorkflowExecutionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.startChildWorkflowExecutionFailedEventAttributes)
      .optionallyWith(
        lambdaFunctionScheduledEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.lambdaFunctionScheduledEventAttributes)
      .optionallyWith(
        lambdaFunctionStartedEventAttributes.map(value => value.buildAwsValue())
      )(_.lambdaFunctionStartedEventAttributes)
      .optionallyWith(
        lambdaFunctionCompletedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.lambdaFunctionCompletedEventAttributes)
      .optionallyWith(
        lambdaFunctionFailedEventAttributes.map(value => value.buildAwsValue())
      )(_.lambdaFunctionFailedEventAttributes)
      .optionallyWith(
        lambdaFunctionTimedOutEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.lambdaFunctionTimedOutEventAttributes)
      .optionallyWith(
        scheduleLambdaFunctionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.scheduleLambdaFunctionFailedEventAttributes)
      .optionallyWith(
        startLambdaFunctionFailedEventAttributes.map(value =>
          value.buildAwsValue()
        )
      )(_.startLambdaFunctionFailedEventAttributes)
      .build()
  }
  def asReadOnly: io.github.vigoo.zioaws.swf.model.HistoryEvent.ReadOnly =
    io.github.vigoo.zioaws.swf.model.HistoryEvent.wrap(buildAwsValue())
}
object HistoryEvent {
  private lazy val zioAwsBuilderHelper
      : BuilderHelper[software.amazon.awssdk.services.swf.model.HistoryEvent] =
    BuilderHelper.apply
  trait ReadOnly {
    def editable: io.github.vigoo.zioaws.swf.model.HistoryEvent =
      io.github.vigoo.zioaws.swf.model.HistoryEvent(
        eventTimestampValue,
        eventTypeValue,
        eventIdValue,
        workflowExecutionStartedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionCompletedEventAttributesValue.map(value =>
          value.editable
        ),
        completeWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        failWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionTimedOutEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionCanceledEventAttributesValue.map(value =>
          value.editable
        ),
        cancelWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionContinuedAsNewEventAttributesValue.map(value =>
          value.editable
        ),
        continueAsNewWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionTerminatedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionCancelRequestedEventAttributesValue.map(value =>
          value.editable
        ),
        decisionTaskScheduledEventAttributesValue.map(value => value.editable),
        decisionTaskStartedEventAttributesValue.map(value => value.editable),
        decisionTaskCompletedEventAttributesValue.map(value => value.editable),
        decisionTaskTimedOutEventAttributesValue.map(value => value.editable),
        activityTaskScheduledEventAttributesValue.map(value => value.editable),
        activityTaskStartedEventAttributesValue.map(value => value.editable),
        activityTaskCompletedEventAttributesValue.map(value => value.editable),
        activityTaskFailedEventAttributesValue.map(value => value.editable),
        activityTaskTimedOutEventAttributesValue.map(value => value.editable),
        activityTaskCanceledEventAttributesValue.map(value => value.editable),
        activityTaskCancelRequestedEventAttributesValue.map(value =>
          value.editable
        ),
        workflowExecutionSignaledEventAttributesValue.map(value =>
          value.editable
        ),
        markerRecordedEventAttributesValue.map(value => value.editable),
        recordMarkerFailedEventAttributesValue.map(value => value.editable),
        timerStartedEventAttributesValue.map(value => value.editable),
        timerFiredEventAttributesValue.map(value => value.editable),
        timerCanceledEventAttributesValue.map(value => value.editable),
        startChildWorkflowExecutionInitiatedEventAttributesValue.map(value =>
          value.editable
        ),
        childWorkflowExecutionStartedEventAttributesValue.map(value =>
          value.editable
        ),
        childWorkflowExecutionCompletedEventAttributesValue.map(value =>
          value.editable
        ),
        childWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        childWorkflowExecutionTimedOutEventAttributesValue.map(value =>
          value.editable
        ),
        childWorkflowExecutionCanceledEventAttributesValue.map(value =>
          value.editable
        ),
        childWorkflowExecutionTerminatedEventAttributesValue.map(value =>
          value.editable
        ),
        signalExternalWorkflowExecutionInitiatedEventAttributesValue.map(
          value => value.editable
        ),
        externalWorkflowExecutionSignaledEventAttributesValue.map(value =>
          value.editable
        ),
        signalExternalWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        externalWorkflowExecutionCancelRequestedEventAttributesValue.map(
          value => value.editable
        ),
        requestCancelExternalWorkflowExecutionInitiatedEventAttributesValue.map(
          value => value.editable
        ),
        requestCancelExternalWorkflowExecutionFailedEventAttributesValue.map(
          value => value.editable
        ),
        scheduleActivityTaskFailedEventAttributesValue.map(value =>
          value.editable
        ),
        requestCancelActivityTaskFailedEventAttributesValue.map(value =>
          value.editable
        ),
        startTimerFailedEventAttributesValue.map(value => value.editable),
        cancelTimerFailedEventAttributesValue.map(value => value.editable),
        startChildWorkflowExecutionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        lambdaFunctionScheduledEventAttributesValue.map(value =>
          value.editable
        ),
        lambdaFunctionStartedEventAttributesValue.map(value => value.editable),
        lambdaFunctionCompletedEventAttributesValue.map(value =>
          value.editable
        ),
        lambdaFunctionFailedEventAttributesValue.map(value => value.editable),
        lambdaFunctionTimedOutEventAttributesValue.map(value => value.editable),
        scheduleLambdaFunctionFailedEventAttributesValue.map(value =>
          value.editable
        ),
        startLambdaFunctionFailedEventAttributesValue.map(value =>
          value.editable
        )
      )
    def eventTimestampValue: Timestamp
    def eventTypeValue: io.github.vigoo.zioaws.swf.model.EventType
    def eventIdValue: EventId
    def workflowExecutionStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionStartedEventAttributes.ReadOnly
    ]
    def workflowExecutionCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCompletedEventAttributes.ReadOnly
    ]
    def completeWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.CompleteWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def workflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def failWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.FailWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def workflowExecutionTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTimedOutEventAttributes.ReadOnly
    ]
    def workflowExecutionCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCanceledEventAttributes.ReadOnly
    ]
    def cancelWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.CancelWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def workflowExecutionContinuedAsNewEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionContinuedAsNewEventAttributes.ReadOnly
    ]
    def continueAsNewWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ContinueAsNewWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def workflowExecutionTerminatedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTerminatedEventAttributes.ReadOnly
    ]
    def workflowExecutionCancelRequestedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCancelRequestedEventAttributes.ReadOnly
    ]
    def decisionTaskScheduledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskScheduledEventAttributes.ReadOnly
    ]
    def decisionTaskStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskStartedEventAttributes.ReadOnly
    ]
    def decisionTaskCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskCompletedEventAttributes.ReadOnly
    ]
    def decisionTaskTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.ReadOnly
    ]
    def activityTaskScheduledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskScheduledEventAttributes.ReadOnly
    ]
    def activityTaskStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskStartedEventAttributes.ReadOnly
    ]
    def activityTaskCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCompletedEventAttributes.ReadOnly
    ]
    def activityTaskFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskFailedEventAttributes.ReadOnly
    ]
    def activityTaskTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskTimedOutEventAttributes.ReadOnly
    ]
    def activityTaskCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCanceledEventAttributes.ReadOnly
    ]
    def activityTaskCancelRequestedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCancelRequestedEventAttributes.ReadOnly
    ]
    def workflowExecutionSignaledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionSignaledEventAttributes.ReadOnly
    ]
    def markerRecordedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.MarkerRecordedEventAttributes.ReadOnly
    ]
    def recordMarkerFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.RecordMarkerFailedEventAttributes.ReadOnly
    ]
    def timerStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.TimerStartedEventAttributes.ReadOnly
    ]
    def timerFiredEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.ReadOnly
    ]
    def timerCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes.ReadOnly
    ]
    def startChildWorkflowExecutionInitiatedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionInitiatedEventAttributes.ReadOnly
    ]
    def childWorkflowExecutionStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionStartedEventAttributes.ReadOnly
    ]
    def childWorkflowExecutionCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCompletedEventAttributes.ReadOnly
    ]
    def childWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def childWorkflowExecutionTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTimedOutEventAttributes.ReadOnly
    ]
    def childWorkflowExecutionCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCanceledEventAttributes.ReadOnly
    ]
    def childWorkflowExecutionTerminatedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTerminatedEventAttributes.ReadOnly
    ]
    def signalExternalWorkflowExecutionInitiatedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionInitiatedEventAttributes.ReadOnly
    ]
    def externalWorkflowExecutionSignaledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionSignaledEventAttributes.ReadOnly
    ]
    def signalExternalWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def externalWorkflowExecutionCancelRequestedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.ReadOnly
    ]
    def requestCancelExternalWorkflowExecutionInitiatedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.ReadOnly
        ]
    def requestCancelExternalWorkflowExecutionFailedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionFailedEventAttributes.ReadOnly
        ]
    def scheduleActivityTaskFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ScheduleActivityTaskFailedEventAttributes.ReadOnly
    ]
    def requestCancelActivityTaskFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.RequestCancelActivityTaskFailedEventAttributes.ReadOnly
    ]
    def startTimerFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartTimerFailedEventAttributes.ReadOnly
    ]
    def cancelTimerFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.CancelTimerFailedEventAttributes.ReadOnly
    ]
    def startChildWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionFailedEventAttributes.ReadOnly
    ]
    def lambdaFunctionScheduledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionScheduledEventAttributes.ReadOnly
    ]
    def lambdaFunctionStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionStartedEventAttributes.ReadOnly
    ]
    def lambdaFunctionCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionCompletedEventAttributes.ReadOnly
    ]
    def lambdaFunctionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionFailedEventAttributes.ReadOnly
    ]
    def lambdaFunctionTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionTimedOutEventAttributes.ReadOnly
    ]
    def scheduleLambdaFunctionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.ReadOnly
    ]
    def startLambdaFunctionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartLambdaFunctionFailedEventAttributes.ReadOnly
    ]
    def eventTimestamp: ZIO[Any, Nothing, Timestamp] =
      ZIO.succeed(eventTimestampValue)
    def eventType
        : ZIO[Any, Nothing, io.github.vigoo.zioaws.swf.model.EventType] =
      ZIO.succeed(eventTypeValue)
    def eventId: ZIO[Any, Nothing, EventId] = ZIO.succeed(eventIdValue)
    def workflowExecutionStartedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionStartedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionStartedEventAttributes",
      workflowExecutionStartedEventAttributesValue
    )
    def workflowExecutionCompletedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCompletedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionCompletedEventAttributes",
      workflowExecutionCompletedEventAttributesValue
    )
    def completeWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.CompleteWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "completeWorkflowExecutionFailedEventAttributes",
      completeWorkflowExecutionFailedEventAttributesValue
    )
    def workflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionFailedEventAttributes",
      workflowExecutionFailedEventAttributesValue
    )
    def failWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.FailWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "failWorkflowExecutionFailedEventAttributes",
      failWorkflowExecutionFailedEventAttributesValue
    )
    def workflowExecutionTimedOutEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTimedOutEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionTimedOutEventAttributes",
      workflowExecutionTimedOutEventAttributesValue
    )
    def workflowExecutionCanceledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCanceledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionCanceledEventAttributes",
      workflowExecutionCanceledEventAttributesValue
    )
    def cancelWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.CancelWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "cancelWorkflowExecutionFailedEventAttributes",
      cancelWorkflowExecutionFailedEventAttributesValue
    )
    def workflowExecutionContinuedAsNewEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionContinuedAsNewEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionContinuedAsNewEventAttributes",
      workflowExecutionContinuedAsNewEventAttributesValue
    )
    def continueAsNewWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ContinueAsNewWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "continueAsNewWorkflowExecutionFailedEventAttributes",
      continueAsNewWorkflowExecutionFailedEventAttributesValue
    )
    def workflowExecutionTerminatedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTerminatedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionTerminatedEventAttributes",
      workflowExecutionTerminatedEventAttributesValue
    )
    def workflowExecutionCancelRequestedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCancelRequestedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionCancelRequestedEventAttributes",
      workflowExecutionCancelRequestedEventAttributesValue
    )
    def decisionTaskScheduledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.DecisionTaskScheduledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "decisionTaskScheduledEventAttributes",
      decisionTaskScheduledEventAttributesValue
    )
    def decisionTaskStartedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.DecisionTaskStartedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "decisionTaskStartedEventAttributes",
      decisionTaskStartedEventAttributesValue
    )
    def decisionTaskCompletedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.DecisionTaskCompletedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "decisionTaskCompletedEventAttributes",
      decisionTaskCompletedEventAttributesValue
    )
    def decisionTaskTimedOutEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "decisionTaskTimedOutEventAttributes",
      decisionTaskTimedOutEventAttributesValue
    )
    def activityTaskScheduledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskScheduledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskScheduledEventAttributes",
      activityTaskScheduledEventAttributesValue
    )
    def activityTaskStartedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskStartedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskStartedEventAttributes",
      activityTaskStartedEventAttributesValue
    )
    def activityTaskCompletedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskCompletedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskCompletedEventAttributes",
      activityTaskCompletedEventAttributesValue
    )
    def activityTaskFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskFailedEventAttributes",
      activityTaskFailedEventAttributesValue
    )
    def activityTaskTimedOutEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskTimedOutEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskTimedOutEventAttributes",
      activityTaskTimedOutEventAttributesValue
    )
    def activityTaskCanceledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskCanceledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskCanceledEventAttributes",
      activityTaskCanceledEventAttributesValue
    )
    def activityTaskCancelRequestedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ActivityTaskCancelRequestedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "activityTaskCancelRequestedEventAttributes",
      activityTaskCancelRequestedEventAttributesValue
    )
    def workflowExecutionSignaledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionSignaledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "workflowExecutionSignaledEventAttributes",
      workflowExecutionSignaledEventAttributesValue
    )
    def markerRecordedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.MarkerRecordedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "markerRecordedEventAttributes",
      markerRecordedEventAttributesValue
    )
    def recordMarkerFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.RecordMarkerFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "recordMarkerFailedEventAttributes",
      recordMarkerFailedEventAttributesValue
    )
    def timerStartedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.TimerStartedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "timerStartedEventAttributes",
      timerStartedEventAttributesValue
    )
    def timerFiredEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "timerFiredEventAttributes",
      timerFiredEventAttributesValue
    )
    def timerCanceledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "timerCanceledEventAttributes",
      timerCanceledEventAttributesValue
    )
    def startChildWorkflowExecutionInitiatedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionInitiatedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "startChildWorkflowExecutionInitiatedEventAttributes",
      startChildWorkflowExecutionInitiatedEventAttributesValue
    )
    def childWorkflowExecutionStartedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionStartedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "childWorkflowExecutionStartedEventAttributes",
      childWorkflowExecutionStartedEventAttributesValue
    )
    def childWorkflowExecutionCompletedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCompletedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "childWorkflowExecutionCompletedEventAttributes",
      childWorkflowExecutionCompletedEventAttributesValue
    )
    def childWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "childWorkflowExecutionFailedEventAttributes",
      childWorkflowExecutionFailedEventAttributesValue
    )
    def childWorkflowExecutionTimedOutEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTimedOutEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "childWorkflowExecutionTimedOutEventAttributes",
      childWorkflowExecutionTimedOutEventAttributesValue
    )
    def childWorkflowExecutionCanceledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCanceledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "childWorkflowExecutionCanceledEventAttributes",
      childWorkflowExecutionCanceledEventAttributesValue
    )
    def childWorkflowExecutionTerminatedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTerminatedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "childWorkflowExecutionTerminatedEventAttributes",
      childWorkflowExecutionTerminatedEventAttributesValue
    )
    def signalExternalWorkflowExecutionInitiatedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionInitiatedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "signalExternalWorkflowExecutionInitiatedEventAttributes",
      signalExternalWorkflowExecutionInitiatedEventAttributesValue
    )
    def externalWorkflowExecutionSignaledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionSignaledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "externalWorkflowExecutionSignaledEventAttributes",
      externalWorkflowExecutionSignaledEventAttributesValue
    )
    def signalExternalWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "signalExternalWorkflowExecutionFailedEventAttributes",
      signalExternalWorkflowExecutionFailedEventAttributesValue
    )
    def externalWorkflowExecutionCancelRequestedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "externalWorkflowExecutionCancelRequestedEventAttributes",
      externalWorkflowExecutionCancelRequestedEventAttributesValue
    )
    def requestCancelExternalWorkflowExecutionInitiatedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "requestCancelExternalWorkflowExecutionInitiatedEventAttributes",
      requestCancelExternalWorkflowExecutionInitiatedEventAttributesValue
    )
    def requestCancelExternalWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "requestCancelExternalWorkflowExecutionFailedEventAttributes",
      requestCancelExternalWorkflowExecutionFailedEventAttributesValue
    )
    def scheduleActivityTaskFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ScheduleActivityTaskFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "scheduleActivityTaskFailedEventAttributes",
      scheduleActivityTaskFailedEventAttributesValue
    )
    def requestCancelActivityTaskFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.RequestCancelActivityTaskFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "requestCancelActivityTaskFailedEventAttributes",
      requestCancelActivityTaskFailedEventAttributesValue
    )
    def startTimerFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.StartTimerFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "startTimerFailedEventAttributes",
      startTimerFailedEventAttributesValue
    )
    def cancelTimerFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.CancelTimerFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "cancelTimerFailedEventAttributes",
      cancelTimerFailedEventAttributesValue
    )
    def startChildWorkflowExecutionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "startChildWorkflowExecutionFailedEventAttributes",
      startChildWorkflowExecutionFailedEventAttributesValue
    )
    def lambdaFunctionScheduledEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.LambdaFunctionScheduledEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "lambdaFunctionScheduledEventAttributes",
      lambdaFunctionScheduledEventAttributesValue
    )
    def lambdaFunctionStartedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.LambdaFunctionStartedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "lambdaFunctionStartedEventAttributes",
      lambdaFunctionStartedEventAttributesValue
    )
    def lambdaFunctionCompletedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.LambdaFunctionCompletedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "lambdaFunctionCompletedEventAttributes",
      lambdaFunctionCompletedEventAttributesValue
    )
    def lambdaFunctionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.LambdaFunctionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "lambdaFunctionFailedEventAttributes",
      lambdaFunctionFailedEventAttributesValue
    )
    def lambdaFunctionTimedOutEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.LambdaFunctionTimedOutEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "lambdaFunctionTimedOutEventAttributes",
      lambdaFunctionTimedOutEventAttributesValue
    )
    def scheduleLambdaFunctionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "scheduleLambdaFunctionFailedEventAttributes",
      scheduleLambdaFunctionFailedEventAttributesValue
    )
    def startLambdaFunctionFailedEventAttributes: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.swf.model.StartLambdaFunctionFailedEventAttributes.ReadOnly
    ] = AwsError.unwrapOptionField(
      "startLambdaFunctionFailedEventAttributes",
      startLambdaFunctionFailedEventAttributesValue
    )
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.swf.model.HistoryEvent
  ) extends io.github.vigoo.zioaws.swf.model.HistoryEvent.ReadOnly {
    override def eventTimestampValue: Timestamp =
      impl.eventTimestamp(): Timestamp
    override def eventTypeValue: io.github.vigoo.zioaws.swf.model.EventType =
      io.github.vigoo.zioaws.swf.model.EventType.wrap(impl.eventType())
    override def eventIdValue: EventId = impl.eventId(): EventId
    override def workflowExecutionStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionStartedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionStartedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionStartedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCompletedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionCompletedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionCompletedEventAttributes
          .wrap(value)
      )
    override def completeWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.CompleteWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.completeWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.CompleteWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def failWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.FailWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.failWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.FailWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTimedOutEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionTimedOutEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionTimedOutEventAttributes
          .wrap(value)
      )
    override def workflowExecutionCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCanceledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionCanceledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionCanceledEventAttributes
          .wrap(value)
      )
    override def cancelWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.CancelWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.cancelWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.CancelWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionContinuedAsNewEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionContinuedAsNewEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionContinuedAsNewEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionContinuedAsNewEventAttributes
          .wrap(value)
      )
    override def continueAsNewWorkflowExecutionFailedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.ContinueAsNewWorkflowExecutionFailedEventAttributes.ReadOnly
        ] = scala
      .Option(impl.continueAsNewWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ContinueAsNewWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionTerminatedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionTerminatedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionTerminatedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionTerminatedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionCancelRequestedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionCancelRequestedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionCancelRequestedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionCancelRequestedEventAttributes
          .wrap(value)
      )
    override def decisionTaskScheduledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskScheduledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.decisionTaskScheduledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.DecisionTaskScheduledEventAttributes
          .wrap(value)
      )
    override def decisionTaskStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskStartedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.decisionTaskStartedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.DecisionTaskStartedEventAttributes
          .wrap(value)
      )
    override def decisionTaskCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskCompletedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.decisionTaskCompletedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.DecisionTaskCompletedEventAttributes
          .wrap(value)
      )
    override def decisionTaskTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.ReadOnly
    ] = scala
      .Option(impl.decisionTaskTimedOutEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes
          .wrap(value)
      )
    override def activityTaskScheduledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskScheduledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskScheduledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskScheduledEventAttributes
          .wrap(value)
      )
    override def activityTaskStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskStartedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskStartedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskStartedEventAttributes
          .wrap(value)
      )
    override def activityTaskCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCompletedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskCompletedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskCompletedEventAttributes
          .wrap(value)
      )
    override def activityTaskFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskFailedEventAttributes
          .wrap(value)
      )
    override def activityTaskTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskTimedOutEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskTimedOutEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskTimedOutEventAttributes
          .wrap(value)
      )
    override def activityTaskCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCanceledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskCanceledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskCanceledEventAttributes
          .wrap(value)
      )
    override def activityTaskCancelRequestedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ActivityTaskCancelRequestedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.activityTaskCancelRequestedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ActivityTaskCancelRequestedEventAttributes
          .wrap(value)
      )
    override def workflowExecutionSignaledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.WorkflowExecutionSignaledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.workflowExecutionSignaledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.WorkflowExecutionSignaledEventAttributes
          .wrap(value)
      )
    override def markerRecordedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.MarkerRecordedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.markerRecordedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.MarkerRecordedEventAttributes
          .wrap(value)
      )
    override def recordMarkerFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.RecordMarkerFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.recordMarkerFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.RecordMarkerFailedEventAttributes
          .wrap(value)
      )
    override def timerStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.TimerStartedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.timerStartedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.TimerStartedEventAttributes.wrap(value)
      )
    override def timerFiredEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.ReadOnly
    ] = scala
      .Option(impl.timerFiredEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.wrap(value)
      )
    override def timerCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.timerCanceledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes
          .wrap(value)
      )
    override def startChildWorkflowExecutionInitiatedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionInitiatedEventAttributes.ReadOnly
        ] = scala
      .Option(impl.startChildWorkflowExecutionInitiatedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionInitiatedEventAttributes
          .wrap(value)
      )
    override def childWorkflowExecutionStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionStartedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.childWorkflowExecutionStartedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionStartedEventAttributes
          .wrap(value)
      )
    override def childWorkflowExecutionCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCompletedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.childWorkflowExecutionCompletedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCompletedEventAttributes
          .wrap(value)
      )
    override def childWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.childWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def childWorkflowExecutionTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTimedOutEventAttributes.ReadOnly
    ] = scala
      .Option(impl.childWorkflowExecutionTimedOutEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTimedOutEventAttributes
          .wrap(value)
      )
    override def childWorkflowExecutionCanceledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCanceledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.childWorkflowExecutionCanceledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionCanceledEventAttributes
          .wrap(value)
      )
    override def childWorkflowExecutionTerminatedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTerminatedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.childWorkflowExecutionTerminatedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ChildWorkflowExecutionTerminatedEventAttributes
          .wrap(value)
      )
    override def signalExternalWorkflowExecutionInitiatedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionInitiatedEventAttributes.ReadOnly
        ] = scala
      .Option(impl.signalExternalWorkflowExecutionInitiatedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionInitiatedEventAttributes
          .wrap(value)
      )
    override def externalWorkflowExecutionSignaledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionSignaledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.externalWorkflowExecutionSignaledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionSignaledEventAttributes
          .wrap(value)
      )
    override def signalExternalWorkflowExecutionFailedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionFailedEventAttributes.ReadOnly
        ] = scala
      .Option(impl.signalExternalWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.SignalExternalWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def externalWorkflowExecutionCancelRequestedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes.ReadOnly
        ] = scala
      .Option(impl.externalWorkflowExecutionCancelRequestedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ExternalWorkflowExecutionCancelRequestedEventAttributes
          .wrap(value)
      )
    override def requestCancelExternalWorkflowExecutionInitiatedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes.ReadOnly
        ] = scala
      .Option(
        impl.requestCancelExternalWorkflowExecutionInitiatedEventAttributes()
      )
      .map(value =>
        io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionInitiatedEventAttributes
          .wrap(value)
      )
    override def requestCancelExternalWorkflowExecutionFailedEventAttributesValue
        : Option[
          io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionFailedEventAttributes.ReadOnly
        ] = scala
      .Option(
        impl.requestCancelExternalWorkflowExecutionFailedEventAttributes()
      )
      .map(value =>
        io.github.vigoo.zioaws.swf.model.RequestCancelExternalWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def scheduleActivityTaskFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ScheduleActivityTaskFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.scheduleActivityTaskFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ScheduleActivityTaskFailedEventAttributes
          .wrap(value)
      )
    override def requestCancelActivityTaskFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.RequestCancelActivityTaskFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.requestCancelActivityTaskFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.RequestCancelActivityTaskFailedEventAttributes
          .wrap(value)
      )
    override def startTimerFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartTimerFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.startTimerFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.StartTimerFailedEventAttributes
          .wrap(value)
      )
    override def cancelTimerFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.CancelTimerFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.cancelTimerFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.CancelTimerFailedEventAttributes
          .wrap(value)
      )
    override def startChildWorkflowExecutionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.startChildWorkflowExecutionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.StartChildWorkflowExecutionFailedEventAttributes
          .wrap(value)
      )
    override def lambdaFunctionScheduledEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionScheduledEventAttributes.ReadOnly
    ] = scala
      .Option(impl.lambdaFunctionScheduledEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.LambdaFunctionScheduledEventAttributes
          .wrap(value)
      )
    override def lambdaFunctionStartedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionStartedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.lambdaFunctionStartedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.LambdaFunctionStartedEventAttributes
          .wrap(value)
      )
    override def lambdaFunctionCompletedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionCompletedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.lambdaFunctionCompletedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.LambdaFunctionCompletedEventAttributes
          .wrap(value)
      )
    override def lambdaFunctionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.lambdaFunctionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.LambdaFunctionFailedEventAttributes
          .wrap(value)
      )
    override def lambdaFunctionTimedOutEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.LambdaFunctionTimedOutEventAttributes.ReadOnly
    ] = scala
      .Option(impl.lambdaFunctionTimedOutEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.LambdaFunctionTimedOutEventAttributes
          .wrap(value)
      )
    override def scheduleLambdaFunctionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.scheduleLambdaFunctionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes
          .wrap(value)
      )
    override def startLambdaFunctionFailedEventAttributesValue: Option[
      io.github.vigoo.zioaws.swf.model.StartLambdaFunctionFailedEventAttributes.ReadOnly
    ] = scala
      .Option(impl.startLambdaFunctionFailedEventAttributes())
      .map(value =>
        io.github.vigoo.zioaws.swf.model.StartLambdaFunctionFailedEventAttributes
          .wrap(value)
      )
  }
  def wrap(
      impl: software.amazon.awssdk.services.swf.model.HistoryEvent
  ): io.github.vigoo.zioaws.swf.model.HistoryEvent.ReadOnly = new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy