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