io.github.vigoo.zioaws.sfn.model.CreateActivityResponse.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 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)
}