
io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.scala Maven / Gradle / Ivy
package io.github.vigoo.zioaws.swf.model
import zio.ZIO
import io.github.vigoo.zioaws.swf.model.primitives.{
EventId,
FunctionName,
FunctionId
}
import io.github.vigoo.zioaws.core.BuilderHelper
import scala.jdk.CollectionConverters._
final case class ScheduleLambdaFunctionFailedEventAttributes(
id: FunctionId,
name: FunctionName,
cause: io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedCause,
decisionTaskCompletedEventId: EventId
) {
def buildAwsValue()
: software.amazon.awssdk.services.swf.model.ScheduleLambdaFunctionFailedEventAttributes = {
import ScheduleLambdaFunctionFailedEventAttributes.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.swf.model.ScheduleLambdaFunctionFailedEventAttributes
.builder()
.id(id: java.lang.String)
.name(name: java.lang.String)
.cause(cause.unwrap)
.decisionTaskCompletedEventId(
decisionTaskCompletedEventId: java.lang.Long
)
.build()
}
def asReadOnly
: io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.ReadOnly =
io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes
.wrap(buildAwsValue())
}
object ScheduleLambdaFunctionFailedEventAttributes {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.swf.model.ScheduleLambdaFunctionFailedEventAttributes
] = BuilderHelper.apply
trait ReadOnly {
def editable
: io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes =
io.github.vigoo.zioaws.swf.model
.ScheduleLambdaFunctionFailedEventAttributes(
idValue,
nameValue,
causeValue,
decisionTaskCompletedEventIdValue
)
def idValue: FunctionId
def nameValue: FunctionName
def causeValue
: io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedCause
def decisionTaskCompletedEventIdValue: EventId
def id: ZIO[Any, Nothing, FunctionId] = ZIO.succeed(idValue)
def name: ZIO[Any, Nothing, FunctionName] = ZIO.succeed(nameValue)
def cause: ZIO[
Any,
Nothing,
io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedCause
] = ZIO.succeed(causeValue)
def decisionTaskCompletedEventId: ZIO[Any, Nothing, EventId] =
ZIO.succeed(decisionTaskCompletedEventIdValue)
}
private class Wrapper(
impl: software.amazon.awssdk.services.swf.model.ScheduleLambdaFunctionFailedEventAttributes
) extends io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.ReadOnly {
override def idValue: FunctionId = impl.id(): FunctionId
override def nameValue: FunctionName = impl.name(): FunctionName
override def causeValue
: io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedCause =
io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedCause
.wrap(impl.cause())
override def decisionTaskCompletedEventIdValue: EventId =
impl.decisionTaskCompletedEventId(): EventId
}
def wrap(
impl: software.amazon.awssdk.services.swf.model.ScheduleLambdaFunctionFailedEventAttributes
): io.github.vigoo.zioaws.swf.model.ScheduleLambdaFunctionFailedEventAttributes.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy