zio.aws.nimble.model.GetEulaRequest.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.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class GetEulaRequest(eulaId: String) {
def buildAwsValue()
: software.amazon.awssdk.services.nimble.model.GetEulaRequest = {
import GetEulaRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.nimble.model.GetEulaRequest
.builder()
.eulaId(eulaId: java.lang.String)
.build()
}
def asReadOnly: zio.aws.nimble.model.GetEulaRequest.ReadOnly =
zio.aws.nimble.model.GetEulaRequest.wrap(buildAwsValue())
}
object GetEulaRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.nimble.model.GetEulaRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.nimble.model.GetEulaRequest =
zio.aws.nimble.model.GetEulaRequest(eulaId)
def eulaId: String
def getEulaId: ZIO[Any, Nothing, String] = ZIO.succeed(eulaId)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.nimble.model.GetEulaRequest
) extends zio.aws.nimble.model.GetEulaRequest.ReadOnly {
override val eulaId: String = impl.eulaId(): String
}
def wrap(
impl: software.amazon.awssdk.services.nimble.model.GetEulaRequest
): zio.aws.nimble.model.GetEulaRequest.ReadOnly = new Wrapper(impl)
}