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

zio.aws.tnb.model.ModifyVnfInfoMetadata.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.BuilderHelper
import zio.aws.tnb.model.primitives.VnfInstanceId
import scala.jdk.CollectionConverters.*
final case class ModifyVnfInfoMetadata(
    vnfConfigurableProperties: zio.aws.tnb.model.Document,
    vnfInstanceId: VnfInstanceId
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.ModifyVnfInfoMetadata = {
    import ModifyVnfInfoMetadata.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.ModifyVnfInfoMetadata
      .builder()
      .vnfConfigurableProperties(vnfConfigurableProperties)
      .vnfInstanceId(VnfInstanceId.unwrap(vnfInstanceId): java.lang.String)
      .build()
  }
  def asReadOnly: zio.aws.tnb.model.ModifyVnfInfoMetadata.ReadOnly =
    zio.aws.tnb.model.ModifyVnfInfoMetadata.wrap(buildAwsValue())
}
object ModifyVnfInfoMetadata {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.ModifyVnfInfoMetadata
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.ModifyVnfInfoMetadata = zio.aws.tnb.model
      .ModifyVnfInfoMetadata(vnfConfigurableProperties, vnfInstanceId)
    def vnfConfigurableProperties: software.amazon.awssdk.core.document.Document
    def vnfInstanceId: VnfInstanceId
    def getVnfConfigurableProperties
        : ZIO[Any, Nothing, software.amazon.awssdk.core.document.Document] =
      ZIO.succeed(vnfConfigurableProperties)
    def getVnfInstanceId: ZIO[Any, Nothing, VnfInstanceId] =
      ZIO.succeed(vnfInstanceId)
  }
  private final class Wrapper(
      impl: software.amazon.awssdk.services.tnb.model.ModifyVnfInfoMetadata
  ) extends zio.aws.tnb.model.ModifyVnfInfoMetadata.ReadOnly {
    override val vnfConfigurableProperties
        : software.amazon.awssdk.core.document.Document =
      impl.vnfConfigurableProperties()
    override val vnfInstanceId: VnfInstanceId =
      zio.aws.tnb.model.primitives.VnfInstanceId(impl.vnfInstanceId())
  }
  def wrap(
      impl: software.amazon.awssdk.services.tnb.model.ModifyVnfInfoMetadata
  ): zio.aws.tnb.model.ModifyVnfInfoMetadata.ReadOnly = new Wrapper(impl)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy