All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.aws.tnb.model.ListSolFunctionInstanceMetadata.scala Maven / Gradle / Ivy

There is a newer version: 7.28.29.10
Show newest version
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 ListSolFunctionInstanceMetadata(
    createdAt: SyntheticTimestamp_date_time,
    lastModified: SyntheticTimestamp_date_time
) {
  def buildAwsValue()
      : software.amazon.awssdk.services.tnb.model.ListSolFunctionInstanceMetadata = {
    import ListSolFunctionInstanceMetadata.zioAwsBuilderHelper.BuilderOps
    software.amazon.awssdk.services.tnb.model.ListSolFunctionInstanceMetadata
      .builder()
      .createdAt(SyntheticTimestamp_date_time.unwrap(createdAt): Instant)
      .lastModified(SyntheticTimestamp_date_time.unwrap(lastModified): Instant)
      .build()
  }
  def asReadOnly: zio.aws.tnb.model.ListSolFunctionInstanceMetadata.ReadOnly =
    zio.aws.tnb.model.ListSolFunctionInstanceMetadata.wrap(buildAwsValue())
}
object ListSolFunctionInstanceMetadata {
  private lazy val zioAwsBuilderHelper: BuilderHelper[
    software.amazon.awssdk.services.tnb.model.ListSolFunctionInstanceMetadata
  ] = BuilderHelper.apply
  trait ReadOnly {
    def asEditable: zio.aws.tnb.model.ListSolFunctionInstanceMetadata =
      zio.aws.tnb.model.ListSolFunctionInstanceMetadata(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.ListSolFunctionInstanceMetadata
  ) extends zio.aws.tnb.model.ListSolFunctionInstanceMetadata.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.ListSolFunctionInstanceMetadata
  ): zio.aws.tnb.model.ListSolFunctionInstanceMetadata.ReadOnly = new Wrapper(
    impl
  )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy