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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy