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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy