zio.aws.tnb.model.PutSolNetworkPackageContentResponse.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.{VnfPkgId, NsdId, NsdInfoId, NsdInfoArn}
import scala.jdk.CollectionConverters.*
final case class PutSolNetworkPackageContentResponse(
arn: NsdInfoArn,
id: NsdInfoId,
metadata: zio.aws.tnb.model.PutSolNetworkPackageContentMetadata,
nsdId: NsdId,
nsdName: String,
nsdVersion: String,
vnfPkgIds: Iterable[VnfPkgId]
) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.PutSolNetworkPackageContentResponse = {
import PutSolNetworkPackageContentResponse.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.PutSolNetworkPackageContentResponse
.builder()
.arn(NsdInfoArn.unwrap(arn): java.lang.String)
.id(NsdInfoId.unwrap(id): java.lang.String)
.metadata(metadata.buildAwsValue())
.nsdId(NsdId.unwrap(nsdId): java.lang.String)
.nsdName(nsdName: java.lang.String)
.nsdVersion(nsdVersion: java.lang.String)
.vnfPkgIds(vnfPkgIds.map { item =>
VnfPkgId.unwrap(item): java.lang.String
}.asJavaCollection)
.build()
}
def asReadOnly
: zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly =
zio.aws.tnb.model.PutSolNetworkPackageContentResponse.wrap(buildAwsValue())
}
object PutSolNetworkPackageContentResponse {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.PutSolNetworkPackageContentResponse
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.PutSolNetworkPackageContentResponse =
zio.aws.tnb.model.PutSolNetworkPackageContentResponse(
arn,
id,
metadata.asEditable,
nsdId,
nsdName,
nsdVersion,
vnfPkgIds
)
def arn: NsdInfoArn
def id: NsdInfoId
def metadata: zio.aws.tnb.model.PutSolNetworkPackageContentMetadata.ReadOnly
def nsdId: NsdId
def nsdName: String
def nsdVersion: String
def vnfPkgIds: List[VnfPkgId]
def getArn: ZIO[Any, Nothing, NsdInfoArn] = ZIO.succeed(arn)
def getId: ZIO[Any, Nothing, NsdInfoId] = ZIO.succeed(id)
def getMetadata: ZIO[
Any,
Nothing,
zio.aws.tnb.model.PutSolNetworkPackageContentMetadata.ReadOnly
] = ZIO.succeed(metadata)
def getNsdId: ZIO[Any, Nothing, NsdId] = ZIO.succeed(nsdId)
def getNsdName: ZIO[Any, Nothing, String] = ZIO.succeed(nsdName)
def getNsdVersion: ZIO[Any, Nothing, String] = ZIO.succeed(nsdVersion)
def getVnfPkgIds: ZIO[Any, Nothing, List[VnfPkgId]] = ZIO.succeed(vnfPkgIds)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.PutSolNetworkPackageContentResponse
) extends zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly {
override val arn: NsdInfoArn =
zio.aws.tnb.model.primitives.NsdInfoArn(impl.arn())
override val id: NsdInfoId =
zio.aws.tnb.model.primitives.NsdInfoId(impl.id())
override val metadata
: zio.aws.tnb.model.PutSolNetworkPackageContentMetadata.ReadOnly =
zio.aws.tnb.model.PutSolNetworkPackageContentMetadata
.wrap(impl.metadata())
override val nsdId: NsdId = zio.aws.tnb.model.primitives.NsdId(impl.nsdId())
override val nsdName: String = impl.nsdName(): String
override val nsdVersion: String = impl.nsdVersion(): String
override val vnfPkgIds: List[VnfPkgId] = impl
.vnfPkgIds()
.asScala
.map { item =>
zio.aws.tnb.model.primitives.VnfPkgId(item)
}
.toList
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.PutSolNetworkPackageContentResponse
): zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly =
new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy