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