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

zio.aws.nimble.model.GetEulaResponse.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.5
Show newest version
package zio.aws.nimble.model
import zio.ZIO
import zio.aws.core.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters.*
final case class GetEulaResponse(
    eula: Optional[zio.aws.nimble.model.Eula] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.nimble.model.GetEulaResponse = {
    import GetEulaResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.nimble.model.GetEulaResponse
      .builder()
      .optionallyWith(eula.map(value => value.buildAwsValue()))(_.eula)
      .build()
  }
  def asReadOnly: zio.aws.nimble.model.GetEulaResponse.ReadOnly =
    zio.aws.nimble.model.GetEulaResponse.wrap(buildAwsValue())
}
object GetEulaResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.nimble.model.GetEulaResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.nimble.model.GetEulaResponse =
      zio.aws.nimble.model.GetEulaResponse(eula.map(value => value.asEditable))
    def eula: Optional[zio.aws.nimble.model.Eula.ReadOnly]
    def getEula: ZIO[Any, AwsError, zio.aws.nimble.model.Eula.ReadOnly] =
      AwsError.unwrapOptionField("eula", eula)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.nimble.model.GetEulaResponse
  ) extends zio.aws.nimble.model.GetEulaResponse.ReadOnly {
    override val eula: Optional[zio.aws.nimble.model.Eula.ReadOnly] =
      zio.aws.core.internal
        .optionalFromNullable(impl.eula())
        .map(value => zio.aws.nimble.model.Eula.wrap(value))
  }
  def wrap(
      impl: software.amazon.awssdk.services.nimble.model.GetEulaResponse
  ): zio.aws.nimble.model.GetEulaResponse.ReadOnly = new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy