zio.aws.tnb.model.DeleteSolNetworkPackageRequest.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-tnb_3 Show documentation
Show all versions of zio-aws-tnb_3 Show documentation
Low-level AWS wrapper for ZIO
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 DeleteSolNetworkPackageRequest(nsdInfoId: NsdInfoId) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.DeleteSolNetworkPackageRequest = {
import DeleteSolNetworkPackageRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.DeleteSolNetworkPackageRequest
.builder()
.nsdInfoId(NsdInfoId.unwrap(nsdInfoId): java.lang.String)
.build()
}
def asReadOnly: zio.aws.tnb.model.DeleteSolNetworkPackageRequest.ReadOnly =
zio.aws.tnb.model.DeleteSolNetworkPackageRequest.wrap(buildAwsValue())
}
object DeleteSolNetworkPackageRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.DeleteSolNetworkPackageRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.DeleteSolNetworkPackageRequest =
zio.aws.tnb.model.DeleteSolNetworkPackageRequest(nsdInfoId)
def nsdInfoId: NsdInfoId
def getNsdInfoId: ZIO[Any, Nothing, NsdInfoId] = ZIO.succeed(nsdInfoId)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.DeleteSolNetworkPackageRequest
) extends zio.aws.tnb.model.DeleteSolNetworkPackageRequest.ReadOnly {
override val nsdInfoId: NsdInfoId =
zio.aws.tnb.model.primitives.NsdInfoId(impl.nsdInfoId())
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.DeleteSolNetworkPackageRequest
): zio.aws.tnb.model.DeleteSolNetworkPackageRequest.ReadOnly = new Wrapper(
impl
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy