zio.aws.nimble.model.UpdateStudioComponentResponse.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-nimble_3 Show documentation
Show all versions of zio-aws-nimble_3 Show documentation
Low-level AWS wrapper for ZIO
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 UpdateStudioComponentResponse(
studioComponent: Optional[zio.aws.nimble.model.StudioComponent] =
Optional.Absent
) {
def buildAwsValue()
: software.amazon.awssdk.services.nimble.model.UpdateStudioComponentResponse = {
import UpdateStudioComponentResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.nimble.model.UpdateStudioComponentResponse
.builder()
.optionallyWith(studioComponent.map(value => value.buildAwsValue()))(
_.studioComponent
)
.build()
}
def asReadOnly: zio.aws.nimble.model.UpdateStudioComponentResponse.ReadOnly =
zio.aws.nimble.model.UpdateStudioComponentResponse.wrap(buildAwsValue())
}
object UpdateStudioComponentResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.nimble.model.UpdateStudioComponentResponse
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.nimble.model.UpdateStudioComponentResponse =
zio.aws.nimble.model.UpdateStudioComponentResponse(
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.UpdateStudioComponentResponse
) extends zio.aws.nimble.model.UpdateStudioComponentResponse.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.UpdateStudioComponentResponse
): zio.aws.nimble.model.UpdateStudioComponentResponse.ReadOnly = new Wrapper(
impl
)
}