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