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

zio.aws.tnb.model.GetSolNetworkPackageContentRequest.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.NsdInfoId
import scala.jdk.CollectionConverters.*
final case class GetSolNetworkPackageContentRequest(
    accept: zio.aws.tnb.model.PackageContentType,
    nsdInfoId: NsdInfoId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageContentRequest = {
    import GetSolNetworkPackageContentRequest.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageContentRequest
      .builder()
      .accept(accept.unwrap)
      .nsdInfoId(NsdInfoId.unwrap(nsdInfoId): java.lang.String)
      .build()
  }
  def asReadOnly
      : zio.aws.tnb.model.GetSolNetworkPackageContentRequest.ReadOnly =
    zio.aws.tnb.model.GetSolNetworkPackageContentRequest.wrap(buildAwsValue())
}
object GetSolNetworkPackageContentRequest {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageContentRequest
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.GetSolNetworkPackageContentRequest =
      zio.aws.tnb.model.GetSolNetworkPackageContentRequest(accept, nsdInfoId)
    def accept: zio.aws.tnb.model.PackageContentType
    def nsdInfoId: NsdInfoId
    def getAccept: ZIO[Any, Nothing, zio.aws.tnb.model.PackageContentType] =
      ZIO.succeed(accept)
    def getNsdInfoId: ZIO[Any, Nothing, NsdInfoId] = ZIO.succeed(nsdInfoId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageContentRequest
  ) extends zio.aws.tnb.model.GetSolNetworkPackageContentRequest.ReadOnly {
    override val accept: zio.aws.tnb.model.PackageContentType =
      zio.aws.tnb.model.PackageContentType.wrap(impl.accept())
    override val nsdInfoId: NsdInfoId =
      zio.aws.tnb.model.primitives.NsdInfoId(impl.nsdInfoId())
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.GetSolNetworkPackageContentRequest
  ): zio.aws.tnb.model.GetSolNetworkPackageContentRequest.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy