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

io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionResponse.scala Maven / Gradle / Ivy

package io.github.vigoo.zioaws.elasticbeanstalk.model
import zio.ZIO
import io.github.vigoo.zioaws.core.{AwsError, BuilderHelper}
import scala.jdk.CollectionConverters._
final case class DescribePlatformVersionResponse(
    platformDescription: Option[
      io.github.vigoo.zioaws.elasticbeanstalk.model.PlatformDescription
    ] = None
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionResponse = {
    import DescribePlatformVersionResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionResponse
      .builder()
      .optionallyWith(platformDescription.map(value => value.buildAwsValue()))(
        _.platformDescription
      )
      .build()
  }
  def asReadOnly
      : io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionResponse.ReadOnly =
    io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionResponse
      .wrap(buildAwsValue())
}
object DescribePlatformVersionResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def editable
        : io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionResponse =
      io.github.vigoo.zioaws.elasticbeanstalk.model
        .DescribePlatformVersionResponse(
          platformDescriptionValue.map(value => value.editable)
        )
    def platformDescriptionValue: Option[
      io.github.vigoo.zioaws.elasticbeanstalk.model.PlatformDescription.ReadOnly
    ]
    def platformDescription: ZIO[
      Any,
      AwsError,
      io.github.vigoo.zioaws.elasticbeanstalk.model.PlatformDescription.ReadOnly
    ] = AwsError.unwrapOptionField(
      "platformDescription",
      platformDescriptionValue
    )
  }
  private class Wrapper(
      impl: software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionResponse
  ) extends io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionResponse.ReadOnly {
    override def platformDescriptionValue: Option[
      io.github.vigoo.zioaws.elasticbeanstalk.model.PlatformDescription.ReadOnly
    ] = scala
      .Option(impl.platformDescription())
      .map(value =>
        io.github.vigoo.zioaws.elasticbeanstalk.model.PlatformDescription
          .wrap(value)
      )
  }
  def wrap(
      impl: software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionResponse
  ): io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionResponse.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy