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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy