zio.aws.tnb.model.GetSolInstantiatedVnfInfo.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 scala.jdk.CollectionConverters.*
final case class GetSolInstantiatedVnfInfo(
vnfState: Optional[zio.aws.tnb.model.VnfOperationalState] = Optional.Absent
) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.GetSolInstantiatedVnfInfo = {
import GetSolInstantiatedVnfInfo.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.GetSolInstantiatedVnfInfo
.builder()
.optionallyWith(vnfState.map(value => value.unwrap))(_.vnfState)
.build()
}
def asReadOnly: zio.aws.tnb.model.GetSolInstantiatedVnfInfo.ReadOnly =
zio.aws.tnb.model.GetSolInstantiatedVnfInfo.wrap(buildAwsValue())
}
object GetSolInstantiatedVnfInfo {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.GetSolInstantiatedVnfInfo
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.GetSolInstantiatedVnfInfo =
zio.aws.tnb.model.GetSolInstantiatedVnfInfo(vnfState.map(value => value))
def vnfState: Optional[zio.aws.tnb.model.VnfOperationalState]
def getVnfState: ZIO[Any, AwsError, zio.aws.tnb.model.VnfOperationalState] =
AwsError.unwrapOptionField("vnfState", vnfState)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.GetSolInstantiatedVnfInfo
) extends zio.aws.tnb.model.GetSolInstantiatedVnfInfo.ReadOnly {
override val vnfState: Optional[zio.aws.tnb.model.VnfOperationalState] =
zio.aws.core.internal
.optionalFromNullable(impl.vnfState())
.map(value => zio.aws.tnb.model.VnfOperationalState.wrap(value))
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.GetSolInstantiatedVnfInfo
): zio.aws.tnb.model.GetSolInstantiatedVnfInfo.ReadOnly = new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy