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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy