zio.aws.emrcontainers.model.DeleteVirtualClusterRequest.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-emrcontainers_2.12 Show documentation
Show all versions of zio-aws-emrcontainers_2.12 Show documentation
Low-level AWS wrapper for ZIO
The newest version!
package zio.aws.emrcontainers.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.emrcontainers.model.primitives.ResourceIdString
import scala.jdk.CollectionConverters._
final case class DeleteVirtualClusterRequest(id: ResourceIdString) {
def buildAwsValue()
: software.amazon.awssdk.services.emrcontainers.model.DeleteVirtualClusterRequest = {
import DeleteVirtualClusterRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.emrcontainers.model.DeleteVirtualClusterRequest
.builder()
.id(ResourceIdString.unwrap(id): java.lang.String)
.build()
}
def asReadOnly
: zio.aws.emrcontainers.model.DeleteVirtualClusterRequest.ReadOnly =
zio.aws.emrcontainers.model.DeleteVirtualClusterRequest
.wrap(buildAwsValue())
}
object DeleteVirtualClusterRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.emrcontainers.model.DeleteVirtualClusterRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.emrcontainers.model.DeleteVirtualClusterRequest =
zio.aws.emrcontainers.model.DeleteVirtualClusterRequest(id)
def id: ResourceIdString
def getId: ZIO[Any, Nothing, ResourceIdString] = ZIO.succeed(id)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.emrcontainers.model.DeleteVirtualClusterRequest
) extends zio.aws.emrcontainers.model.DeleteVirtualClusterRequest.ReadOnly {
override val id: ResourceIdString =
zio.aws.emrcontainers.model.primitives.ResourceIdString(impl.id())
}
def wrap(
impl: software.amazon.awssdk.services.emrcontainers.model.DeleteVirtualClusterRequest
): zio.aws.emrcontainers.model.DeleteVirtualClusterRequest.ReadOnly =
new Wrapper(impl)
}