
io.github.vigoo.zioaws.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse.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 RetrieveEnvironmentInfoResponse(
environmentInfo: Option[Iterable[
io.github.vigoo.zioaws.elasticbeanstalk.model.EnvironmentInfoDescription
]] = None
) {
def buildAwsValue()
: software.amazon.awssdk.services.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse = {
import RetrieveEnvironmentInfoResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse
.builder()
.optionallyWith(
environmentInfo.map(value =>
value.map { item =>
item.buildAwsValue()
}.asJavaCollection
)
)(_.environmentInfo)
.build()
}
def asReadOnly
: io.github.vigoo.zioaws.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse.ReadOnly =
io.github.vigoo.zioaws.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse
.wrap(buildAwsValue())
}
object RetrieveEnvironmentInfoResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse
] = BuilderHelper.apply
trait ReadOnly {
def editable
: io.github.vigoo.zioaws.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse =
io.github.vigoo.zioaws.elasticbeanstalk.model
.RetrieveEnvironmentInfoResponse(
environmentInfoValue.map(value =>
value.map { item =>
item.editable
}
)
)
def environmentInfoValue: Option[List[
io.github.vigoo.zioaws.elasticbeanstalk.model.EnvironmentInfoDescription.ReadOnly
]]
def environmentInfo: ZIO[Any, AwsError, List[
io.github.vigoo.zioaws.elasticbeanstalk.model.EnvironmentInfoDescription.ReadOnly
]] = AwsError.unwrapOptionField("environmentInfo", environmentInfoValue)
}
private class Wrapper(
impl: software.amazon.awssdk.services.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse
) extends io.github.vigoo.zioaws.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse.ReadOnly {
override def environmentInfoValue: Option[List[
io.github.vigoo.zioaws.elasticbeanstalk.model.EnvironmentInfoDescription.ReadOnly
]] = scala
.Option(impl.environmentInfo())
.map(value =>
value.asScala.map { item =>
io.github.vigoo.zioaws.elasticbeanstalk.model.EnvironmentInfoDescription
.wrap(item)
}.toList
)
}
def wrap(
impl: software.amazon.awssdk.services.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse
): io.github.vigoo.zioaws.elasticbeanstalk.model.RetrieveEnvironmentInfoResponse.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy