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

zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
package zio.aws.tnb.model
import zio.ZIO
import zio.aws.core.BuilderHelper
import zio.aws.tnb.model.primitives.VnfPkgId
import scala.jdk.CollectionConverters.*
final case class GetSolFunctionPackageDescriptorRequest(
    accept: zio.aws.tnb.model.DescriptorContentType,
    vnfPkgId: VnfPkgId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageDescriptorRequest = {
    import GetSolFunctionPackageDescriptorRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageDescriptorRequest
      .builder()
      .accept(accept.unwrap)
      .vnfPkgId(VnfPkgId.unwrap(vnfPkgId): java.lang.String)
      .build()
  }
  def asReadOnly
      : zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest.ReadOnly =
    zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest
      .wrap(buildAwsValue())
}
object GetSolFunctionPackageDescriptorRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageDescriptorRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest =
      zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest(accept, vnfPkgId)
    def accept: zio.aws.tnb.model.DescriptorContentType
    def vnfPkgId: VnfPkgId
    def getAccept: ZIO[Any, Nothing, zio.aws.tnb.model.DescriptorContentType] =
      ZIO.succeed(accept)
    def getVnfPkgId: ZIO[Any, Nothing, VnfPkgId] = ZIO.succeed(vnfPkgId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageDescriptorRequest
  ) extends zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest.ReadOnly {
    override val accept: zio.aws.tnb.model.DescriptorContentType =
      zio.aws.tnb.model.DescriptorContentType.wrap(impl.accept())
    override val vnfPkgId: VnfPkgId =
      zio.aws.tnb.model.primitives.VnfPkgId(impl.vnfPkgId())
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.GetSolFunctionPackageDescriptorRequest
  ): zio.aws.tnb.model.GetSolFunctionPackageDescriptorRequest.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy