All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.aws.emrcontainers.model.CancelJobRunRequest.scala Maven / Gradle / Ivy

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 CancelJobRunRequest(
    id: ResourceIdString,
    virtualClusterId: ResourceIdString
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.emrcontainers.model.CancelJobRunRequest = {
    import CancelJobRunRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.emrcontainers.model.CancelJobRunRequest
      .builder()
      .id(ResourceIdString.unwrap(id): java.lang.String)
      .virtualClusterId(
        ResourceIdString.unwrap(virtualClusterId): java.lang.String
      )
      .build()
  }
  def asReadOnly: zio.aws.emrcontainers.model.CancelJobRunRequest.ReadOnly =
    zio.aws.emrcontainers.model.CancelJobRunRequest.wrap(buildAwsValue())
}
object CancelJobRunRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.emrcontainers.model.CancelJobRunRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.emrcontainers.model.CancelJobRunRequest =
      zio.aws.emrcontainers.model.CancelJobRunRequest(id, virtualClusterId)
    def id: ResourceIdString
    def virtualClusterId: ResourceIdString
    def getId: ZIO[Any, Nothing, ResourceIdString] = ZIO.succeed(id)
    def getVirtualClusterId: ZIO[Any, Nothing, ResourceIdString] =
      ZIO.succeed(virtualClusterId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.emrcontainers.model.CancelJobRunRequest
  ) extends zio.aws.emrcontainers.model.CancelJobRunRequest.ReadOnly {
    override val id: ResourceIdString =
      zio.aws.emrcontainers.model.primitives.ResourceIdString(impl.id())
    override val virtualClusterId: ResourceIdString =
      zio.aws.emrcontainers.model.primitives
        .ResourceIdString(impl.virtualClusterId())
  }
  def wrap(
      impl: software.amazon.awssdk.services.emrcontainers.model.CancelJobRunRequest
  ): zio.aws.emrcontainers.model.CancelJobRunRequest.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy