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