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

zio.aws.mediastore.model.GetLifecyclePolicyResponse.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.6
Show newest version
package zio.aws.mediastore.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.mediastore.model.primitives.LifecyclePolicy
import scala.jdk.CollectionConverters.*
final case class GetLifecyclePolicyResponse(lifecyclePolicy: LifecyclePolicy) {
  def buildAwsValue()
      : software.amazon.awssdk.services.mediastore.model.GetLifecyclePolicyResponse = {
    import GetLifecyclePolicyResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.mediastore.model.GetLifecyclePolicyResponse
      .builder()
      .lifecyclePolicy(
        LifecyclePolicy.unwrap(lifecyclePolicy): java.lang.String
      )
      .build()
  }
  def asReadOnly: zio.aws.mediastore.model.GetLifecyclePolicyResponse.ReadOnly =
    zio.aws.mediastore.model.GetLifecyclePolicyResponse.wrap(buildAwsValue())
}
object GetLifecyclePolicyResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.mediastore.model.GetLifecyclePolicyResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.mediastore.model.GetLifecyclePolicyResponse =
      zio.aws.mediastore.model.GetLifecyclePolicyResponse(lifecyclePolicy)
    def lifecyclePolicy: LifecyclePolicy
    def getLifecyclePolicy: ZIO[Any, Nothing, LifecyclePolicy] =
      ZIO.succeed(lifecyclePolicy)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.mediastore.model.GetLifecyclePolicyResponse
  ) extends zio.aws.mediastore.model.GetLifecyclePolicyResponse.ReadOnly {
    override val lifecyclePolicy: LifecyclePolicy =
      zio.aws.mediastore.model.primitives
        .LifecyclePolicy(impl.lifecyclePolicy())
  }
  def wrap(
      impl: software.amazon.awssdk.services.mediastore.model.GetLifecyclePolicyResponse
  ): zio.aws.mediastore.model.GetLifecyclePolicyResponse.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy