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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy