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