zio.aws.mediastoredata.model.DeleteObjectRequest.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-mediastoredata_3 Show documentation
Show all versions of zio-aws-mediastoredata_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.mediastoredata.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.mediastoredata.model.primitives.PathNaming
import scala.jdk.CollectionConverters.*
final case class DeleteObjectRequest(path: PathNaming) {
def buildAwsValue()
: software.amazon.awssdk.services.mediastoredata.model.DeleteObjectRequest = {
import DeleteObjectRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.mediastoredata.model.DeleteObjectRequest
.builder()
.path(PathNaming.unwrap(path): java.lang.String)
.build()
}
def asReadOnly: zio.aws.mediastoredata.model.DeleteObjectRequest.ReadOnly =
zio.aws.mediastoredata.model.DeleteObjectRequest.wrap(buildAwsValue())
}
object DeleteObjectRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.mediastoredata.model.DeleteObjectRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.mediastoredata.model.DeleteObjectRequest =
zio.aws.mediastoredata.model.DeleteObjectRequest(path)
def path: PathNaming
def getPath: ZIO[Any, Nothing, PathNaming] = ZIO.succeed(path)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.mediastoredata.model.DeleteObjectRequest
) extends zio.aws.mediastoredata.model.DeleteObjectRequest.ReadOnly {
override val path: PathNaming =
zio.aws.mediastoredata.model.primitives.PathNaming(impl.path())
}
def wrap(
impl: software.amazon.awssdk.services.mediastoredata.model.DeleteObjectRequest
): zio.aws.mediastoredata.model.DeleteObjectRequest.ReadOnly = new Wrapper(
impl
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy