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