zio.aws.tnb.model.ListSolNetworkInstanceInfo.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.{
NsdInfoId,
NsdId,
NsInstanceId,
NsInstanceArn
}
import scala.jdk.CollectionConverters.*
final case class ListSolNetworkInstanceInfo(
arn: NsInstanceArn,
id: NsInstanceId,
metadata: zio.aws.tnb.model.ListSolNetworkInstanceMetadata,
nsInstanceDescription: String,
nsInstanceName: String,
nsState: zio.aws.tnb.model.NsState,
nsdId: NsdId,
nsdInfoId: NsdInfoId
) {
def buildAwsValue()
: software.amazon.awssdk.services.tnb.model.ListSolNetworkInstanceInfo = {
import ListSolNetworkInstanceInfo.zioAwsBuilderHelper.BuilderOps
software.amazon.awssdk.services.tnb.model.ListSolNetworkInstanceInfo
.builder()
.arn(NsInstanceArn.unwrap(arn): java.lang.String)
.id(NsInstanceId.unwrap(id): java.lang.String)
.metadata(metadata.buildAwsValue())
.nsInstanceDescription(nsInstanceDescription: java.lang.String)
.nsInstanceName(nsInstanceName: java.lang.String)
.nsState(nsState.unwrap)
.nsdId(NsdId.unwrap(nsdId): java.lang.String)
.nsdInfoId(NsdInfoId.unwrap(nsdInfoId): java.lang.String)
.build()
}
def asReadOnly: zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly =
zio.aws.tnb.model.ListSolNetworkInstanceInfo.wrap(buildAwsValue())
}
object ListSolNetworkInstanceInfo {
private lazy val zioAwsBuilderHelper: BuilderHelper[
software.amazon.awssdk.services.tnb.model.ListSolNetworkInstanceInfo
] = BuilderHelper.apply
trait ReadOnly {
def asEditable: zio.aws.tnb.model.ListSolNetworkInstanceInfo =
zio.aws.tnb.model.ListSolNetworkInstanceInfo(
arn,
id,
metadata.asEditable,
nsInstanceDescription,
nsInstanceName,
nsState,
nsdId,
nsdInfoId
)
def arn: NsInstanceArn
def id: NsInstanceId
def metadata: zio.aws.tnb.model.ListSolNetworkInstanceMetadata.ReadOnly
def nsInstanceDescription: String
def nsInstanceName: String
def nsState: zio.aws.tnb.model.NsState
def nsdId: NsdId
def nsdInfoId: NsdInfoId
def getArn: ZIO[Any, Nothing, NsInstanceArn] = ZIO.succeed(arn)
def getId: ZIO[Any, Nothing, NsInstanceId] = ZIO.succeed(id)
def getMetadata: ZIO[
Any,
Nothing,
zio.aws.tnb.model.ListSolNetworkInstanceMetadata.ReadOnly
] = ZIO.succeed(metadata)
def getNsInstanceDescription: ZIO[Any, Nothing, String] =
ZIO.succeed(nsInstanceDescription)
def getNsInstanceName: ZIO[Any, Nothing, String] =
ZIO.succeed(nsInstanceName)
def getNsState: ZIO[Any, Nothing, zio.aws.tnb.model.NsState] =
ZIO.succeed(nsState)
def getNsdId: ZIO[Any, Nothing, NsdId] = ZIO.succeed(nsdId)
def getNsdInfoId: ZIO[Any, Nothing, NsdInfoId] = ZIO.succeed(nsdInfoId)
}
private final class Wrapper(
impl: software.amazon.awssdk.services.tnb.model.ListSolNetworkInstanceInfo
) extends zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly {
override val arn: NsInstanceArn =
zio.aws.tnb.model.primitives.NsInstanceArn(impl.arn())
override val id: NsInstanceId =
zio.aws.tnb.model.primitives.NsInstanceId(impl.id())
override val metadata
: zio.aws.tnb.model.ListSolNetworkInstanceMetadata.ReadOnly =
zio.aws.tnb.model.ListSolNetworkInstanceMetadata.wrap(impl.metadata())
override val nsInstanceDescription: String =
impl.nsInstanceDescription(): String
override val nsInstanceName: String = impl.nsInstanceName(): String
override val nsState: zio.aws.tnb.model.NsState =
zio.aws.tnb.model.NsState.wrap(impl.nsState())
override val nsdId: NsdId = zio.aws.tnb.model.primitives.NsdId(impl.nsdId())
override val nsdInfoId: NsdInfoId =
zio.aws.tnb.model.primitives.NsdInfoId(impl.nsdInfoId())
}
def wrap(
impl: software.amazon.awssdk.services.tnb.model.ListSolNetworkInstanceInfo
): zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly = new Wrapper(impl)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy