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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy