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

io.github.vigoo.zioaws.sfn.model.HistoryEventExecutionDataDetails.scala Maven / Gradle / Ivy

There is a newer version: 4.17.280.4
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy