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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy