zio.aws.amplifybackend.model.UpdateBackendStorageRequest.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.__string
import zio.ZIO
import zio.aws.core.BuilderHelper
import scala.jdk.CollectionConverters.*
final case class UpdateBackendStorageRequest(
appId: __string,
backendEnvironmentName: __string,
resourceConfig: zio.aws.amplifybackend.model.UpdateBackendStorageResourceConfig,
resourceName: __string
) {
def buildAwsValue()
: software.amazon.awssdk.services.amplifybackend.model.UpdateBackendStorageRequest = {
import UpdateBackendStorageRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.amplifybackend.model.UpdateBackendStorageRequest
.builder()
.appId(appId: java.lang.String)
.backendEnvironmentName(backendEnvironmentName: java.lang.String)
.resourceConfig(resourceConfig.buildAwsValue())
.resourceName(resourceName: java.lang.String)
.build()
}
def asReadOnly
: zio.aws.amplifybackend.model.UpdateBackendStorageRequest.ReadOnly =
zio.aws.amplifybackend.model.UpdateBackendStorageRequest
.wrap(buildAwsValue())
}
object UpdateBackendStorageRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.amplifybackend.model.UpdateBackendStorageRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.amplifybackend.model.UpdateBackendStorageRequest =
zio.aws.amplifybackend.model.UpdateBackendStorageRequest(
appId,
backendEnvironmentName,
resourceConfig.asEditable,
resourceName
)
def appId: __string
def backendEnvironmentName: __string
def resourceConfig
: zio.aws.amplifybackend.model.UpdateBackendStorageResourceConfig.ReadOnly
def resourceName: __string
def getAppId: ZIO[Any, Nothing, __string] = ZIO.succeed(appId)
def getBackendEnvironmentName: ZIO[Any, Nothing, __string] =
ZIO.succeed(backendEnvironmentName)
def getResourceConfig: ZIO[
Any,
Nothing,
zio.aws.amplifybackend.model.UpdateBackendStorageResourceConfig.ReadOnly
] = ZIO.succeed(resourceConfig)
def getResourceName: ZIO[Any, Nothing, __string] = ZIO.succeed(resourceName)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.amplifybackend.model.UpdateBackendStorageRequest
) extends zio.aws.amplifybackend.model.UpdateBackendStorageRequest.ReadOnly {
override val appId: __string = impl.appId(): __string
override val backendEnvironmentName: __string =
impl.backendEnvironmentName(): __string
override val resourceConfig
: zio.aws.amplifybackend.model.UpdateBackendStorageResourceConfig.ReadOnly =
zio.aws.amplifybackend.model.UpdateBackendStorageResourceConfig
.wrap(impl.resourceConfig())
override val resourceName: __string = impl.resourceName(): __string
}
def wrap(
impl: software.amazon.awssdk.services.amplifybackend.model.UpdateBackendStorageRequest
): zio.aws.amplifybackend.model.UpdateBackendStorageRequest.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy