io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-sfn_2.13 Show documentation
Show all versions of zio-aws-sfn_2.13 Show documentation
Low-level AWS wrapper for ZIO
package io.github.vigoo.zioaws.sfn.model
import zio.ZIO
import io.github.vigoo.zioaws.core.{AwsError, BuilderHelper}
import io.github.vigoo.zioaws.sfn.model.primitives.Truncated
import scala.jdk.CollectionConverters._
final case class HistoryEventExecutionDataDetails(
truncated: Option[Truncated] = None
) {
def buildAwsValue()
: software.amazon.awssdk.services.sfn.model.HistoryEventExecutionDataDetails = {
import HistoryEventExecutionDataDetails.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.sfn.model.HistoryEventExecutionDataDetails
.builder()
.optionallyWith(truncated.map(value => value: java.lang.Boolean))(
_.truncated
)
.build()
}
def asReadOnly
: io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails.ReadOnly =
io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails
.wrap(buildAwsValue())
}
object HistoryEventExecutionDataDetails {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.sfn.model.HistoryEventExecutionDataDetails
] = BuilderHelper.apply
trait ReadOnly {
def editable
: io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails =
io.github.vigoo.zioaws.sfn.model
.HistoryEventExecutionDataDetails(truncatedValue.map(value => value))
def truncatedValue: Option[Truncated]
def truncated: ZIO[Any, AwsError, Truncated] =
AwsError.unwrapOptionField("truncated", truncatedValue)
}
private class Wrapper(
impl: software.amazon.awssdk.services.sfn.model.HistoryEventExecutionDataDetails
) extends io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails.ReadOnly {
override def truncatedValue: Option[Truncated] =
scala.Option(impl.truncated()).map(value => value: Truncated)
}
def wrap(
impl: software.amazon.awssdk.services.sfn.model.HistoryEventExecutionDataDetails
): io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails.ReadOnly =
new Wrapper(impl)
}