zio.aws.tnb.model.UpdateSolNetworkPackageRequest.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.BuilderHelper
import zio.aws.tnb.model.primitives.NsdInfoId
import scala.jdk.CollectionConverters.*
final case class UpdateSolNetworkPackageRequest(
nsdInfoId: NsdInfoId,
nsdOperationalState: zio.aws.tnb.model.NsdOperationalState
) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.UpdateSolNetworkPackageRequest = {
import UpdateSolNetworkPackageRequest.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.UpdateSolNetworkPackageRequest
.builder()
.nsdInfoId(NsdInfoId.unwrap(nsdInfoId): java.lang.String)
.nsdOperationalState(nsdOperationalState.unwrap)
.build()
}
def asReadOnly: zio.aws.tnb.model.UpdateSolNetworkPackageRequest.ReadOnly =
zio.aws.tnb.model.UpdateSolNetworkPackageRequest.wrap(buildAwsValue())
}
object UpdateSolNetworkPackageRequest {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.UpdateSolNetworkPackageRequest
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.UpdateSolNetworkPackageRequest =
zio.aws.tnb.model
.UpdateSolNetworkPackageRequest(nsdInfoId, nsdOperationalState)
def nsdInfoId: NsdInfoId
def nsdOperationalState: zio.aws.tnb.model.NsdOperationalState
def getNsdInfoId: ZIO[Any, Nothing, NsdInfoId] = ZIO.succeed(nsdInfoId)
def getNsdOperationalState
: ZIO[Any, Nothing, zio.aws.tnb.model.NsdOperationalState] =
ZIO.succeed(nsdOperationalState)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.UpdateSolNetworkPackageRequest
) extends zio.aws.tnb.model.UpdateSolNetworkPackageRequest.ReadOnly {
override val nsdInfoId: NsdInfoId =
zio.aws.tnb.model.primitives.NsdInfoId(impl.nsdInfoId())
override val nsdOperationalState: zio.aws.tnb.model.NsdOperationalState =
zio.aws.tnb.model.NsdOperationalState.wrap(impl.nsdOperationalState())
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.UpdateSolNetworkPackageRequest
): zio.aws.tnb.model.UpdateSolNetworkPackageRequest.ReadOnly = new Wrapper(
impl
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy