
io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionRequest.scala Maven / Gradle / Ivy
package io.github.vigoo.zioaws.elasticbeanstalk.model
import zio.ZIO
import io.github.vigoo.zioaws.elasticbeanstalk.model.primitives.PlatformArn
import io.github.vigoo.zioaws.core.{AwsError, BuilderHelper}
import scala.jdk.CollectionConverters._
final case class DescribePlatformVersionRequest(
platformArn: Option[PlatformArn] = None
) {
def buildAwsValue()
: software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionRequest = {
import DescribePlatformVersionRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionRequest
.builder()
.optionallyWith(platformArn.map(value => value: java.lang.String))(
_.platformArn
)
.build()
}
def asReadOnly
: io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionRequest.ReadOnly =
io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionRequest
.wrap(buildAwsValue())
}
object DescribePlatformVersionRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionRequest
] = BuilderHelper.apply
trait ReadOnly {
def editable
: io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionRequest =
io.github.vigoo.zioaws.elasticbeanstalk.model
.DescribePlatformVersionRequest(platformArnValue.map(value => value))
def platformArnValue: Option[PlatformArn]
def platformArn: ZIO[Any, AwsError, PlatformArn] =
AwsError.unwrapOptionField("platformArn", platformArnValue)
}
private class Wrapper(
impl: software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionRequest
) extends io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionRequest.ReadOnly {
override def platformArnValue: Option[PlatformArn] =
scala.Option(impl.platformArn()).map(value => value: PlatformArn)
}
def wrap(
impl: software.amazon.awssdk.services.elasticbeanstalk.model.DescribePlatformVersionRequest
): io.github.vigoo.zioaws.elasticbeanstalk.model.DescribePlatformVersionRequest.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy