zio.aws.tnb.model.UpdateSolNetworkServiceData.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.{AwsError, BuilderHelper}
import zio.prelude.data.Optional
import zio.aws.tnb.model.primitives.NsdInfoId
import scala.jdk.CollectionConverters.*
final case class UpdateSolNetworkServiceData(
additionalParamsForNs: Optional[zio.aws.tnb.model.Document] =
Optional.Absent,
nsdInfoId: NsdInfoId
) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.UpdateSolNetworkServiceData = {
import UpdateSolNetworkServiceData.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.UpdateSolNetworkServiceData
.builder()
.optionallyWith(additionalParamsForNs.map(value => value))(
_.additionalParamsForNs
)
.nsdInfoId(NsdInfoId.unwrap(nsdInfoId): java.lang.String)
.build()
}
def asReadOnly: zio.aws.tnb.model.UpdateSolNetworkServiceData.ReadOnly =
zio.aws.tnb.model.UpdateSolNetworkServiceData.wrap(buildAwsValue())
}
object UpdateSolNetworkServiceData {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.UpdateSolNetworkServiceData
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.UpdateSolNetworkServiceData =
zio.aws.tnb.model.UpdateSolNetworkServiceData(
additionalParamsForNs.map(value => value),
nsdInfoId
)
def additionalParamsForNs
: Optional[software.amazon.awssdk.core.document.Document]
def nsdInfoId: NsdInfoId
def getAdditionalParamsForNs
: ZIO[Any, AwsError, software.amazon.awssdk.core.document.Document] =
AwsError.unwrapOptionField("additionalParamsForNs", additionalParamsForNs)
def getNsdInfoId: ZIO[Any, Nothing, NsdInfoId] = ZIO.succeed(nsdInfoId)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.UpdateSolNetworkServiceData
) extends zio.aws.tnb.model.UpdateSolNetworkServiceData.ReadOnly {
override val additionalParamsForNs
: Optional[software.amazon.awssdk.core.document.Document] =
zio.aws.core.internal.optionalFromNullable(impl.additionalParamsForNs())
override val nsdInfoId: NsdInfoId =
zio.aws.tnb.model.primitives.NsdInfoId(impl.nsdInfoId())
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.UpdateSolNetworkServiceData
): zio.aws.tnb.model.UpdateSolNetworkServiceData.ReadOnly = new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy