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

io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest.scala Maven / Gradle / Ivy

There is a newer version: 4.17.280.4
Show newest version
package io.github.vigoo.zioaws.rdsdata.model
import zio.ZIO
import io.github.vigoo.zioaws.rdsdata.model.primitives.{Id, Arn}
import io.github.vigoo.zioaws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class RollbackTransactionRequest(
    resourceArn: Arn,
    secretArn: Arn,
    transactionId: Id
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.rdsdata.model.RollbackTransactionRequest = {
    import RollbackTransactionRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.rdsdata.model.RollbackTransactionRequest
      .builder()
      .resourceArn(resourceArn: java.lang.String)
      .secretArn(secretArn: java.lang.String)
      .transactionId(transactionId: java.lang.String)
      .build()
  }
  def asReadOnly
      : io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest.ReadOnly =
    io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest
      .wrap(buildAwsValue())
}
object RollbackTransactionRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.rdsdata.model.RollbackTransactionRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def editable
        : io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest =
      io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest(
        resourceArnValue,
        secretArnValue,
        transactionIdValue
      )
    def resourceArnValue: Arn
    def secretArnValue: Arn
    def transactionIdValue: Id
    def resourceArn: ZIO[Any, Nothing, Arn] = ZIO.succeed(resourceArnValue)
    def secretArn: ZIO[Any, Nothing, Arn] = ZIO.succeed(secretArnValue)
    def transactionId: ZIO[Any, Nothing, Id] = ZIO.succeed(transactionIdValue)
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.rdsdata.model.RollbackTransactionRequest
  ) extends io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest.ReadOnly {
    override def resourceArnValue: Arn = impl.resourceArn(): Arn
    override def secretArnValue: Arn = impl.secretArn(): Arn
    override def transactionIdValue: Id = impl.transactionId(): Id
  }
  def wrap(
      impl: software.amazon.awssdk.services.rdsdata.model.RollbackTransactionRequest
  ): io.github.vigoo.zioaws.rdsdata.model.RollbackTransactionRequest.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy