zio.aws.amplifybackend.model.DeleteTokenResponse.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-amplifybackend_3 Show documentation
Show all versions of zio-aws-amplifybackend_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.amplifybackend.model
import zio.aws.amplifybackend.model.primitives.__boolean
import zio.ZIO
import zio.aws.core.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters.*
final case class DeleteTokenResponse(
isSuccess: Optional[__boolean] = Optional.Absent
) {
def buildAwsValue()
: software.amazon.awssdk.services.amplifybackend.model.DeleteTokenResponse = {
import DeleteTokenResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.amplifybackend.model.DeleteTokenResponse
.builder()
.optionallyWith(isSuccess.map(value => value: java.lang.Boolean))(
_.isSuccess
)
.build()
}
def asReadOnly: zio.aws.amplifybackend.model.DeleteTokenResponse.ReadOnly =
zio.aws.amplifybackend.model.DeleteTokenResponse.wrap(buildAwsValue())
}
object DeleteTokenResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.amplifybackend.model.DeleteTokenResponse
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.amplifybackend.model.DeleteTokenResponse =
zio.aws.amplifybackend.model
.DeleteTokenResponse(isSuccess.map(value => value))
def isSuccess: Optional[__boolean]
def getIsSuccess: ZIO[Any, AwsError, __boolean] =
AwsError.unwrapOptionField("isSuccess", isSuccess)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.amplifybackend.model.DeleteTokenResponse
) extends zio.aws.amplifybackend.model.DeleteTokenResponse.ReadOnly {
override val isSuccess: Optional[__boolean] = zio.aws.core.internal
.optionalFromNullable(impl.isSuccess())
.map(value => value: __boolean)
}
def wrap(
impl: software.amazon.awssdk.services.amplifybackend.model.DeleteTokenResponse
): zio.aws.amplifybackend.model.DeleteTokenResponse.ReadOnly = new Wrapper(
impl
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy