zio.aws.tnb.model.ValidateSolFunctionPackageContentMetadata.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.{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