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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy