
io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.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 DecisionTaskTimedOutEventAttributes(
timeoutType: io.github.vigoo.zioaws.swf.model.DecisionTaskTimeoutType,
scheduledEventId: EventId,
startedEventId: EventId
) {
def buildAwsValue()
: software.amazon.awssdk.services.swf.model.DecisionTaskTimedOutEventAttributes = {
import DecisionTaskTimedOutEventAttributes.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.swf.model.DecisionTaskTimedOutEventAttributes
.builder()
.timeoutType(timeoutType.unwrap)
.scheduledEventId(scheduledEventId: java.lang.Long)
.startedEventId(startedEventId: java.lang.Long)
.build()
}
def asReadOnly
: io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.ReadOnly =
io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes
.wrap(buildAwsValue())
}
object DecisionTaskTimedOutEventAttributes {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.swf.model.DecisionTaskTimedOutEventAttributes
] = BuilderHelper.apply
trait ReadOnly {
def editable
: io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes =
io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes(
timeoutTypeValue,
scheduledEventIdValue,
startedEventIdValue
)
def timeoutTypeValue
: io.github.vigoo.zioaws.swf.model.DecisionTaskTimeoutType
def scheduledEventIdValue: EventId
def startedEventIdValue: EventId
def timeoutType: ZIO[
Any,
Nothing,
io.github.vigoo.zioaws.swf.model.DecisionTaskTimeoutType
] = ZIO.succeed(timeoutTypeValue)
def scheduledEventId: ZIO[Any, Nothing, EventId] =
ZIO.succeed(scheduledEventIdValue)
def startedEventId: ZIO[Any, Nothing, EventId] =
ZIO.succeed(startedEventIdValue)
}
private class Wrapper(
impl: software.amazon.awssdk.services.swf.model.DecisionTaskTimedOutEventAttributes
) extends io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.ReadOnly {
override def timeoutTypeValue
: io.github.vigoo.zioaws.swf.model.DecisionTaskTimeoutType =
io.github.vigoo.zioaws.swf.model.DecisionTaskTimeoutType
.wrap(impl.timeoutType())
override def scheduledEventIdValue: EventId =
impl.scheduledEventId(): EventId
override def startedEventIdValue: EventId = impl.startedEventId(): EventId
}
def wrap(
impl: software.amazon.awssdk.services.swf.model.DecisionTaskTimedOutEventAttributes
): io.github.vigoo.zioaws.swf.model.DecisionTaskTimedOutEventAttributes.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy