zio.aws.emrcontainers.model.DescribeJobRunRequest.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 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
)
}