zio.aws.lightsail.model.RecordState.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-lightsail_3 Show documentation
Show all versions of zio-aws-lightsail_3 Show documentation
Low-level AWS wrapper for ZIO
The newest version!
package zio.aws.lightsail.model
import scala.jdk.CollectionConverters.*
sealed trait RecordState {
def unwrap: software.amazon.awssdk.services.lightsail.model.RecordState
}
object RecordState {
def wrap(
value: software.amazon.awssdk.services.lightsail.model.RecordState
): zio.aws.lightsail.model.RecordState = value match {
case software.amazon.awssdk.services.lightsail.model.RecordState.UNKNOWN_TO_SDK_VERSION =>
val r = unknownToSdkVersion
r
case software.amazon.awssdk.services.lightsail.model.RecordState.STARTED =>
val r = Started
r
case software.amazon.awssdk.services.lightsail.model.RecordState.SUCCEEDED =>
val r = Succeeded
r
case software.amazon.awssdk.services.lightsail.model.RecordState.FAILED =>
val r = Failed
r
}
case object unknownToSdkVersion extends zio.aws.lightsail.model.RecordState {
override def unwrap
: software.amazon.awssdk.services.lightsail.model.RecordState =
software.amazon.awssdk.services.lightsail.model.RecordState.UNKNOWN_TO_SDK_VERSION
}
case object Started extends zio.aws.lightsail.model.RecordState {
override def unwrap
: software.amazon.awssdk.services.lightsail.model.RecordState =
software.amazon.awssdk.services.lightsail.model.RecordState.STARTED
}
case object Succeeded extends zio.aws.lightsail.model.RecordState {
override def unwrap
: software.amazon.awssdk.services.lightsail.model.RecordState =
software.amazon.awssdk.services.lightsail.model.RecordState.SUCCEEDED
}
case object Failed extends zio.aws.lightsail.model.RecordState {
override def unwrap
: software.amazon.awssdk.services.lightsail.model.RecordState =
software.amazon.awssdk.services.lightsail.model.RecordState.FAILED
}
}