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

io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.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 TimerFiredEventAttributes(
    timerId: TimerId,
    startedEventId: EventId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.swf.model.TimerFiredEventAttributes = {
    import TimerFiredEventAttributes.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.swf.model.TimerFiredEventAttributes
      .builder()
      .timerId(timerId: java.lang.String)
      .startedEventId(startedEventId: java.lang.Long)
      .build()
  }
  def asReadOnly
      : io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.ReadOnly =
    io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes
      .wrap(buildAwsValue())
}
object TimerFiredEventAttributes {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.swf.model.TimerFiredEventAttributes
  ] = BuilderHelper.apply
  trait ReadOnly {
    def editable: io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes =
      io.github.vigoo.zioaws.swf.model
        .TimerFiredEventAttributes(timerIdValue, startedEventIdValue)
    def timerIdValue: TimerId
    def startedEventIdValue: EventId
    def timerId: ZIO[Any, Nothing, TimerId] = ZIO.succeed(timerIdValue)
    def startedEventId: ZIO[Any, Nothing, EventId] =
      ZIO.succeed(startedEventIdValue)
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.swf.model.TimerFiredEventAttributes
  ) extends io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.ReadOnly {
    override def timerIdValue: TimerId = impl.timerId(): TimerId
    override def startedEventIdValue: EventId = impl.startedEventId(): EventId
  }
  def wrap(
      impl: software.amazon.awssdk.services.swf.model.TimerFiredEventAttributes
  ): io.github.vigoo.zioaws.swf.model.TimerFiredEventAttributes.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy