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

zio.aws.tnb.model.UpdateSolFunctionPackageResponse.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
package zio.aws.tnb.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class UpdateSolFunctionPackageResponse(
    operationalState: zio.aws.tnb.model.OperationalState
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.UpdateSolFunctionPackageResponse = {
    import UpdateSolFunctionPackageResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.UpdateSolFunctionPackageResponse
      .builder()
      .operationalState(operationalState.unwrap)
      .build()
  }
  def asReadOnly: zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly =
    zio.aws.tnb.model.UpdateSolFunctionPackageResponse.wrap(buildAwsValue())
}
object UpdateSolFunctionPackageResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.UpdateSolFunctionPackageResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.UpdateSolFunctionPackageResponse =
      zio.aws.tnb.model.UpdateSolFunctionPackageResponse(operationalState)
    def operationalState: zio.aws.tnb.model.OperationalState
    def getOperationalState
        : ZIO[Any, Nothing, zio.aws.tnb.model.OperationalState] =
      ZIO.succeed(operationalState)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.UpdateSolFunctionPackageResponse
  ) extends zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly {
    override val operationalState: zio.aws.tnb.model.OperationalState =
      zio.aws.tnb.model.OperationalState.wrap(impl.operationalState())
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.UpdateSolFunctionPackageResponse
  ): zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy