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

zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata.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.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import scala.jdk.CollectionConverters.*
final case class ValidateSolNetworkPackageContentMetadata(
    nsd: Optional[zio.aws.tnb.model.NetworkArtifactMeta] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.ValidateSolNetworkPackageContentMetadata = {
    import ValidateSolNetworkPackageContentMetadata.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.ValidateSolNetworkPackageContentMetadata
      .builder()
      .optionallyWith(nsd.map(value => value.buildAwsValue()))(_.nsd)
      .build()
  }
  def asReadOnly
      : zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata.ReadOnly =
    zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata
      .wrap(buildAwsValue())
}
object ValidateSolNetworkPackageContentMetadata {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.ValidateSolNetworkPackageContentMetadata
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata =
      zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata(
        nsd.map(value => value.asEditable)
      )
    def nsd: Optional[zio.aws.tnb.model.NetworkArtifactMeta.ReadOnly]
    def getNsd
        : ZIO[Any, AwsError, zio.aws.tnb.model.NetworkArtifactMeta.ReadOnly] =
      AwsError.unwrapOptionField("nsd", nsd)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.ValidateSolNetworkPackageContentMetadata
  ) extends zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata.ReadOnly {
    override val nsd: Optional[zio.aws.tnb.model.NetworkArtifactMeta.ReadOnly] =
      zio.aws.core.internal
        .optionalFromNullable(impl.nsd())
        .map(value => zio.aws.tnb.model.NetworkArtifactMeta.wrap(value))
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.ValidateSolNetworkPackageContentMetadata
  ): zio.aws.tnb.model.ValidateSolNetworkPackageContentMetadata.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy