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