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

zio.aws.nimble.model.GetStudioComponentResponse.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 GetStudioComponentResponse(
    studioComponent: Optional[zio.aws.nimble.model.StudioComponent] =
      Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.nimble.model.GetStudioComponentResponse = {
    import GetStudioComponentResponse.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.nimble.model.GetStudioComponentResponse
      .builder()
      .optionallyWith(studioComponent.map(value => value.buildAwsValue()))(
        _.studioComponent
      )
      .build()
  }
  def asReadOnly: zio.aws.nimble.model.GetStudioComponentResponse.ReadOnly =
    zio.aws.nimble.model.GetStudioComponentResponse.wrap(buildAwsValue())
}
object GetStudioComponentResponse {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.nimble.model.GetStudioComponentResponse
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.nimble.model.GetStudioComponentResponse =
      zio.aws.nimble.model.GetStudioComponentResponse(
        studioComponent.map(value => value.asEditable)
      )
    def studioComponent: Optional[zio.aws.nimble.model.StudioComponent.ReadOnly]
    def getStudioComponent
        : ZIO[Any, AwsError, zio.aws.nimble.model.StudioComponent.ReadOnly] =
      AwsError.unwrapOptionField("studioComponent", studioComponent)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.nimble.model.GetStudioComponentResponse
  ) extends zio.aws.nimble.model.GetStudioComponentResponse.ReadOnly {
    override val studioComponent
        : Optional[zio.aws.nimble.model.StudioComponent.ReadOnly] =
      zio.aws.core.internal
        .optionalFromNullable(impl.studioComponent())
        .map(value => zio.aws.nimble.model.StudioComponent.wrap(value))
  }
  def wrap(
      impl: software.amazon.awssdk.services.nimble.model.GetStudioComponentResponse
  ): zio.aws.nimble.model.GetStudioComponentResponse.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy