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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy