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

zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.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 PutSolFunctionPackageContentMetadata(
    vnfd: Optional[zio.aws.tnb.model.FunctionArtifactMeta] = Optional.Absent
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentMetadata = {
    import PutSolFunctionPackageContentMetadata.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentMetadata
      .builder()
      .optionallyWith(vnfd.map(value => value.buildAwsValue()))(_.vnfd)
      .build()
  }
  def asReadOnly
      : zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.ReadOnly =
    zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.wrap(buildAwsValue())
}
object PutSolFunctionPackageContentMetadata {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.PutSolFunctionPackageContentMetadata
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.PutSolFunctionPackageContentMetadata =
      zio.aws.tnb.model.PutSolFunctionPackageContentMetadata(
        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.PutSolFunctionPackageContentMetadata
  ) extends zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.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.PutSolFunctionPackageContentMetadata
  ): zio.aws.tnb.model.PutSolFunctionPackageContentMetadata.ReadOnly =
    new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy