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

io.github.vigoo.zioaws.sfn.model.CreateActivityResponse.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 java.time.Instant
import io.github.vigoo.zioaws.core.BuilderHelper
import io.github.vigoo.zioaws.sfn.model.primitives.{Timestamp, Arn}
import scala.jdk.CollectionConverters._
final case class CreateActivityResponse(
    activityArn: Arn,
    creationDate: Timestamp
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.sfn.model.CreateActivityResponse = {
    import CreateActivityResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.sfn.model.CreateActivityResponse
      .builder()
      .activityArn(activityArn: java.lang.String)
      .creationDate(creationDate: Instant)
      .build()
  }
  def asReadOnly
      : io.github.vigoo.zioaws.sfn.model.CreateActivityResponse.ReadOnly =
    io.github.vigoo.zioaws.sfn.model.CreateActivityResponse
      .wrap(buildAwsValue())
}
object CreateActivityResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.sfn.model.CreateActivityResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def editable: io.github.vigoo.zioaws.sfn.model.CreateActivityResponse =
      io.github.vigoo.zioaws.sfn.model
        .CreateActivityResponse(activityArnValue, creationDateValue)
    def activityArnValue: Arn
    def creationDateValue: Timestamp
    def activityArn: ZIO[Any, Nothing, Arn] = ZIO.succeed(activityArnValue)
    def creationDate: ZIO[Any, Nothing, Timestamp] =
      ZIO.succeed(creationDateValue)
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.sfn.model.CreateActivityResponse
  ) extends io.github.vigoo.zioaws.sfn.model.CreateActivityResponse.ReadOnly {
    override def activityArnValue: Arn = impl.activityArn(): Arn
    override def creationDateValue: Timestamp = impl.creationDate(): Timestamp
  }
  def wrap(
      impl: software.amazon.awssdk.services.sfn.model.CreateActivityResponse
  ): io.github.vigoo.zioaws.sfn.model.CreateActivityResponse.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy