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

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

package io.github.vigoo.zioaws.swf.model
import zio.ZIO
import io.github.vigoo.zioaws.swf.model.primitives.{EventId, TimerId}
import io.github.vigoo.zioaws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class TimerCanceledEventAttributes(
    timerId: TimerId,
    startedEventId: EventId,
    decisionTaskCompletedEventId: EventId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.swf.model.TimerCanceledEventAttributes = {
    import TimerCanceledEventAttributes.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.swf.model.TimerCanceledEventAttributes
      .builder()
      .timerId(timerId: java.lang.String)
      .startedEventId(startedEventId: java.lang.Long)
      .decisionTaskCompletedEventId(
        decisionTaskCompletedEventId: java.lang.Long
      )
      .build()
  }
  def asReadOnly
      : io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes.ReadOnly =
    io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes
      .wrap(buildAwsValue())
}
object TimerCanceledEventAttributes {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.swf.model.TimerCanceledEventAttributes
  ] = BuilderHelper.apply
  trait ReadOnly {
    def editable
        : io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes =
      io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes(
        timerIdValue,
        startedEventIdValue,
        decisionTaskCompletedEventIdValue
      )
    def timerIdValue: TimerId
    def startedEventIdValue: EventId
    def decisionTaskCompletedEventIdValue: EventId
    def timerId: ZIO[Any, Nothing, TimerId] = ZIO.succeed(timerIdValue)
    def startedEventId: ZIO[Any, Nothing, EventId] =
      ZIO.succeed(startedEventIdValue)
    def decisionTaskCompletedEventId: ZIO[Any, Nothing, EventId] =
      ZIO.succeed(decisionTaskCompletedEventIdValue)
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.swf.model.TimerCanceledEventAttributes
  ) extends io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes.ReadOnly {
    override def timerIdValue: TimerId = impl.timerId(): TimerId
    override def startedEventIdValue: EventId = impl.startedEventId(): EventId
    override def decisionTaskCompletedEventIdValue: EventId =
      impl.decisionTaskCompletedEventId(): EventId
  }
  def wrap(
      impl: software.amazon.awssdk.services.swf.model.TimerCanceledEventAttributes
  ): io.github.vigoo.zioaws.swf.model.TimerCanceledEventAttributes.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy