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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy